Geant4  10.00.p01
G4MCTSimParticle Class Reference

#include <G4MCTSimParticle.hh>

+ Collaboration diagram for G4MCTSimParticle:

Public Member Functions

 G4MCTSimParticle ()
 
 G4MCTSimParticle (std::string aname, int apcode, int atid, int ptid, const G4LorentzVector &p)
 
 G4MCTSimParticle (std::string aname, int apcode, int atid, int ptid, const G4LorentzVector &p, const G4MCTSimVertex *v)
 
virtual ~G4MCTSimParticle ()
 
 G4MCTSimParticle (const G4MCTSimParticle &right)
 
const G4MCTSimParticleoperator= (const G4MCTSimParticle &right)
 
void SetParentParticle (const G4MCTSimParticle *p)
 
G4MCTSimParticleGetParentParticle () const
 
void SetParticleName (std::string aname)
 
const std::string & GetParticleName () const
 
void SetPdgID (int id)
 
int GetPdgID () const
 
void SetTrackID (int id)
 
int GetTrackID () const
 
void SetParentTrackID (int id)
 
int GetParentTrackID () const
 
void SetPrimaryFlag (G4bool q)
 
G4bool GetPrimaryFlag () const
 
void SetMomentumAtVertex (const G4LorentzVector &p)
 
const G4LorentzVectorGetMomentumAtVertex () const
 
void SetVertex (const G4MCTSimVertex *v)
 
G4MCTSimVertexGetVertex () const
 
void SetStoreFlag (G4bool q)
 
G4bool GetStoreFlag () const
 
int AssociateParticle (G4MCTSimParticle *p)
 
int GetNofAssociatedParticles () const
 
G4MCTSimParticleGetAssociatedParticle (int i) const
 
int GetTreeLevel () const
 
void SetStoreFlagToParentTree (G4bool q=true)
 
void Print (std::ostream &ostr=std::cout, G4bool qrevorder=false) const
 
void PrintSingle (std::ostream &ostr=std::cout) const
 

Protected Attributes

G4MCTSimParticleparentParticle
 
std::vector< G4MCTSimParticle * > associatedParticleList
 
std::string name
 
int pdgID
 
int trackID
 
int parentTrackID
 
G4bool primaryFlag
 
G4LorentzVector momentumAtVertex
 
G4MCTSimVertexvertex
 
G4bool storeFlag
 

Detailed Description

Definition at line 48 of file G4MCTSimParticle.hh.

Constructor & Destructor Documentation

G4MCTSimParticle::G4MCTSimParticle ( )

Definition at line 47 of file G4MCTSimParticle.cc.

G4MCTSimParticle::G4MCTSimParticle ( std::string  aname,
int  apcode,
int  atid,
int  ptid,
const G4LorentzVector p 
)

Definition at line 57 of file G4MCTSimParticle.cc.

G4MCTSimParticle::G4MCTSimParticle ( std::string  aname,
int  apcode,
int  atid,
int  ptid,
const G4LorentzVector p,
const G4MCTSimVertex v 
)

Definition at line 70 of file G4MCTSimParticle.cc.

G4MCTSimParticle::~G4MCTSimParticle ( )
virtual

Definition at line 84 of file G4MCTSimParticle.cc.

References associatedParticleList.

G4MCTSimParticle::G4MCTSimParticle ( const G4MCTSimParticle right)
inline

Definition at line 116 of file G4MCTSimParticle.hh.

References right.

Member Function Documentation

int G4MCTSimParticle::AssociateParticle ( G4MCTSimParticle p)

Definition at line 91 of file G4MCTSimParticle.cc.

References associatedParticleList, and SetParentParticle().

+ Here is the call graph for this function:

G4MCTSimParticle * G4MCTSimParticle::GetAssociatedParticle ( int  i) const

Definition at line 107 of file G4MCTSimParticle.cc.

const G4LorentzVector & G4MCTSimParticle::GetMomentumAtVertex ( ) const
inline

Definition at line 171 of file G4MCTSimParticle.hh.

References momentumAtVertex.

int G4MCTSimParticle::GetNofAssociatedParticles ( ) const

Definition at line 100 of file G4MCTSimParticle.cc.

References associatedParticleList.

G4MCTSimParticle * G4MCTSimParticle::GetParentParticle ( ) const
inline

Definition at line 141 of file G4MCTSimParticle.hh.

References parentParticle.

Referenced by GetTreeLevel().

+ Here is the caller graph for this function:

int G4MCTSimParticle::GetParentTrackID ( ) const
inline

Definition at line 165 of file G4MCTSimParticle.hh.

References parentTrackID.

const std::string & G4MCTSimParticle::GetParticleName ( ) const
inline

Definition at line 147 of file G4MCTSimParticle.hh.

References name.

int G4MCTSimParticle::GetPdgID ( ) const
inline

Definition at line 152 of file G4MCTSimParticle.hh.

References pdgID.

G4bool G4MCTSimParticle::GetPrimaryFlag ( ) const
inline

