23.6.2009 - Kamil Sedlak

The implementation of "muIniTime" has been finalised (i.e. the time,
   when the initial muons are generated).  This variable is now stored
   in the root tree.  The documentation of the musrSim has been updated 
   accordingly.  Simple test of the upgraded program was done, 
   the implementation seems to be OK.
This commit is contained in:
2009-06-23 12:50:35 +00:00
parent 464ce6f895
commit d05e77dbe5
6 changed files with 21 additions and 3 deletions

View File

@ -82,7 +82,8 @@ class musrRootOutput {
G4double px, G4double py, G4double pz) ;
void SetInitialMuonParameters(G4double x, G4double y, G4double z, G4double px, G4double py, G4double pz,
G4double xpolaris, G4double ypolaris, G4double zpolaris) {
G4double xpolaris, G4double ypolaris, G4double zpolaris, G4double particleTime) {
muIniTime_t=particleTime/microsecond;
muIniPosX_t=x; muIniPosY_t=y; muIniPosZ_t=z;
muIniMomX_t=px; muIniMomY_t=py; muIniMomZ_t=pz;
muIniPolX_t=xpolaris; muIniPolY_t=ypolaris; muIniPolZ_t=zpolaris;
@ -91,6 +92,7 @@ class musrRootOutput {
G4cout<<"musrRootOutput.hh: Initial muon parameters: x="<<muIniPosX_t<<", y="<<muIniPosY_t<<", z="<<muIniPosZ_t
<<", px="<<muIniMomX_t << ", py="<<muIniMomY_t<<", pz="<<muIniMomZ_t<<G4endl;
G4cout<<" polx="<<muIniPolX_t<<", poly="<<muIniPolY_t<<", polz="<<muIniPolZ_t<<G4endl;
G4cout<<" time at which muon was generated = "<<muIniTime_t<<G4endl;
G4cout<<" numberOfGeneratedEvents = "<<GeantParametersD[7]<<G4endl;
}
@ -126,6 +128,7 @@ class musrRootOutput {
static G4bool store_eventID;
static G4bool store_weight;
static G4bool store_BFieldAtDecay;
static G4bool store_muIniTime;
static G4bool store_muIniPosX;
static G4bool store_muIniPosY;
static G4bool store_muIniPosZ;
@ -224,6 +227,7 @@ class musrRootOutput {
Int_t eventID_t;
Double_t weight_t;
Double_t B_t[6];
Double_t muIniTime_t;
Double_t muIniPosX_t, muIniPosY_t, muIniPosZ_t;
Double_t muIniMomX_t, muIniMomY_t, muIniMomZ_t;
Double_t muIniPolX_t, muIniPolY_t, muIniPolZ_t;