#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() [1/2]
| CML2SDWithParticle::CML2SDWithParticle |
( |
| ) |
|
◆ CML2SDWithParticle() [2/2]
Definition at line 57 of file ML2SDWithParticle.cc.
67 primaryParticleData=pData;
77 sprintf(a,
"%d", seed);
G4double accTargetZPosition
G4int max_N_particles_in_PhSp_File
G4int nMaxParticlesInRamPhaseSpace
G4VSensitiveDetector(G4String name)
◆ ~CML2SDWithParticle()
| CML2SDWithParticle::~CML2SDWithParticle |
( |
void |
| ) |
|
◆ getCML2SensitiveDetectorParticle()
◆ getParticle()
| Sparticle CML2SDWithParticle::getParticle |
( |
int |
i | ) |
|
|
inline |
◆ getTotalNumberOfParticles()
| G4int CML2SDWithParticle::getTotalNumberOfParticles |
( |
| ) |
|
|
inline |
◆ ProcessHits()
Implements G4VSensitiveDetector.
Definition at line 121 of file ML2SDWithParticle.cc.
125 G4double energyKin= aStep->GetTrack()->GetKineticEnergy();
126 static bool bFirstTime=
true;
130 aStep->GetTrack()->SetTrackStatus(fStopAndKill);
168 particle->
dir=aStep->GetPreStepPoint()->GetMomentumDirection();
169 particle->
pos=aStep->GetPreStepPoint()->GetPosition();
172 particle->
partPDGE=aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
178 {aStep->GetTrack()->SetTrackStatus(fStopAndKill);}
184 {aStep->GetTrack()->SetTrackStatus(fStopAndKill);}
SPrimaryParticle * primaryParticleData
static CML2AcceleratorConstruction * GetInstance(void)
void saveHeaderParticles()
G4int primaryParticlePDGE
G4int max_N_particles_in_PhSp_File
G4int nMaxParticlesInRamPhaseSpace
void saveDataParticles(G4int nParticle)
◆ save()
| void CML2SDWithParticle::save |
( |
| ) |
|
Definition at line 190 of file ML2SDWithParticle.cc.
static CML2AcceleratorConstruction * GetInstance(void)
void saveDataParticles(G4int nParticle)
◆ saveDataParticles()
| void CML2SDWithParticle::saveDataParticles |
( |
G4int |
nParticle | ) |
|
|
private |
Definition at line 98 of file ML2SDWithParticle.cc.
102 static G4int nTotParticles=0;
103 for (
int i=0; i< nPart; i++)
105 out << nTotParticles++ <<
'\t';
G4double accTargetZPosition
G4int primaryParticlePDGE
◆ saveHeaderParticles()
| void CML2SDWithParticle::saveHeaderParticles |
( |
| ) |
|
|
private |
Definition at line 90 of file ML2SDWithParticle.cc.
94 out <<
"Sensitive Detector-Particles"<<
G4endl;
95 out <<
"n Total Events,\t x [mm],\t y [mm],\t z [mm],\t dirX,\t dirY,\t dirZ,\t KinEnergy [MeV],\t part Type,\t primary part type,\t nPrimaryPart" <<
G4endl;
◆ setActive()
| void CML2SDWithParticle::setActive |
( |
G4bool |
act | ) |
|
|
inline |
◆ accTargetZPosition
| G4double CML2SDWithParticle::accTargetZPosition |
|
private |
◆ bActive
| G4bool CML2SDWithParticle::bActive |
|
private |
◆ bSavePhaseSpace
| G4bool CML2SDWithParticle::bSavePhaseSpace |
|
private |
◆ bStopAtPhaseSpace
| G4bool CML2SDWithParticle::bStopAtPhaseSpace |
|
private |
◆ fullOutFileData
| G4String CML2SDWithParticle::fullOutFileData |
|
private |
◆ halfSize
◆ idType
| G4int CML2SDWithParticle::idType |
|
private |
◆ max_N_particles_in_PhSp_File
| G4int CML2SDWithParticle::max_N_particles_in_PhSp_File |
|
private |
◆ nMaxParticlesInRamPhaseSpace
| G4int CML2SDWithParticle::nMaxParticlesInRamPhaseSpace |
|
private |
◆ nParticle
| G4int CML2SDWithParticle::nParticle |
|
private |
◆ nTotalParticles
| G4int CML2SDWithParticle::nTotalParticles |
|
private |
◆ particles
◆ pos
◆ primaryParticleData
The documentation for this class was generated from the following files: