2009-06-22 Kamil Sedlak
- introduced modifications done by Pavel Bakule at ISIS: a) the time when the initial muon is generated can be set according to a gaussian or flat distribution. (all muons were generated at time 0 before this change). b) a new volume "cylpart" has been added. The code can be compiled, but no tests of the newly implemented features have been done. In future, the information about the time of the muon generation should be added to the root output tree.
This commit is contained in:
@ -52,6 +52,8 @@ class musrPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
void Setvertex(G4ThreeVector v) {x0=v[0]; y0=v[1]; z0=v[2];}
|
||||
void SetvertexSigma(G4ThreeVector v) {xSigma=v[0]; ySigma=v[1]; zSigma=v[2];}
|
||||
void SetvertexBoundary(G4ThreeVector v) {rMaxAllowed=v[0]; zMinAllowed=v[1]; zMaxAllowed=v[2];}
|
||||
void SetMuonTime(G4double val) {t0=val;} //P.B. 13 May 2009
|
||||
void SetMuonTimeSigma(G4double val) {tSigma=val;} //P.B. 13 May 2009
|
||||
void SetKEnergy(G4double val);
|
||||
void SetMomentum(G4double val) {p0=val;}
|
||||
void SetMomentumSmearing(G4double val) {pSigma=val;}
|
||||
@ -94,6 +96,7 @@ class musrPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
static G4String thePrimaryParticleName ;
|
||||
|
||||
G4double x0, y0, z0, xSigma, ySigma, zSigma, rMaxAllowed, zMinAllowed, zMaxAllowed;
|
||||
G4double t0, tSigma; //P.B. 13 May 2009
|
||||
G4double p0, pSigma, pMinAllowed, pMaxAllowed;
|
||||
G4double xangle0, yangle0, xangleSigma, yangleSigma, pitch;
|
||||
G4bool UnpolarisedMuonBeam, TransversalyUnpolarisedMuonBeam;
|
||||
|
Reference in New Issue
Block a user