BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/TruSim/TruSim-00-00-17/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 "globals.hh"
19#include "G4ThreeVector.hh"
20
21class BesTruthTrack;
22
24{
25 public:
28
29 friend ostream &operator<<(ostream &, const BesTruthVertex&);
30 friend ostream &operator<<(ostream &, const BesTruthVertex*);
31
32 enum {unassigned = -1} ;
33
34 G4String GetProcessName() const { return m_processName;}
35 void SetProcessName(const G4String name) {m_processName=name;}
36
37 G4ThreeVector GetPosition() const { return m_position; }
38 void SetPosition( const G4ThreeVector &p ) { m_position = p; }
39
40 G4double GetTime() const { return m_time; }
41 void SetTime( const G4double &t ) { m_time = t; }
42
43 BesTruthTrack* GetParentTrack() const { return m_parent; }
44 void SetParentTrack( BesTruthTrack *newParent ) { m_parent = newParent; }
45
46 bool GetTerminal() const { return m_terminal; }
47 void SetTerminal( bool wasTerminal ) { m_terminal = wasTerminal; }
48
49 G4int GetIndex() const { return m_index; }
50 void SetIndex( signed long newIndex ) { m_index = newIndex; }
51
52 G4int GetCurrentDau() const { return m_currentDau;}
53 void AddCurrentDau() { m_currentDau++; }
54
55 G4int GetMinDau() const { return m_minDau; }
56 void SetMinDau(G4int dau) { m_minDau = dau; }
57
58 private:
59 //name of the process which created this vertex
60 G4String m_processName;
61
62 //position of this vertex
63 G4ThreeVector m_position;
64
65 //relative time of this vertex
66 G4double m_time;
67
68 // _parent: oldest progenitor stored in a GTrack.
69 BesTruthTrack* m_parent;
70
71 //_terminal: true if this vertex killed its parent particle
72 bool m_terminal;
73
74 //index in vertexList
75 signed long m_index;
76
77 //the following data member is added for recording trackIndex
78 //current processed daughter index, count from 0
79 G4int m_currentDau;
80
81 //minimum daughter index of this vertex
82 G4int m_minDau;
83};
84
85#endif
friend ostream & operator<<(ostream &, const BesTruthVertex &)
int t()
Definition: t.c:1