33 #include "SteppingAction.hh"
35 #include "HistoManager.hh"
69 Run* run =
static_cast<Run*
>(
77 GetParticleDefinition()->GetParticleName();
82 if (particleName ==
"opticalphoton") {
108 G4int MAXofPostStepLoops =
119 analysisMan->FillH1(4, px1);
120 analysisMan->FillH1(5, py1);
121 analysisMan->FillH1(6, pz1);
122 }
else if (px1 >= 0.) {
123 analysisMan->FillH1(7, px1);
124 analysisMan->FillH1(8, py1);
125 analysisMan->FillH1(9, pz1);
131 for (
G4int i=0; i<MAXofPostStepLoops; ++i) {
132 G4VProcess* currentProcess = (*postStepDoItVector)[i];
138 analysisMan->FillH1(3, theStatus);
144 analysisMan->FillH1(10, px1);
145 analysisMan->FillH1(11, py1);
146 analysisMan->FillH1(12, pz1);
261 G4cout <<
"theStatus: " << theStatus
262 <<
" was none of the above." <<
G4endl;
272 const std::vector<const G4Track*>* secondaries =
275 for (
auto sec : *secondaries) {
276 if (sec->GetDynamicParticle()->GetParticleDefinition() == opticalphoton){
277 if (sec->GetCreatorProcess()->GetProcessName().compare(
"Cerenkov")==0){
278 G4double en = sec->GetKineticEnergy();
281 G4AnalysisManager::Instance()->FillH1(1, en);
283 else if (sec->GetCreatorProcess()
284 ->GetProcessName().compare(
"Scintillation") == 0) {
285 G4double en = sec->GetKineticEnergy();
288 G4AnalysisManager::Instance()->FillH1(2, en);
void AddPolishedLumirrorAirReflection(void)
void AddBackScattering(void)
static G4RunManager * GetRunManager()
void AddScintillationEnergy(G4double en)
void AddLobeReflection(void)
G4OpBoundaryProcessStatus
void AddGroundAirReflection(void)
G4StepPoint * GetPreStepPoint() const
const G4ThreeVector & GetMomentumDirection() const
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
void AddGroundTeflonAirReflection(void)
void AddSameMaterial(void)
void AddLambertianReflection(void)
void AddStepTooSmall(void)
void AddGroundLumirrorGlueReflection(void)
void AddPolishedAirReflection(void)
void AddFresnelReflection(void)
void AddTotalInternalReflection(void)
void AddPolishedTyvekAirReflection(void)
G4StepStatus GetStepStatus() const
void AddEtchedTeflonAirReflection(void)
void AddTransmission(void)
void AddEtchedTyvekAirReflection(void)
void AddEtchedTiOAirReflection(void)
void AddGroundTyvekAirReflection(void)
static G4OpticalPhoton * OpticalPhoton()
void AddPolishedTiOAirReflection(void)
G4Track * GetTrack() const
const G4String & GetProcessName() const
const G4ThreeVector & GetMomentumDirection() const
void AddGroundTiOAirReflection(void)
static G4OpticalPhoton * OpticalPhotonDefinition()
void AddEtchedVM2000AirReflection(void)
G4CsvAnalysisManager G4AnalysisManager
G4StepPoint * GetPostStepPoint() const
void UserSteppingAction(const G4Step *)
void AddNotAtBoundary(void)
G4Run * GetNonConstCurrentRun() const
G4ProcessVector * GetPostStepProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
void AddOpAbsorptionPrior(void)
void AddCerenkovEnergy(G4double en)
void AddEtchedAirReflection(void)
void AddTotalSurface(void)
void AddEtchedLumirrorGlueReflection(void)
void AddScintillation(void)
G4ProcessManager * GetProcessManager() const
void AddFresnelRefraction(void)
void AddSpikeReflection(void)
G4GLOB_DLL std::ostream G4cout
G4VUserTrackInformation * GetUserInformation() const
void AddGroundLumirrorAirReflection(void)
void AddPolishedTeflonAirReflection(void)
const G4VProcess * GetProcessDefinedStep() const
void AddPolishedLumirrorGlueReflection(void)
void AddPolishedVM2000AirReflection(void)
const G4DynamicParticle * GetDynamicParticle() const
void AddGroundVM2000AirReflection(void)
G4OpBoundaryProcessStatus GetStatus() const
void AddOpAbsorption(void)
void AddEtchedLumirrorAirReflection(void)