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

#include <BesTruthVertex.hh>

Public Types

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)
 

Friends

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

Detailed Description

Definition at line 23 of file BesTruthVertex.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
unassigned 

Definition at line 32 of file BesTruthVertex.hh.

32{unassigned = -1} ;

Constructor & Destructor Documentation

◆ BesTruthVertex()

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()

BesTruthVertex::~BesTruthVertex ( )
inline

Definition at line 27 of file BesTruthVertex.hh.

27{;}

Member Function Documentation

◆ AddCurrentDau()

void BesTruthVertex::AddCurrentDau ( )
inline

Definition at line 53 of file BesTruthVertex.hh.

53{ m_currentDau++; }

◆ GetCurrentDau()

G4int BesTruthVertex::GetCurrentDau ( ) const
inline

Definition at line 52 of file BesTruthVertex.hh.

52{ return m_currentDau;}

Referenced by BesSensitiveManager::MakeNewTrack().

◆ GetIndex()

◆ GetMinDau()

G4int BesTruthVertex::GetMinDau ( ) const
inline

Definition at line 55 of file BesTruthVertex.hh.

55{ return m_minDau; }

Referenced by BesSensitiveManager::MakeNewTrack().

◆ GetParentTrack()

BesTruthTrack * BesTruthVertex::GetParentTrack ( ) const
inline

◆ GetPosition()

G4ThreeVector BesTruthVertex::GetPosition ( ) const
inline

Definition at line 37 of file BesTruthVertex.hh.

37{ return m_position; }

Referenced by BesEmcSD::ProcessHits(), BesMcTruthWriter::SaveMcParticle(), and BesAsciiIO::SaveVertexTruth().

◆ GetProcessName()

G4String BesTruthVertex::GetProcessName ( ) const
inline

Definition at line 34 of file BesTruthVertex.hh.

34{ return m_processName;}

◆ GetTerminal()

bool BesTruthVertex::GetTerminal ( ) const
inline

Definition at line 46 of file BesTruthVertex.hh.

46{ return m_terminal; }

◆ GetTime()

G4double BesTruthVertex::GetTime ( ) const
inline

Definition at line 40 of file BesTruthVertex.hh.

40{ return m_time; }

Referenced by BesEmcSD::ProcessHits(), BesMcTruthWriter::SaveMcParticle(), and BesAsciiIO::SaveVertexTruth().

◆ SetIndex()

void BesTruthVertex::SetIndex ( signed long  newIndex)
inline

◆ SetMinDau()

void BesTruthVertex::SetMinDau ( G4int  dau)
inline

Definition at line 56 of file BesTruthVertex.hh.

56{ m_minDau = dau; }

Referenced by BesSensitiveManager::EndOfTrack().

◆ SetParentTrack()

void BesTruthVertex::SetParentTrack ( BesTruthTrack newParent)
inline

◆ SetPosition()

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

◆ SetProcessName()

void BesTruthVertex::SetProcessName ( const G4String  name)
inline

Definition at line 35 of file BesTruthVertex.hh.

35{m_processName=name;}

Referenced by BesSensitiveManager::MakeNewTrack().

◆ SetTerminal()

void BesTruthVertex::SetTerminal ( bool  wasTerminal)
inline

Definition at line 47 of file BesTruthVertex.hh.

47{ m_terminal = wasTerminal; }

Referenced by BesSensitiveManager::EndOfTrack(), BesSensitiveManager::MakeNewTrack(), and BesSensitiveManager::UpdateVertex().

◆ SetTime()

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

Friends And Related Function Documentation

◆ operator<< [1/2]

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}
G4int GetIndex() const
BesTruthTrack * GetParentTrack() const
G4double GetTime() const
G4ThreeVector GetPosition() const
G4int GetIndex() const

◆ operator<< [2/2]

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: