Geant4  10.02.p02
CML2SDWithParticle Class Reference

#include <ML2SDWithParticle.hh>

+ Inheritance diagram for CML2SDWithParticle:
+ Collaboration diagram for CML2SDWithParticle:

Public Member Functions

 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 ()
 
CML2SDWithParticlegetCML2SensitiveDetectorParticle ()
 
Sparticle getParticle (int i)
 
void setActive (G4bool act)
 
void save ()
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
G4VSensitiveDetectoroperator= (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
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Private Member Functions

void saveDataParticles (G4int nParticle)
 
void saveHeaderParticles ()
 

Private Attributes

G4ThreeVector halfSize
 
G4ThreeVector pos
 
SPrimaryParticleprimaryParticleData
 
Sparticleparticles
 
G4String fullOutFileData
 
G4int nTotalParticles
 
G4int nParticle
 
G4int idType
 
G4int nMaxParticlesInRamPhaseSpace
 
G4int max_N_particles_in_PhSp_File
 
G4bool bStopAtPhaseSpace
 
G4bool bSavePhaseSpace
 
G4bool bActive
 
G4double accTargetZPosition
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 55 of file ML2SDWithParticle.hh.

Constructor & Destructor Documentation

CML2SDWithParticle::CML2SDWithParticle ( )

Definition at line 48 of file ML2SDWithParticle.cc.

References bActive, bStopAtPhaseSpace, idSD_KillerPlane, idType, and nTotalParticles.

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::~CML2SDWithParticle ( void  )

Definition at line 83 of file ML2SDWithParticle.cc.

References particles.

Member Function Documentation

CML2SDWithParticle* CML2SDWithParticle::getCML2SensitiveDetectorParticle ( )
inline

Definition at line 63 of file ML2SDWithParticle.hh.

Referenced by CML2PhaseSpaces::getCML2SensitiveDetectorParticle().

+ Here is the caller graph for this function:

Sparticle CML2SDWithParticle::getParticle ( int  i)
inline

Definition at line 64 of file ML2SDWithParticle.hh.

References particles.

G4int CML2SDWithParticle::getTotalNumberOfParticles ( )
inline

Definition at line 62 of file ML2SDWithParticle.hh.

References nTotalParticles.

Referenced by CML2PhaseSpaces::getCML2SensDetNParticle().

+ Here is the caller graph for this function:

void CML2SDWithParticle::save ( )

Definition at line 190 of file ML2SDWithParticle.cc.

References bActive, CML2AcceleratorConstruction::GetInstance(), pyG4VTouchable::GetRotation, nParticle, and saveDataParticles().

Referenced by CML2PhaseSpaces::save().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2SDWithParticle::saveDataParticles ( G4int  nParticle)
private

Definition at line 98 of file ML2SDWithParticle.cc.

References accTargetZPosition, Sparticle::dir, fullOutFileData, G4endl, Sparticle::kinEnergy, MeV, mm, Sparticle::nPrimaryPart, particles, Sparticle::partPDGE, Sparticle::pos, and Sparticle::primaryParticlePDGE.

Referenced by ProcessHits(), and save().

+ Here is the caller graph for this function:

void CML2SDWithParticle::saveHeaderParticles ( )
private

Definition at line 90 of file ML2SDWithParticle.cc.

References fullOutFileData, and G4endl.

Referenced by ProcessHits().

+ Here is the caller graph for this function:

void CML2SDWithParticle::setActive ( G4bool  act)
inline

Definition at line 65 of file ML2SDWithParticle.hh.

References bActive.

Member Data Documentation

G4double CML2SDWithParticle::accTargetZPosition
private

Definition at line 80 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), and saveDataParticles().

G4bool CML2SDWithParticle::bActive
private

Definition at line 78 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), ProcessHits(), save(), and setActive().

G4bool CML2SDWithParticle::bSavePhaseSpace
private

Definition at line 78 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle().

G4bool CML2SDWithParticle::bStopAtPhaseSpace
private

Definition at line 78 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), and ProcessHits().

G4String CML2SDWithParticle::fullOutFileData
private

Definition at line 75 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), saveDataParticles(), and saveHeaderParticles().

G4ThreeVector CML2SDWithParticle::halfSize
private

Definition at line 71 of file ML2SDWithParticle.hh.

G4int CML2SDWithParticle::idType
private

Definition at line 77 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), and ProcessHits().

G4int CML2SDWithParticle::max_N_particles_in_PhSp_File
private

Definition at line 77 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), and ProcessHits().

G4int CML2SDWithParticle::nMaxParticlesInRamPhaseSpace
private

Definition at line 77 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), and ProcessHits().

G4int CML2SDWithParticle::nParticle
private

Definition at line 76 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), ProcessHits(), and save().

G4int CML2SDWithParticle::nTotalParticles
private

Definition at line 76 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), getTotalNumberOfParticles(), and ProcessHits().

Sparticle* CML2SDWithParticle::particles
private
G4ThreeVector CML2SDWithParticle::pos
private

Definition at line 72 of file ML2SDWithParticle.hh.

SPrimaryParticle* CML2SDWithParticle::primaryParticleData
private

Definition at line 73 of file ML2SDWithParticle.hh.

Referenced by CML2SDWithParticle(), and ProcessHits().


The documentation for this class was generated from the following files: