#include <BesTruthVertex.hh>
Public Types | |
unassigned = -1 | |
enum | { unassigned = -1 } |
Public Member Functions | |
BesTruthVertex () | |
~BesTruthVertex () | |
G4String | GetProcessName () const |
void | SetProcessName (const G4String name) |
G4ThreeVector | GetPosition () const |
void | SetPosition (const G4ThreeVector &p) |
G4double | GetTime () const |
void | SetTime (const G4double &t) |
BesTruthTrack * | GetParentTrack () const |
void | SetParentTrack (BesTruthTrack *newParent) |
bool | GetTerminal () const |
void | SetTerminal (bool wasTerminal) |
G4int | GetIndex () const |
void | SetIndex (signed long newIndex) |
G4int | GetCurrentDau () const |
void | AddCurrentDau () |
G4int | GetMinDau () const |
void | SetMinDau (G4int dau) |
Private Attributes | |
G4String | m_processName |
G4ThreeVector | m_position |
G4double | m_time |
BesTruthTrack * | m_parent |
bool | m_terminal |
signed long | m_index |
G4int | m_currentDau |
G4int | m_minDau |
Friends | |
ostream & | operator<< (ostream &, const BesTruthVertex &) |
ostream & | operator<< (ostream &, const BesTruthVertex *) |
Definition at line 23 of file BesTruthVertex.hh.
anonymous enum |
BesTruthVertex::BesTruthVertex | ( | ) |
Definition at line 18 of file BesTruthVertex.cc.
00019 :m_processName(""), 00020 m_position(0), 00021 m_time(0), 00022 m_parent(0), 00023 m_terminal(false), 00024 m_index(unassigned), 00025 m_currentDau(0), 00026 m_minDau(0) 00027 {}
BesTruthVertex::~BesTruthVertex | ( | ) | [inline] |
void BesTruthVertex::AddCurrentDau | ( | ) | [inline] |
G4int BesTruthVertex::GetCurrentDau | ( | ) | const [inline] |
Definition at line 52 of file BesTruthVertex.hh.
References m_currentDau.
Referenced by BesSensitiveManager::MakeNewTrack().
00052 { return m_currentDau;}
G4int BesTruthVertex::GetIndex | ( | ) | const [inline] |
Definition at line 49 of file BesTruthVertex.hh.
References m_index.
Referenced by BesSensitiveManager::CheckDecayTrack(), operator<<(), BesMcTruthWriter::SaveMcParticle(), BesAsciiIO::SaveTrackTruth(), BesAsciiIO::SaveVertexTruth(), and BesSensitiveManager::UpdateVertex().
00049 { return m_index; }
G4int BesTruthVertex::GetMinDau | ( | ) | const [inline] |
Definition at line 55 of file BesTruthVertex.hh.
References m_minDau.
Referenced by BesSensitiveManager::MakeNewTrack().
00055 { return m_minDau; }
BesTruthTrack* BesTruthVertex::GetParentTrack | ( | ) | const [inline] |
Definition at line 43 of file BesTruthVertex.hh.
References m_parent.
Referenced by BesTruthTrack::GetParentTrack(), BesSensitiveManager::MakeNewTrack(), operator<<(), BesMcTruthWriter::SaveMcParticle(), and BesAsciiIO::SaveVertexTruth().
00043 { return m_parent; }
G4ThreeVector BesTruthVertex::GetPosition | ( | ) | const [inline] |
Definition at line 37 of file BesTruthVertex.hh.
References m_position.
Referenced by operator<<(), BesMcTruthWriter::SaveMcParticle(), and BesAsciiIO::SaveVertexTruth().
00037 { return m_position; }
G4String BesTruthVertex::GetProcessName | ( | ) | const [inline] |
Definition at line 34 of file BesTruthVertex.hh.
References m_processName.
00034 { return m_processName;}
bool BesTruthVertex::GetTerminal | ( | ) | const [inline] |
G4double BesTruthVertex::GetTime | ( | ) | const [inline] |
Definition at line 40 of file BesTruthVertex.hh.
References m_time.
Referenced by operator<<(), BesMcTruthWriter::SaveMcParticle(), and BesAsciiIO::SaveVertexTruth().
00040 { return m_time; }
void BesTruthVertex::SetIndex | ( | signed long | newIndex | ) | [inline] |
Definition at line 50 of file BesTruthVertex.hh.
References m_index.
Referenced by BesSensitiveManager::EndOfTrack(), and BesSensitiveManager::MakeNewTrack().
00050 { m_index = newIndex; }
void BesTruthVertex::SetMinDau | ( | G4int | dau | ) | [inline] |
Definition at line 56 of file BesTruthVertex.hh.
References m_minDau.
Referenced by BesSensitiveManager::EndOfTrack().
00056 { m_minDau = dau; }
void BesTruthVertex::SetParentTrack | ( | BesTruthTrack * | newParent | ) | [inline] |
Definition at line 44 of file BesTruthVertex.hh.
References m_parent.
Referenced by BesSensitiveManager::EndOfTrack(), and BesSensitiveManager::MakeNewTrack().
00044 { m_parent = newParent; }
void BesTruthVertex::SetPosition | ( | const G4ThreeVector & | p | ) | [inline] |
Definition at line 38 of file BesTruthVertex.hh.
References m_position.
Referenced by BesSensitiveManager::EndOfTrack(), BesSensitiveManager::MakeNewTrack(), and BesSensitiveManager::UpdateVertex().
00038 { m_position = p; }
void BesTruthVertex::SetProcessName | ( | const G4String | name | ) | [inline] |
Definition at line 35 of file BesTruthVertex.hh.
References m_processName.
Referenced by BesSensitiveManager::MakeNewTrack().
00035 {m_processName=name;}
void BesTruthVertex::SetTerminal | ( | bool | wasTerminal | ) | [inline] |
Definition at line 47 of file BesTruthVertex.hh.
References m_terminal.
Referenced by BesSensitiveManager::EndOfTrack(), BesSensitiveManager::MakeNewTrack(), and BesSensitiveManager::UpdateVertex().
00047 { m_terminal = wasTerminal; }
void BesTruthVertex::SetTime | ( | const G4double & | t | ) | [inline] |
Definition at line 41 of file BesTruthVertex.hh.
References m_time.
Referenced by BesSensitiveManager::EndOfTrack(), BesSensitiveManager::MakeNewTrack(), and BesSensitiveManager::UpdateVertex().
ostream& operator<< | ( | ostream & | stream, | |
const BesTruthVertex * | vert | |||
) | [friend] |
ostream& operator<< | ( | ostream & | stream, | |
const BesTruthVertex & | vert | |||
) | [friend] |
Definition at line 29 of file BesTruthVertex.cc.
00030 { 00031 if (vert.GetIndex() == BesTruthVertex::unassigned) 00032 stream << " --"; 00033 else 00034 stream << setw(4) << vert.GetIndex(); 00035 00036 if (vert.GetParentTrack()) 00037 stream << setw(4) << vert.GetParentTrack()->GetIndex(); 00038 else 00039 stream << " --"; 00040 00041 stream << " " << setiosflags(ios::fixed) 00042 << setprecision(4) << setw(11) << vert.GetPosition().x() 00043 << setprecision(4) << setw(11) << vert.GetPosition().y() 00044 << setprecision(4) << setw(11) << vert.GetPosition().z() 00045 << " " << setiosflags(ios::scientific) 00046 << setprecision(4) << setw(11) << vert.GetTime() 00047 << resetiosflags(ios::scientific); 00048 00049 return stream; 00050 }
G4int BesTruthVertex::m_currentDau [private] |
Definition at line 79 of file BesTruthVertex.hh.
Referenced by AddCurrentDau(), and GetCurrentDau().
signed long BesTruthVertex::m_index [private] |
G4int BesTruthVertex::m_minDau [private] |
BesTruthTrack* BesTruthVertex::m_parent [private] |
Definition at line 69 of file BesTruthVertex.hh.
Referenced by GetParentTrack(), and SetParentTrack().
G4ThreeVector BesTruthVertex::m_position [private] |
G4String BesTruthVertex::m_processName [private] |
Definition at line 60 of file BesTruthVertex.hh.
Referenced by GetProcessName(), and SetProcessName().
bool BesTruthVertex::m_terminal [private] |
G4double BesTruthVertex::m_time [private] |