#include <G4MCTSimParticle.hh>
|
| 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 G4MCTSimParticle & | operator= (const G4MCTSimParticle &right) |
|
void | SetParentParticle (const G4MCTSimParticle *p) |
|
G4MCTSimParticle * | GetParentParticle () 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 G4LorentzVector & | GetMomentumAtVertex () const |
|
void | SetVertex (const G4MCTSimVertex *v) |
|
G4MCTSimVertex * | GetVertex () const |
|
void | SetStoreFlag (G4bool q) |
|
G4bool | GetStoreFlag () const |
|
int | AssociateParticle (G4MCTSimParticle *p) |
|
int | GetNofAssociatedParticles () const |
|
G4MCTSimParticle * | GetAssociatedParticle (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 |
|
Definition at line 48 of file G4MCTSimParticle.hh.
◆ G4MCTSimParticle() [1/4]
G4MCTSimParticle::G4MCTSimParticle |
( |
| ) |
|
◆ G4MCTSimParticle() [2/4]
G4MCTSimParticle::G4MCTSimParticle |
( |
std::string |
aname, |
|
|
int |
apcode, |
|
|
int |
atid, |
|
|
int |
ptid, |
|
|
const G4LorentzVector & |
p |
|
) |
| |
Definition at line 57 of file G4MCTSimParticle.cc.
G4MCTSimParticle * parentParticle
G4LorentzVector momentumAtVertex
◆ G4MCTSimParticle() [3/4]
Definition at line 70 of file G4MCTSimParticle.cc.
G4MCTSimParticle * parentParticle
G4LorentzVector momentumAtVertex
◆ ~G4MCTSimParticle()
G4MCTSimParticle::~G4MCTSimParticle |
( |
| ) |
|
|
virtual |
Definition at line 84 of file G4MCTSimParticle.cc.
std::vector< G4MCTSimParticle * > associatedParticleList
◆ G4MCTSimParticle() [4/4]
◆ AssociateParticle()
Definition at line 91 of file G4MCTSimParticle.cc.
void SetParentParticle(const G4MCTSimParticle *p)
std::vector< G4MCTSimParticle * > associatedParticleList
◆ GetAssociatedParticle()
◆ GetMomentumAtVertex()
◆ GetNofAssociatedParticles()
int G4MCTSimParticle::GetNofAssociatedParticles |
( |
| ) |
const |
◆ GetParentParticle()
◆ GetParentTrackID()
int G4MCTSimParticle::GetParentTrackID |
( |
| ) |
const |
|
inline |
◆ GetParticleName()
const std::string & G4MCTSimParticle::GetParticleName |
( |
| ) |
const |
|
inline |
◆ GetPdgID()
int G4MCTSimParticle::GetPdgID |
( |
| ) |
const |
|
inline |
◆ GetPrimaryFlag()
G4bool G4MCTSimParticle::GetPrimaryFlag |
( |
| ) |
const |
|
inline |
◆ GetStoreFlag()
G4bool G4MCTSimParticle::GetStoreFlag |
( |
| ) |
const |
|
inline |
◆ GetTrackID()
int G4MCTSimParticle::GetTrackID |
( |
| ) |
const |
|
inline |
◆ GetTreeLevel()
int G4MCTSimParticle::GetTreeLevel |
( |
| ) |
const |
Definition at line 116 of file G4MCTSimParticle.cc.
121 for(nlevel=1;;nlevel++) {
123 if(p==0)
return nlevel;
G4MCTSimParticle * GetParentParticle() const
◆ GetVertex()
◆ operator=()
Definition at line 122 of file G4MCTSimParticle.hh.
G4MCTSimParticle * parentParticle
G4LorentzVector momentumAtVertex
std::vector< G4MCTSimParticle * > associatedParticleList
◆ Print()
void G4MCTSimParticle::Print |
( |
std::ostream & |
ostr = std::cout , |
|
|
G4bool |
qrevorder = false |
|
) |
| const |
Definition at line 194 of file G4MCTSimParticle.cc.
201 SimParticleList::const_iterator itr;
204 (*itr)->
Print(ostr);
G4MCTSimParticle * parentParticle
void PrintSingle(std::ostream &ostr=std::cout) const
std::vector< G4MCTSimParticle * > associatedParticleList
void Print(std::ostream &ostr=std::cout, G4bool qrevorder=false) const
◆ PrintSingle()
void G4MCTSimParticle::PrintSingle |
( |
std::ostream & |
ostr = std::cout | ) |
const |
Definition at line 139 of file G4MCTSimParticle.cc.
142 std::ostringstream os;
146 std::string stid(os.str());
147 ostr << std::setw(6) << stid;
153 ostr.setf(std::ios::fixed);
156 <<
"," << std::setw(7) << std::setprecision(3)
158 <<
"," << std::setw(7) << std::setprecision(3)
160 <<
"," << std::setw(7) << std::setprecision(3)
165 ostr <<
" %" <<
vertex-> GetCreatorProcessName() <<
G4endl;
167 std::ostringstream osv;
170 osv << cqv <<
vertex-> GetID() <<
'\0';
171 std::string svid(osv.str());
172 ostr <<
" " << std::setw(6) << svid;
174 ostr.unsetf(std::ios::fixed);
176 ostr <<
"- X(" << std::setw(9) << std::setprecision(2)
178 <<
"," << std::setw(9) << std::setprecision(2)
180 <<
"," << std::setw(9) << std::setprecision(2)
182 <<
"," << std::setw(9) << std::setprecision(2)
184 ostr.unsetf(std::ios::scientific);
186 ostr <<
" @" <<
vertex-> GetVolumeName()
187 <<
"-" <<
vertex-> GetVolumeNumber();
G4bool GetStoreFlag() const
G4LorentzVector momentumAtVertex
◆ SetMomentumAtVertex()
◆ SetParentParticle()
◆ SetParentTrackID()
void G4MCTSimParticle::SetParentTrackID |
( |
int |
id | ) |
|
|
inline |
◆ SetParticleName()
void G4MCTSimParticle::SetParticleName |
( |
std::string |
aname | ) |
|
|
inline |
◆ SetPdgID()
void G4MCTSimParticle::SetPdgID |
( |
int |
id | ) |
|
|
inline |
◆ SetPrimaryFlag()
void G4MCTSimParticle::SetPrimaryFlag |
( |
G4bool |
q | ) |
|
|
inline |
◆ SetStoreFlag()
void G4MCTSimParticle::SetStoreFlag |
( |
G4bool |
q | ) |
|
|
inline |
◆ SetStoreFlagToParentTree()
void G4MCTSimParticle::SetStoreFlagToParentTree |
( |
G4bool |
q = true | ) |
|
Definition at line 128 of file G4MCTSimParticle.cc.
void SetStoreFlag(G4bool q)
void SetStoreFlagToParentTree(G4bool q=true)
G4MCTSimParticle * parentParticle
◆ SetTrackID()
void G4MCTSimParticle::SetTrackID |
( |
int |
id | ) |
|
|
inline |
◆ SetVertex()
◆ associatedParticleList
◆ momentumAtVertex
◆ name
std::string G4MCTSimParticle::name |
|
protected |
◆ parentParticle
◆ parentTrackID
int G4MCTSimParticle::parentTrackID |
|
protected |
◆ pdgID
int G4MCTSimParticle::pdgID |
|
protected |
◆ primaryFlag
G4bool G4MCTSimParticle::primaryFlag |
|
protected |
◆ storeFlag
G4bool G4MCTSimParticle::storeFlag |
|
protected |
◆ trackID
int G4MCTSimParticle::trackID |
|
protected |
◆ vertex
The documentation for this class was generated from the following files: