26 std::stringstream msg;
30 msg << std::setw(10) <<
"track ID" <<
' ';
31 msg << std::setw(10) <<
"mother ID" <<
'|';
32 msg << std::setw(10) <<
"active station ID" <<
'|';
33 msg << std::setw(10) <<
"PDG" <<
' ';
35 msg << std::setw(10) <<
"m [GeV/c2]" <<
' ';
36 msg << std::setw(10) <<
"q [e]" <<
'|';
38 msg << std::setw(14) <<
"t [ns]" <<
' ';
39 msg << std::setw(14) <<
"x [cm]" <<
' ';
40 msg << std::setw(14) <<
"y [cm]" <<
' ';
41 msg << std::setw(14) <<
"z [cm]" <<
'|';
43 msg << std::setw(14) <<
"zIn [cm]" <<
' ';
44 msg << std::setw(14) <<
"zOut [cm]" <<
'|';
45 msg << std::setw(14) <<
"p [GeV/c]" <<
'|';
46 msg << std::setw(10) <<
"point ID" <<
' ';
47 msg << std::setw(10) <<
"point ID (ext)" <<
' ';
49 msg << std::setw(10) <<
"event ID" <<
' ';
50 msg << std::setw(10) <<
"file ID" <<
' ';
52 msg << std::setw(16) <<
"hit indices" <<
' ';
58 msg << std::setw(10) <<
fTrackId <<
' ';
61 msg << std::setw(10) <<
fPdgCode <<
' ';
63 msg << std::setw(10) <<
fMass <<
' ';
64 msg << std::setw(10) <<
fCharge <<
'|';
66 msg << std::setw(14) <<
fTime <<
' ';
67 msg << std::setw(14) <<
fPos[0] <<
' ';
68 msg << std::setw(14) <<
fPos[1] <<
' ';
69 msg << std::setw(14) <<
fPos[2] <<
'|';
71 msg << std::setw(14) <<
fPosIn[2] <<
' ';
72 msg << std::setw(14) <<
fPosOut[2] <<
'|';
73 msg << std::setw(14) << this->
GetP() <<
'|';
74 msg << std::setw(10) <<
fId <<
' ';
75 msg << std::setw(10) <<
fLinkKey.fIndex <<
' ';
77 msg << std::setw(10) <<
fLinkKey.fEvent <<
' ';
78 msg << std::setw(10) <<
fLinkKey.fFile <<
' ';
80 std::stringstream msgHits;
84 msg << std::setw(16) << msgHits.str() <<
' ';
Internal class describing a MC point for CA tracking QA and performance (header)
std::string ToString(int verbose, bool printHeader=false) const
Prints content for a given verbosity level.
Class describes a unified MC-point, used in CA tracking QA analysis.
double fMass
Particle mass [GeV/c2].
double fCharge
Particle charge [e].
std::array< double, 3 > fPosOut
Position at exit of station [cm].
int fId
Index of MC point in the external MC point container.
int fMotherId
Index of mother track in CA internal data structures (within event/TS)
double GetP() const
Gets track momentum absolute value at reference z of station [GeV/c].
McLinkKey fLinkKey
Link key of point.
int fPdgCode
Particle PDG code.
double fTime
Point time [ns].
std::array< double, 3 > fPosIn
Position at entrance to station [cm].
int fActiveStationId
Global index of active tracking station.
int fTrackId
Index of associated MC track in CA internal track container within TS/event.
ca::Vector< int > fvHitIndexes
Indexes of hits, assigned to this point.
std::array< double, 3 > fPos
Position at reference z of station [cm].