Definition at line 160 of file G4MCTSimParticle.hh.

References primaryFlag.

G4bool G4MCTSimParticle::GetStoreFlag ( ) const
inline

Definition at line 182 of file G4MCTSimParticle.hh.

References storeFlag.

int G4MCTSimParticle::GetTrackID ( ) const
inline

Definition at line 156 of file G4MCTSimParticle.hh.

References trackID.

Referenced by G4MCTSimVertex::AddOutParticle().

+ Here is the caller graph for this function:

int G4MCTSimParticle::GetTreeLevel ( ) const

Definition at line 116 of file G4MCTSimParticle.cc.

References GetParentParticle().

+ Here is the call graph for this function:

G4MCTSimVertex * G4MCTSimParticle::GetVertex ( ) const
inline

Definition at line 177 of file G4MCTSimParticle.hh.

References vertex.

const G4MCTSimParticle & G4MCTSimParticle::operator= ( const G4MCTSimParticle right)
inline
void G4MCTSimParticle::Print ( std::ostream &  ostr = std::cout,
G4bool  qrevorder = false 
) const

Definition at line 194 of file G4MCTSimParticle.cc.

References pyG4Element::Print().

+ Here is the call graph for this function:

void G4MCTSimParticle::PrintSingle ( std::ostream &  ostr = std::cout) const

Definition at line 139 of file G4MCTSimParticle.cc.

References G4endl, GeV, mm, name, ns, and right.

void G4MCTSimParticle::SetMomentumAtVertex ( const G4LorentzVector p)
inline

Definition at line 168 of file G4MCTSimParticle.hh.

References momentumAtVertex.

void G4MCTSimParticle::SetParentParticle ( const G4MCTSimParticle p)
inline

Definition at line 138 of file G4MCTSimParticle.hh.

References parentParticle.

Referenced by AssociateParticle().

+ Here is the caller graph for this function:

void G4MCTSimParticle::SetParentTrackID ( int  id)
inline

Definition at line 162 of file G4MCTSimParticle.hh.

References parentTrackID.

void G4MCTSimParticle::SetParticleName ( std::string  aname)
inline

Definition at line 144 of file G4MCTSimParticle.hh.

References name.

void G4MCTSimParticle::SetPdgID ( int  id)
inline

Definition at line 150 of file G4MCTSimParticle.hh.

References pdgID.

void G4MCTSimParticle::SetPrimaryFlag ( G4bool  q)
inline

Definition at line 158 of file G4MCTSimParticle.hh.

References primaryFlag.

void G4MCTSimParticle::SetStoreFlag ( G4bool  q)
inline

Definition at line 180 of file G4MCTSimParticle.hh.

References storeFlag.

Referenced by SetStoreFlagToParentTree().

+ Here is the caller graph for this function:

void G4MCTSimParticle::SetStoreFlagToParentTree ( G4bool  q = true)

Definition at line 128 of file G4MCTSimParticle.cc.

References parentParticle, primaryFlag, SetStoreFlag(), storeFlag, and vertex.

+ Here is the call graph for this function:

void G4MCTSimParticle::SetTrackID ( int  id)
inline

Definition at line 154 of file G4MCTSimParticle.hh.

References trackID.

void G4MCTSimParticle::SetVertex ( const G4MCTSimVertex v)
inline

Definition at line 174 of file G4MCTSimParticle.hh.

References vertex.

Member Data Documentation

std::vector<G4MCTSimParticle*> G4MCTSimParticle::associatedParticleList
protected
G4LorentzVector G4MCTSimParticle::momentumAtVertex
protected

Definition at line 58 of file G4MCTSimParticle.hh.

Referenced by GetMomentumAtVertex(), operator=(), and SetMomentumAtVertex().

std::string G4MCTSimParticle::name
protected

Definition at line 53 of file G4MCTSimParticle.hh.

Referenced by GetParticleName(), operator=(), and SetParticleName().

G4MCTSimParticle* G4MCTSimParticle::parentParticle
protected
int G4MCTSimParticle::parentTrackID
protected

Definition at line 56 of file G4MCTSimParticle.hh.

Referenced by GetParentTrackID(), operator=(), and SetParentTrackID().

int G4MCTSimParticle::pdgID
protected

Definition at line 54 of file G4MCTSimParticle.hh.

Referenced by GetPdgID(), operator=(), and SetPdgID().

G4bool G4MCTSimParticle::primaryFlag
protected
G4bool G4MCTSimParticle::storeFlag
protected

Definition at line 60 of file G4MCTSimParticle.hh.

Referenced by GetStoreFlag(), SetStoreFlag(), and SetStoreFlagToParentTree().

int G4MCTSimParticle::trackID
protected

Definition at line 55 of file G4MCTSimParticle.hh.

Referenced by GetTrackID(), operator=(), and SetTrackID().

G4MCTSimVertex* G4MCTSimParticle::vertex
protected

Definition at line 59 of file G4MCTSimParticle.hh.

Referenced by GetVertex(), operator=(), SetStoreFlagToParentTree(), and SetVertex().


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