#include <G4MCTSimVertex.hh>
Definition at line 45 of file G4MCTSimVertex.hh.
G4MCTSimVertex::G4MCTSimVertex |
( |
| ) |
|
Definition at line 47 of file G4MCTSimVertex.cc.
48 : inParticleTrackID(0),id(-1), time(0.),
49 volumeName(
""), volumeNumber(-1),
50 creatorProcessName(
"none"),
G4MCTSimVertex::G4MCTSimVertex |
( |
const G4ThreeVector & |
x, |
|
|
double |
t |
|
) |
| |
Definition at line 57 of file G4MCTSimVertex.cc.
58 : inParticleTrackID(0), id(-1),
position(x), time(t),
59 volumeName(
""), volumeNumber(-1),
60 creatorProcessName(
"none"), storeFlag(
false)
G4MCTSimVertex::G4MCTSimVertex |
( |
const G4ThreeVector & |
x, |
|
|
double |
t, |
|
|
std::string |
vname, |
|
|
int |
ncopy, |
|
|
std::string |
pname |
|
) |
| |
Definition at line 66 of file G4MCTSimVertex.cc.
68 : inParticleTrackID(0), id(-1),
position(x), time(t),
69 volumeName(vname), volumeNumber(ncopy),
70 creatorProcessName(pname), storeFlag(
false)
G4MCTSimVertex::~G4MCTSimVertex |
( |
| ) |
|
int G4MCTSimVertex::AddOutParticle |
( |
int |
out | ) |
|
|
inline |
Definition at line 183 of file G4MCTSimVertex.hh.
185 outParticleTrackIDList.push_back(out);
186 return outParticleTrackIDList.size();
const std::string & G4MCTSimVertex::GetCreatorProcessName |
( |
| ) |
const |
|
inline |
int G4MCTSimVertex::GetID |
( |
| ) |
const |
|
inline |
int G4MCTSimVertex::GetInParticleTrackID |
( |
| ) |
const |
|
inline |
int G4MCTSimVertex::GetNofOutParticles |
( |
| ) |
const |
|
inline |
int G4MCTSimVertex::GetOutParticleTrackID |
( |
int |
i | ) |
const |
|
inline |
Definition at line 189 of file G4MCTSimVertex.hh.
191 int size= outParticleTrackIDList.size();
192 if(i>=0 && i< size)
return outParticleTrackIDList[i];
G4bool G4MCTSimVertex::GetStoreFlag |
( |
| ) |
const |
|
inline |
double G4MCTSimVertex::GetTime |
( |
| ) |
const |
|
inline |
const std::string & G4MCTSimVertex::GetVolumeName |
( |
| ) |
const |
|
inline |
int G4MCTSimVertex::GetVolumeNumber |
( |
| ) |
const |
|
inline |
Definition at line 113 of file G4MCTSimVertex.hh.
115 inParticleTrackID= right.inParticleTrackID;
116 outParticleTrackIDList= right.outParticleTrackIDList;
121 volumeName= right.volumeName;
122 volumeNumber= right.volumeNumber;
123 creatorProcessName= right.creatorProcessName;
void G4MCTSimVertex::Print |
( |
std::ostream & |
ostr = std::cout | ) |
const |
Definition at line 83 of file G4MCTSimVertex.cc.
86 std::ostringstream os;
89 os << cq <<
id <<
'\0';
90 std::string sid(os.str());
92 ostr.unsetf(std::ios::fixed);
93 ostr.setf(std::ios::scientific|std::ios::right|std::ios::showpoint);
95 ostr << std::setw(6) << sid;
96 ostr <<
" : X(" << std::setw(9) << std::setprecision(2)
98 <<
"," << std::setw(9) << std::setprecision(2)
100 <<
"," << std::setw(9) << std::setprecision(2)
102 <<
"," << std::setw(9) << std::setprecision(2)
104 ostr.unsetf(std::ios::scientific);
105 ostr <<
"@" << volumeName
106 <<
"-" << volumeNumber
107 <<
"%" << creatorProcessName
110 ostr <<
" " << std::setw(4) << inParticleTrackID <<
"-> ";
111 size_t np= outParticleTrackIDList.size();
112 for (
size_t i=0; i<np; i++) ostr << outParticleTrackIDList[i] <<
", ";
static constexpr double mm
void G4MCTSimVertex::SetCreatorProcessName |
( |
std::string |
pname | ) |
|
|
inline |
void G4MCTSimVertex::SetID |
( |
int |
i | ) |
|
|
inline |
void G4MCTSimVertex::SetInParticle |
( |
int |
in | ) |
|
|
inline |
void G4MCTSimVertex::SetTime |
( |
double |
t | ) |
|
|
inline |
void G4MCTSimVertex::SetVolumeName |
( |
std::string |
vname | ) |
|
|
inline |
void G4MCTSimVertex::SetVolumeNumber |
( |
int |
n | ) |
|
|
inline |
The documentation for this class was generated from the following files: