#include <ML2SDWithParticle.hh>
|
| CML2SDWithParticle () |
|
| CML2SDWithParticle (G4int idType, G4int max_N_particles_in_PhSp_File, G4int seed, G4int nMaxParticlesInRamPhaseSpace, G4String name, G4String PhaseSpaceOutFile, G4bool bSavePhaseSpace, G4bool bStopAtVolatilePhaseSpace, SPrimaryParticle *primaryParticleData, G4double accTargetZPosition) |
|
| ~CML2SDWithParticle (void) |
|
G4bool | ProcessHits (G4Step *aStep, G4TouchableHistory *ROHist) |
|
G4int | getTotalNumberOfParticles () |
|
CML2SDWithParticle * | getCML2SensitiveDetectorParticle () |
|
Sparticle | getParticle (int i) |
|
void | setActive (G4bool act) |
|
void | save () |
|
| G4VSensitiveDetector (G4String name) |
|
| G4VSensitiveDetector (const G4VSensitiveDetector &right) |
|
virtual | ~G4VSensitiveDetector () |
|
G4VSensitiveDetector & | operator= (const G4VSensitiveDetector &right) |
|
G4int | operator== (const G4VSensitiveDetector &right) const |
|
G4int | operator!= (const G4VSensitiveDetector &right) const |
|
virtual void | Initialize (G4HCofThisEvent *) |
|
virtual void | EndOfEvent (G4HCofThisEvent *) |
|
virtual void | clear () |
|
virtual void | DrawAll () |
|
virtual void | PrintAll () |
|
G4bool | Hit (G4Step *aStep) |
|
void | SetROgeometry (G4VReadOutGeometry *value) |
|
void | SetFilter (G4VSDFilter *value) |
|
G4int | GetNumberOfCollections () const |
|
G4String | GetCollectionName (G4int id) const |
|
void | SetVerboseLevel (G4int vl) |
|
void | Activate (G4bool activeFlag) |
|
G4bool | isActive () const |
|
G4String | GetName () const |
|
G4String | GetPathName () const |
|
G4String | GetFullPathName () const |
|
G4VReadOutGeometry * | GetROgeometry () const |
|
G4VSDFilter * | GetFilter () const |
|
virtual G4VSensitiveDetector * | Clone () const |
|
Definition at line 55 of file ML2SDWithParticle.hh.
CML2SDWithParticle::CML2SDWithParticle |
( |
| ) |
|
Definition at line 48 of file ML2SDWithParticle.cc.
52 bStopAtPhaseSpace=
true;
G4VSensitiveDetector(G4String name)
Definition at line 57 of file ML2SDWithParticle.cc.
63 accTargetZPosition=ZPos;
64 max_N_particles_in_PhSp_File=maxPartFile;
65 nMaxParticlesInRamPhaseSpace = nMaxPart;
67 primaryParticleData=pData;
71 bSavePhaseSpace=bSave;
72 bStopAtPhaseSpace=bStop;
77 sprintf(a,
"%d",
seed);
80 fullOutFileData=PhaseSpaceOutFile+
"_"+seedName+
".txt";
81 fullOutFileData=PhaseSpaceOutFile+
"_"+seedName+
".txt";
std::vector< ExP01TrackerHit * > a
G4VSensitiveDetector(G4String name)
CML2SDWithParticle::~CML2SDWithParticle |
( |
void |
| ) |
|
G4int CML2SDWithParticle::getTotalNumberOfParticles |
( |
| ) |
|
|
inline |
Implements G4VSensitiveDetector.
Definition at line 121 of file ML2SDWithParticle.cc.
126 static bool bFirstTime=
true;
139 particles[nParticle].
kinEnergy=energyKin;
145 if (nTotalParticles==max_N_particles_in_PhSp_File)
150 saveHeaderParticles();
152 saveDataParticles(nParticle);
156 if (nParticle==nMaxParticlesInRamPhaseSpace)
161 saveHeaderParticles();
163 saveDataParticles(nParticle);
177 if (bStopAtPhaseSpace)
183 if (bStopAtPhaseSpace)
void SetTrackStatus(const G4TrackStatus aTrackStatus)
G4ParticleDefinition * GetDefinition() const
static CML2AcceleratorConstruction * GetInstance(void)
G4int GetPDGEncoding() const
G4StepPoint * GetPreStepPoint() const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
G4int primaryParticlePDGE
const G4ThreeVector & GetPosition() const
G4Track * GetTrack() const
void CML2SDWithParticle::save |
( |
| ) |
|
Definition at line 190 of file ML2SDWithParticle.cc.
193 {saveDataParticles(nParticle);nParticle=0;}
static CML2AcceleratorConstruction * GetInstance(void)
The documentation for this class was generated from the following files: