24.3.2010 Kamil Sedlak
New variable "timeToNextEvent" added in order to simulate time differences between subsequent events. 1) /gun/meanarrivaltime meanArrivalTime (defines the mean time difference betweent the subsequent events). 2) timeToNextEvent - new variable written out to the root tree. This new variable is needed for the pile-up studies
This commit is contained in:
@ -60,6 +60,7 @@ class musrRootOutput {
|
||||
// Setting variables common to the whole event:
|
||||
void SetRunID (G4int id) {runID_t = id;};
|
||||
void SetEventID (G4int id) {eventID_t = id;};
|
||||
void SetTimeToNextEvent(G4double deltaT) {timeToNextEvent_t = deltaT/microsecond;}
|
||||
void SetDecayDetectorID (std::string detectorName) {muDecayDetID_t = SensDetectorMapping[detectorName];};
|
||||
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;};
|
||||
@ -128,6 +129,7 @@ class musrRootOutput {
|
||||
static G4bool store_runID;
|
||||
static G4bool store_eventID;
|
||||
static G4bool store_weight;
|
||||
static G4bool store_timeToNextEvent;
|
||||
static G4bool store_BFieldAtDecay;
|
||||
static G4bool store_muIniTime;
|
||||
static G4bool store_muIniPosX;
|
||||
@ -230,6 +232,7 @@ class musrRootOutput {
|
||||
Int_t runID_t;
|
||||
Int_t eventID_t;
|
||||
Double_t weight_t;
|
||||
Double_t timeToNextEvent_t;
|
||||
Double_t B_t[6];
|
||||
Double_t muIniTime_t;
|
||||
Double_t muIniPosX_t, muIniPosY_t, muIniPosZ_t;
|
||||
|
Reference in New Issue
Block a user