BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTruthVertex Class Reference

#include <BesTruthVertex.hh>

Public Types

enum  { 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)
 
BesTruthTrackGetParentTrack () 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)
 
 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)
 
BesTruthTrackGetParentTrack () 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)
 

Friends

ostream & operator<< (ostream &, const BesTruthVertex &)
 
ostream & operator<< (ostream &, const BesTruthVertex *)
 
ostream & operator<< (ostream &, const BesTruthVertex &)
 
ostream & operator<< (ostream &, const BesTruthVertex *)
 

Detailed Description

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

◆ anonymous enum

anonymous enum
Enumerator
unassigned 

Definition at line 32 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

32{unassigned = -1} ;

Constructor & Destructor Documentation

◆ BesTruthVertex() [1/2]

BesTruthVertex::BesTruthVertex ( )

Definition at line 18 of file BesTruthVertex.cc.

19:m_processName(""),
20m_position(0),
21m_time(0),
22m_parent(0),
23m_terminal(false),
24m_index(unassigned),
25m_currentDau(0),
26m_minDau(0)
27{}

◆ ~BesTruthVertex() [1/2]

BesTruthVertex::~BesTruthVertex ( )
inline

Definition at line 27 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

27{;}

◆ BesTruthVertex() [2/2]

BesTruthVertex::BesTruthVertex ( )

◆ ~BesTruthVertex() [2/2]

BesTruthVertex::~BesTruthVertex ( )
inline

Member Function Documentation

◆ AddCurrentDau() [1/2]

void BesTruthVertex::AddCurrentDau ( )
inline

Definition at line 53 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

53{ m_currentDau++; }

◆ AddCurrentDau() [2/2]

void BesTruthVertex::AddCurrentDau ( )
inline

Definition at line 53 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

53{ m_currentDau++; }

◆ GetCurrentDau() [1/2]

G4int BesTruthVertex::GetCurrentDau ( ) const
inline

Definition at line 52 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

52{ return m_currentDau;}

Referenced by BesSensitiveManager::MakeNewTrack().

◆ GetCurrentDau() [2/2]

G4int BesTruthVertex::GetCurrentDau ( ) const
inline

Definition at line 52 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

52{ return m_currentDau;}

◆ GetIndex() [1/2]

◆ GetIndex() [2/2]

G4int BesTruthVertex::GetIndex ( ) const
inline

Definition at line 49 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

49{ return m_index; }

◆ GetMinDau() [1/2]

G4int BesTruthVertex::GetMinDau ( ) const
inline

Definition at line 55 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

55{ return m_minDau; }

Referenced by BesSensitiveManager::MakeNewTrack().

◆ GetMinDau() [2/2]

G4int BesTruthVertex::GetMinDau ( ) const
inline

Definition at line 55 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

55{ return m_minDau; }

◆ GetParentTrack() [1/2]

BesTruthTrack * BesTruthVertex::GetParentTrack ( ) const
inline

◆ GetParentTrack() [2/2]

BesTruthTrack * BesTruthVertex::GetParentTrack ( ) const
inline

Definition at line 43 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

43{ return m_parent; }

◆ GetPosition() [1/2]

G4ThreeVector BesTruthVertex::GetPosition ( ) const
inline

◆ GetPosition() [2/2]

G4ThreeVector BesTruthVertex::GetPosition ( ) const
inline

Definition at line 37 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

37{ return m_position; }

◆ GetProcessName() [1/2]

G4String BesTruthVertex::GetProcessName ( ) const
inline

Definition at line 34 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

34{ return m_processName;}

◆ GetProcessName() [2/2]

G4String BesTruthVertex::GetProcessName ( ) const
inline

Definition at line 34 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

34{ return m_processName;}

◆ GetTerminal() [1/2]

bool BesTruthVertex::GetTerminal ( ) const
inline

Definition at line 46 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

46{ return m_terminal; }

◆ GetTerminal() [2/2]

bool BesTruthVertex::GetTerminal ( ) const
inline

Definition at line 46 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

46{ return m_terminal; }

◆ GetTime() [1/2]

G4double BesTruthVertex::GetTime ( ) const
inline

◆ GetTime() [2/2]

G4double BesTruthVertex::GetTime ( ) const
inline

Definition at line 40 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

40{ return m_time; }

◆ SetIndex() [1/2]

void BesTruthVertex::SetIndex ( signed long  newIndex)
inline

◆ SetIndex() [2/2]

void BesTruthVertex::SetIndex ( signed long  newIndex)
inline

Definition at line 50 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

50{ m_index = newIndex; }

