9.5.2012 Kamil Sedlak
Several smaller improvements, should not have impact on the simulation.
This commit is contained in:
@@ -46,6 +46,8 @@ class musrParameters {
|
||||
static G4bool storeOnlyTheFirstTimeHit; // if true, only the hit that happened first will be
|
||||
// stored, anything else will be ignored
|
||||
// (usefull for some special studies, not for a serious simulation)
|
||||
static G4int storeOnlyEventsWithMuonsDecayedInDetID;
|
||||
static G4bool killAllElectrons; // if true, all electron tracks will be deleted (usefull for the studies of the muon beam)
|
||||
static G4bool killAllPositrons; // if true, all positron tracks will be deleted (usefull for the studies of the muon beam)
|
||||
static G4bool killAllGammas; //
|
||||
static G4bool killAllNeutrinos; //
|
||||
@@ -68,6 +70,9 @@ class musrParameters {
|
||||
static G4bool finiteRiseTimeInScintillator; // if true, rise time will be simulated in the scintillator. For some strange
|
||||
// reason, Geant4 requires that this is specifically allowed. We set it true
|
||||
// as soon as "FASTSCINTILLATIONRISETIME" or "SLOWSCINTILLATIONRISETIME" is set.
|
||||
static G4int maximumTimePerEvent; // maximum time (in seconds) allowed for an event simulation - if exceeded, kill the event and
|
||||
// proceed to the next one.
|
||||
static G4int maximumNrOfStepsPerTrack; // Maximum number of steps per track - if exceeded, kill the track and proceed with a next one.
|
||||
private:
|
||||
static musrParameters* pointerToParameters;
|
||||
G4bool boolG4RegionRequested; // variable used internally just to check that no new volume is defined after
|
||||
|
||||
@@ -62,6 +62,7 @@ class musrRootOutput {
|
||||
void SetEventID (G4int id) {eventID = id;};
|
||||
void SetTimeToNextEvent(G4double deltaT) {timeToNextEvent = deltaT/microsecond;}
|
||||
void SetDecayDetectorID (std::string detectorName) {muDecayDetID = SensDetectorMapping[detectorName];};
|
||||
Int_t GetDecayDetectorID() {return muDecayDetID;};
|
||||
void SetBField (G4double F[6]) {B_t[0]=F[0]/tesla; B_t[1]=F[1]/tesla; B_t[2]=F[2]/tesla;
|
||||
B_t[3]=F[3]/tesla; B_t[4]=F[4]/tesla; B_t[5]=F[5]/tesla;};
|
||||
void SetDecayPolarisation (G4ThreeVector pol) {muDecayPolX=pol.x(); muDecayPolY=pol.y(); muDecayPolZ=pol.z();};
|
||||
|
||||
@@ -155,6 +155,7 @@ class musrScintSD : public G4VSensitiveDetector
|
||||
G4int myStoreOnlyEventsWithHitInDetID;
|
||||
G4double mySignalSeparationTime;
|
||||
G4bool myStoreOnlyTheFirstTimeHit;
|
||||
G4int myStoreOnlyEventsWithMuonsDecayedInDetID;
|
||||
G4bool boolIsVvvInfoRequested;
|
||||
musrRootOutput* myRootOutput;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user