BesTruthVertex Class Reference

#include <BesTruthVertex.hh>

List of all members.

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

Private Attributes

G4String m_processName
G4ThreeVector m_position
G4double m_time
BesTruthTrackm_parent
bool m_terminal
signed long m_index
G4int m_currentDau
G4int m_minDau

Friends

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


Detailed Description

Definition at line 23 of file BesTruthVertex.hh.


Member Enumeration Documentation

anonymous enum

Enumerator:
unassigned 

Definition at line 32 of file BesTruthVertex.hh.

00032 {unassigned = -1} ;


Constructor & Destructor Documentation

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]

Definition at line 27 of file BesTruthVertex.hh.

00027 {;}


Member Function Documentation

void BesTruthVertex::AddCurrentDau (  )  [inline]

Definition at line 53 of file BesTruthVertex.hh.

References m_currentDau.

00053 { m_currentDau++; }

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]

Definition at line 46 of file BesTruthVertex.hh.

References m_terminal.

00046 { return m_terminal; }

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

00041 { m_time = t; }


Friends And Related Function Documentation

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

Definition at line 52 of file BesTruthVertex.cc.

00053 {
00054   stream << *vert;
00055   return stream;
00056 }

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 }


Member Data Documentation

G4int BesTruthVertex::m_currentDau [private]

Definition at line 79 of file BesTruthVertex.hh.

Referenced by AddCurrentDau(), and GetCurrentDau().

signed long BesTruthVertex::m_index [private]

Definition at line 75 of file BesTruthVertex.hh.

Referenced by GetIndex(), and SetIndex().

G4int BesTruthVertex::m_minDau [private]

Definition at line 82 of file BesTruthVertex.hh.

Referenced by GetMinDau(), and SetMinDau().

BesTruthTrack* BesTruthVertex::m_parent [private]

Definition at line 69 of file BesTruthVertex.hh.

Referenced by GetParentTrack(), and SetParentTrack().

G4ThreeVector BesTruthVertex::m_position [private]

Definition at line 63 of file BesTruthVertex.hh.

Referenced by GetPosition(), and SetPosition().

G4String BesTruthVertex::m_processName [private]

Definition at line 60 of file BesTruthVertex.hh.

Referenced by GetProcessName(), and SetProcessName().

bool BesTruthVertex::m_terminal [private]

Definition at line 72 of file BesTruthVertex.hh.

Referenced by GetTerminal(), and SetTerminal().

G4double BesTruthVertex::m_time [private]

Definition at line 66 of file BesTruthVertex.hh.

Referenced by GetTime(), and SetTime().


Generated on Tue Nov 29 23:17:37 2016 for BOSS_7.0.2 by  doxygen 1.4.7