9.3.2010 Kamil Sedlak

Changes needed by Pavel Bakule for low energy moun beem excited by laser.
  (The user can restrict a box-like region for the generated particles (muons)).
This commit is contained in:
2010-03-09 16:49:53 +00:00
parent 610abf6591
commit a71842dd81
7 changed files with 73 additions and 13 deletions

View File

@ -52,6 +52,9 @@ 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 SetvertexRelativeR(G4double val) {relativeRMaxAllowed=val;}
void SetboxBoundary(G4ThreeVector v) {xMaxSource=v[0]; yMaxSource=v[1]; zMaxSource=v[2];} //P.B. 15 Dec 2009
void SetboxBoundaryCentre(G4ThreeVector v) {xMaxSource0=v[0]; yMaxSource0=v[1]; zMaxSource0=v[2];} //P.B. 15 Dec 2009
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);
@ -98,7 +101,10 @@ 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 t0, tSigma; //P.B. 13 May 2009
G4double relativeRMaxAllowed;
G4double xMaxSource0, yMaxSource0, zMaxSource0; //P.B. 15 Dec 2009
G4double xMaxSource, yMaxSource, zMaxSource; //P.B. 15 Dec 2009
G4double p0, pSigma, pMinAllowed, pMaxAllowed;
G4double xangle0, yangle0, xangleSigma, yangleSigma, pitch;
G4bool UnpolarisedMuonBeam, TransversalyUnpolarisedMuonBeam;