BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/TruSim/include/TruSim/BesTruthVertex.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2//////// BOOST --- BESIII Object_Oriented Simulation Tool //
3////////---------------------------------------------------------------------------//
4////////Description:
5////////Author : Dengzy
6////
7//// ////Created: Aug, 2004
8//// ////Modified:
9//// ////Comment:
10//// ////---------------------------------------------------------------------------//
11//// //// $Id: BesTruthVertex.hh
12
13#ifndef BesTruthVertex_h
14#define BesTruthVertex_h 1
15
16#include <iostream>
17using namespace std;
18#include "G4ThreeVector.hh"
19#include "globals.hh"
20
21class BesTruthTrack;
22
23class BesTruthVertex {
24public:
27
28 friend ostream& operator<<( ostream&, const BesTruthVertex& );
29 friend ostream& operator<<( ostream&, const BesTruthVertex* );
30
31 enum { unassigned = -1 };
32
33 G4String GetProcessName() const { return m_processName; }
34 void SetProcessName( const G4String name ) { m_processName = name; }
35
36 G4ThreeVector GetPosition() const { return m_position; }
37 void SetPosition( const G4ThreeVector& p ) { m_position = p; }
38
39 G4double GetTime() const { return m_time; }
40 void SetTime( const G4double& t ) { m_time = t; }
41
42 BesTruthTrack* GetParentTrack() const { return m_parent; }
43 void SetParentTrack( BesTruthTrack* newParent ) { m_parent = newParent; }
44
45 bool GetTerminal() const { return m_terminal; }
46 void SetTerminal( bool wasTerminal ) { m_terminal = wasTerminal; }
47
48 G4int GetIndex() const { return m_index; }
49 void SetIndex( signed long newIndex ) { m_index = newIndex; }
50
51 G4int GetCurrentDau() const { return m_currentDau; }
52 void AddCurrentDau() { m_currentDau++; }
53
54 G4int GetMinDau() const { return m_minDau; }
55 void SetMinDau( G4int dau ) { m_minDau = dau; }
56
57private:
58 // name of the process which created this vertex
59 G4String m_processName;
60
61 // position of this vertex
62 G4ThreeVector m_position;
63
64 // relative time of this vertex
65 G4double m_time;
66
67 // _parent: oldest progenitor stored in a GTrack.
68 BesTruthTrack* m_parent;
69
70 //_terminal: true if this vertex killed its parent particle
71 bool m_terminal;
72
73 // index in vertexList
74 signed long m_index;
75
76 // the following data member is added for recording trackIndex
77 // current processed daughter index, count from 0
78 G4int m_currentDau;
79
80 // minimum daughter index of this vertex
81 G4int m_minDau;
82};
83
84#endif
friend ostream & operator<<(ostream &, const BesTruthVertex &)
int t()
Definition t.c:1