◆ SetMinDau() [1/2]

void BesTruthVertex::SetMinDau ( G4int  dau)
inline

Definition at line 56 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

56{ m_minDau = dau; }

Referenced by BesSensitiveManager::EndOfTrack().

◆ SetMinDau() [2/2]

void BesTruthVertex::SetMinDau ( G4int  dau)
inline

Definition at line 56 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

56{ m_minDau = dau; }

◆ SetParentTrack() [1/2]

void BesTruthVertex::SetParentTrack ( BesTruthTrack newParent)
inline

◆ SetParentTrack() [2/2]

void BesTruthVertex::SetParentTrack ( BesTruthTrack newParent)
inline

Definition at line 44 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

44{ m_parent = newParent; }

◆ SetPosition() [1/2]

void BesTruthVertex::SetPosition ( const G4ThreeVector &  p)
inline

◆ SetPosition() [2/2]

void BesTruthVertex::SetPosition ( const G4ThreeVector &  p)
inline

Definition at line 38 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

38{ m_position = p; }

◆ SetProcessName() [1/2]

void BesTruthVertex::SetProcessName ( const G4String  name)
inline

Definition at line 35 of file InstallArea/include/TruSim/TruSim/BesTruthVertex.hh.

35{m_processName=name;}

Referenced by BesSensitiveManager::MakeNewTrack().

◆ SetProcessName() [2/2]

void BesTruthVertex::SetProcessName ( const G4String  name)
inline

Definition at line 35 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

35{m_processName=name;}

◆ SetTerminal() [1/2]

void BesTruthVertex::SetTerminal ( bool  wasTerminal)
inline

◆ SetTerminal() [2/2]

void BesTruthVertex::SetTerminal ( bool  wasTerminal)
inline

Definition at line 47 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

47{ m_terminal = wasTerminal; }

◆ SetTime() [1/2]

void BesTruthVertex::SetTime ( const G4double &  t)
inline

◆ SetTime() [2/2]

void BesTruthVertex::SetTime ( const G4double &  t)
inline

Definition at line 41 of file Simulation/BOOST/TruSim/TruSim-00-00-17/TruSim/BesTruthVertex.hh.

41{ m_time = t; }

Friends And Related Function Documentation

◆ operator<< [1/4]

ostream & operator<< ( ostream &  stream,
const BesTruthVertex vert 
)
friend

Definition at line 29 of file BesTruthVertex.cc.

30{
32 stream << " --";
33 else
34 stream << setw(4) << vert.GetIndex();
35
36 if (vert.GetParentTrack())
37 stream << setw(4) << vert.GetParentTrack()->GetIndex();
38 else
39 stream << " --";
40
41 stream << " " << setiosflags(ios::fixed)
42 << setprecision(4) << setw(11) << vert.GetPosition().x()
43 << setprecision(4) << setw(11) << vert.GetPosition().y()
44 << setprecision(4) << setw(11) << vert.GetPosition().z()
45 << " " << setiosflags(ios::scientific)
46 << setprecision(4) << setw(11) << vert.GetTime()
47 << resetiosflags(ios::scientific);
48
49 return stream;
50}

◆ operator<< [2/4]

ostream & operator<< ( ostream &  stream,
const BesTruthVertex vert 
)
friend

Definition at line 29 of file BesTruthVertex.cc.

30{
32 stream << " --";
33 else
34 stream << setw(4) << vert.GetIndex();
35
36 if (vert.GetParentTrack())
37 stream << setw(4) << vert.GetParentTrack()->GetIndex();
38 else
39 stream << " --";
40
41 stream << " " << setiosflags(ios::fixed)
42 << setprecision(4) << setw(11) << vert.GetPosition().x()
43 << setprecision(4) << setw(11) << vert.GetPosition().y()
44 << setprecision(4) << setw(11) << vert.GetPosition().z()
45 << " " << setiosflags(ios::scientific)
46 << setprecision(4) << setw(11) << vert.GetTime()
47 << resetiosflags(ios::scientific);
48
49 return stream;
50}

◆ operator<< [3/4]

ostream & operator<< ( ostream &  stream,
const BesTruthVertex vert 
)
friend

Definition at line 52 of file BesTruthVertex.cc.

53{
54 stream << *vert;
55 return stream;
56}

◆ operator<< [4/4]

ostream & operator<< ( ostream &  stream,
const BesTruthVertex vert 
)
friend

Definition at line 52 of file BesTruthVertex.cc.

53{
54 stream << *vert;
55 return stream;
56}

The documentation for this class was generated from the following files: