129 G4String fileIn = randomNumberStatusDir +
"currentEvent.rndm";
131 std::ostringstream os;
136 G4String fileOut = randomNumberStatusDir + subDir + os.str();
138 G4String copCmd =
"/control/shell cp "+fileIn+
" "+fileOut;
162 thePrePVname = thePrePV->
GetName();
163 thePostPVname = thePostPV->
GetName();
186 G4int MAXofPostStepLoops =
191 for (
G4int i=0; i<MAXofPostStepLoops; i++) {
192 G4VProcess* fCurrentProcess = (*fPostStepDoItVector)[i];
213 fInitGamma / std::sqrt(px*px + py*py) / std::sqrt(x*x + y*y);
236 isFiber = thePostPVname ==
"WLSFiber"
237 || thePostPVname ==
"Clad1"
238 || thePostPVname ==
"Clad2";
323 if ( thePostPVname ==
"Mirror" )
332 if ( thePostPVname ==
"PhotonDet" ) {
G4int GetNumberOfClad1Bounces()
static G4RunManager * GetRunManager()
const G4Run * GetCurrentRun() const
Definition of the WLSPhotonDetSD class.
const G4String & GetRandomNumberStoreDir() const
G4int GetNumberOfBounces()
G4OpBoundaryProcessStatus
CLHEP::Hep3Vector G4ThreeVector
G4bool ProcessHits_constStep(const G4Step *, G4TouchableHistory *)
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
G4StepPoint * GetPreStepPoint() const
G4int ApplyCommand(const char *aCommand)
G4double GetWLSFiberEnd()
virtual ~WLSSteppingAction()
Definition of the WLSDetectorConstruction class.
G4VPhysicalVolume * GetPhysicalVolume() const
G4int GetNumberOfClad2Bounces()
G4int GetCurrentStepNumber() const
static G4UImanager * GetUIpointer()
Definition of the WLSSteppingAction class.
const G4ThreeVector & GetVertexMomentumDirection() const
static constexpr double deg
static G4OpticalPhoton * OpticalPhoton()
static G4int fMaxRndmSave
void SetBounceLimit(G4int)
G4Track * GetTrack() const
G4int GetNumberOfWLSBounces()
const G4ThreeVector & GetPosition() const
static constexpr double rad
G4StepPoint * GetPostStepPoint() const
G4int fCounterClad1Bounce
G4int fCounterClad2Bounce
const G4Event * GetCurrentEvent() const
G4ProcessVector * GetPostStepProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
static const G4ThreeVector ZHat
virtual void UserSteppingAction(const G4Step *)
static G4SDManager * GetSDMpointer()
WLSSteppingActionMessenger * fSteppingMessenger
G4ProcessManager * GetProcessManager() const
G4GLOB_DLL std::ostream G4cout
WLSDetectorConstruction * fDetector
WLSSteppingAction(WLSDetectorConstruction *)
void SaveRandomStatus(G4String subDir)
G4VUserTrackInformation * GetUserInformation() const
Definition of the WLSSteppingActionMessenger class.
void SetTrackStatus(const G4TrackStatus aTrackStatus)
G4OpBoundaryProcess * fOpProcess
G4TrackStatus GetTrackStatus() const
G4OpBoundaryProcessStatus GetStatus() const
const G4String & GetName() const
G4int GetParentID() const
G4int ResetSuccessCounter()