#include <BesTruthVertex.hh>
Public Types | |
enum | { unassigned = -1 } |
enum | { unassigned = -1 } |
Public Member Functions | |
void | AddCurrentDau () |
void | AddCurrentDau () |
BesTruthVertex () | |
BesTruthVertex () | |
G4int | GetCurrentDau () const |
G4int | GetCurrentDau () const |
G4int | GetIndex () const |
G4int | GetIndex () const |
G4int | GetMinDau () const |
G4int | GetMinDau () const |
BesTruthTrack * | GetParentTrack () const |
BesTruthTrack * | GetParentTrack () const |
G4ThreeVector | GetPosition () const |
G4ThreeVector | GetPosition () const |
G4String | GetProcessName () const |
G4String | GetProcessName () const |
bool | GetTerminal () const |
bool | GetTerminal () const |
G4double | GetTime () const |
G4double | GetTime () const |
void | SetIndex (signed long newIndex) |
void | SetIndex (signed long newIndex) |
void | SetMinDau (G4int dau) |
void | SetMinDau (G4int dau) |
void | SetParentTrack (BesTruthTrack *newParent) |
void | SetParentTrack (BesTruthTrack *newParent) |
void | SetPosition (const G4ThreeVector &p) |
void | SetPosition (const G4ThreeVector &p) |
void | SetProcessName (const G4String name) |
void | SetProcessName (const G4String name) |
void | SetTerminal (bool wasTerminal) |
void | SetTerminal (bool wasTerminal) |
void | SetTime (const G4double &t) |
void | SetTime (const G4double &t) |
~BesTruthVertex () | |
~BesTruthVertex () | |
Private Attributes | |
G4int | m_currentDau |
signed long | m_index |
G4int | m_minDau |
BesTruthTrack * | m_parent |
BesTruthTrack * | m_parent |
G4ThreeVector | m_position |
G4String | m_processName |
bool | m_terminal |
G4double | m_time |
Friends | |
ostream & | operator<< (ostream &, const BesTruthVertex *) |
ostream & | operator<< (ostream &, const BesTruthVertex &) |
ostream & | operator<< (ostream &, const BesTruthVertex *) |
ostream & | operator<< (ostream &, const BesTruthVertex &) |
|
00032 {unassigned = -1} ;
|
|
00032 {unassigned = -1} ;
|
|
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 {}
|
|
00027 {;}
|
|
|
|
00027 {;}
|
|
00053 { m_currentDau++; }
|
|
00053 { m_currentDau++; }
|
|
00052 { return m_currentDau;}
|
|
00052 { return m_currentDau;}
|
|
00049 { return m_index; }
|
|
00049 { return m_index; }
|
|
00055 { return m_minDau; }
|
|
00055 { return m_minDau; }
|
|
00043 { return m_parent; }
|
|
00043 { return m_parent; }
|
|
00037 { return m_position; }
|
|
00037 { return m_position; }
|
|
00034 { return m_processName;}
|
|
00034 { return m_processName;}
|
|
00046 { return m_terminal; }
|
|
00046 { return m_terminal; }
|
|
00040 { return m_time; }
|
|
00040 { return m_time; }
|
|
00050 { m_index = newIndex; }
|
|
00050 { m_index = newIndex; }
|
|
00056 { m_minDau = dau; }
|
|
00056 { m_minDau = dau; }
|
|
00044 { m_parent = newParent; }
|
|
00044 { m_parent = newParent; }
|
|
00038 { m_position = p; }
|
|
00038 { m_position = p; }
|
|
00035 {m_processName=name;}
|
|
00035 {m_processName=name;}
|
|
00047 { m_terminal = wasTerminal; }
|
|
00047 { m_terminal = wasTerminal; }
|
|
00041 { m_time = t; }
|
|
00041 { m_time = t; }
|
|
00053 {
00054 stream << *vert;
00055 return stream;
00056 }
|
|
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 }
|
|
00053 {
00054 stream << *vert;
00055 return stream;
00056 }
|
|
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 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|