CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
BesCgemHit Class Reference

#include <BesCgemHit.hh>

+ Inheritance diagram for BesCgemHit:

Public Member Functions

 BesCgemHit ()
 
 BesCgemHit (const BesCgemHit &)
 
 ~BesCgemHit ()
 
const BesCgemHitoperator= (const BesCgemHit &)
 
G4int operator== (const BesCgemHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetRdtEl (G4int f_RdtElectron)
 
void SetHitID (G4int f_ID_hit)
 
void SetTrackID (G4int f_ID_track)
 
void SetIsSecondary (G4int isSec)
 
void SetLayerID (G4int f_ID_layer)
 
void SetPDGCode (G4int f_pdg_code)
 
void SetParentID (G4int f_ID_parent)
 
void SetGlobalTime (G4double f_global_time)
 
void SetTotalEnergyDeposit (G4double f_E_deposit)
 
void SetStepLength (G4double f_L_step)
 
void SetPositionOfPrePoint (G4ThreeVector f_XYZ_pre)
 
void SetPositionOfPostPoint (G4ThreeVector f_XYZ_post)
 
void SetPositionOfPrePointAlign (G4ThreeVector f_XYZ_pre)
 
void SetPositionOfPostPointAlign (G4ThreeVector f_XYZ_post)
 
void SetMomentumOfPrePoint (G4ThreeVector f_P_pre)
 
void SetMomentumOfPostPoint (G4ThreeVector f_P_post)
 
void AddIdentifier (G4int f_ID_Identifier[2000], G4int N_dim)
 
void SetCreatorProcess (G4String proName)
 
void SetFlightLengthPrePoint (G4double len)
 
void SetFlightLengthPostPoint (G4double len)
 
void AddDigiIdxQ (G4int id)
 
void SetDigiIdxT (G4int id)
 
G4int GetRdtEl () const
 
G4int GetHitID () const
 
G4int GetTrackID () const
 
G4int GetIsSecondary () const
 
G4int GetLayerID () const
 
G4int GetPDGCode () const
 
G4int GetParentID () const
 
G4double GetGlobalTime () const
 
G4double GetTotalEnergyDeposit () const
 
G4double GetStepLength () const
 
G4ThreeVector GetPositionOfPrePoint () const
 
G4ThreeVector GetPositionOfPostPoint () const
 
G4ThreeVector GetPositionOfPrePointAlign () const
 
G4ThreeVector GetPositionOfPostPointAlign () const
 
G4ThreeVector GetMomentumOfPrePoint () const
 
G4ThreeVector GetMomentumOfPostPoint () const
 
TArrayI GetIdentifier () const
 
G4String GetCreatorProcess () const
 
G4int GetFlightLengthPrePoint () const
 
G4int GetFlightLengthPostPoint () const
 
const vector< G4int > & GetVecDigiIdxQ () const
 
G4int GetDigiIdxT () const
 

Detailed Description

Definition at line 53 of file BesCgemHit.hh.

Constructor & Destructor Documentation

◆ BesCgemHit() [1/2]

BesCgemHit::BesCgemHit ( )

Definition at line 61 of file BesCgemHit.cc.

62:G4VHit()
63{
64 m_ID_hit = -1;
65 m_ID_track = -1;
66 m_ID_layer = -1;
67 m_pdg_code = 0;
68 m_ID_parent = 0;
69 m_global_time = 0;
70 m_E_deposit = 0.;
71 m_L_step = 0.;
72 m_XYZ_pre = G4ThreeVector(0., 0., 0.);
73 m_XYZ_post = G4ThreeVector(0., 0., 0.);
74 m_XYZ_pre_align = G4ThreeVector(0., 0., 0.);
75 m_XYZ_post_align = G4ThreeVector(0., 0., 0.);
76 m_P_pre = G4ThreeVector(0., 0., 0.);
77 m_P_post = G4ThreeVector(0., 0., 0.);
78 m_creatorProcess = "Unknown";
79 //Add by sunxh
80 m_ID_Identifier.Reset();
81 //end
82}

◆ BesCgemHit() [2/2]

BesCgemHit::BesCgemHit ( const BesCgemHit right)

Definition at line 90 of file BesCgemHit.cc.

91: G4VHit()
92{
93 m_ID_hit = right.m_ID_hit;
94 m_ID_track = right.m_ID_track;
95 m_ID_layer = right.m_ID_layer;
96 m_pdg_code = right.m_pdg_code;
97 m_ID_parent = right.m_ID_parent;
98 m_global_time = right.m_global_time;
99 m_E_deposit = right.m_E_deposit;
100 m_L_step = right.m_L_step;
101 m_XYZ_pre = right.m_XYZ_pre;
102 m_XYZ_post = right.m_XYZ_post;
103 m_XYZ_pre_align = right.m_XYZ_pre_align;
104 m_XYZ_post_align = right.m_XYZ_post_align;
105 m_P_pre = right.m_P_pre;
106 m_P_post = right.m_P_post;
107 m_creatorProcess = right.m_creatorProcess;
108 //Add by sunxh
109 m_ID_Identifier = right.m_ID_Identifier;
110 //end
111}

◆ ~BesCgemHit()

BesCgemHit::~BesCgemHit ( )

Definition at line 85 of file BesCgemHit.cc.

86{
87}

Member Function Documentation

◆ AddDigiIdxQ()

void BesCgemHit::AddDigiIdxQ ( G4int  id)
inline

Definition at line 102 of file BesCgemHit.hh.

102{ m_vecDigiIdx_Q.push_back(id); };

Referenced by BesCgemDigitizer::Digitize_v3().

◆ AddIdentifier()

void BesCgemHit::AddIdentifier ( G4int  f_ID_Identifier[2000],
G4int  N_dim 
)
inline

Definition at line 95 of file BesCgemHit.hh.

95{m_ID_Identifier.Set(N_dim, f_ID_Identifier); };

Referenced by BesCgemDigitizer::Digitize_v1(), BesCgemDigitizer::Digitize_v2(), BesCgemDigitizer::Digitize_v3(), and BesCgemSD::ProcessHits().

◆ Draw()

virtual void BesCgemHit::Draw ( )
inlinevirtual

Definition at line 68 of file BesCgemHit.hh.

68{};

◆ GetCreatorProcess()

G4String BesCgemHit::GetCreatorProcess ( ) const
inline

Definition at line 131 of file BesCgemHit.hh.

131{return m_creatorProcess;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetDigiIdxT()

G4int BesCgemHit::GetDigiIdxT ( ) const
inline

Definition at line 137 of file BesCgemHit.hh.

137{return m_digiIdx_T;};

◆ GetFlightLengthPostPoint()

G4int BesCgemHit::GetFlightLengthPostPoint ( ) const
inline

Definition at line 135 of file BesCgemHit.hh.

135{return m_flightLength_post;};

◆ GetFlightLengthPrePoint()

G4int BesCgemHit::GetFlightLengthPrePoint ( ) const
inline

Definition at line 134 of file BesCgemHit.hh.

134{return m_flightLength_pre;};

◆ GetGlobalTime()

G4double BesCgemHit::GetGlobalTime ( ) const
inline

◆ GetHitID()

G4int BesCgemHit::GetHitID ( ) const
inline

Definition at line 108 of file BesCgemHit.hh.

108{return m_ID_hit ;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetIdentifier()

TArrayI BesCgemHit::GetIdentifier ( ) const
inline

Definition at line 129 of file BesCgemHit.hh.

129{return m_ID_Identifier;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetIsSecondary()

G4int BesCgemHit::GetIsSecondary ( ) const
inline

Definition at line 111 of file BesCgemHit.hh.

111{return m_isSecondary ;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetLayerID()

◆ GetMomentumOfPostPoint()

G4ThreeVector BesCgemHit::GetMomentumOfPostPoint ( ) const
inline

◆ GetMomentumOfPrePoint()

G4ThreeVector BesCgemHit::GetMomentumOfPrePoint ( ) const
inline

◆ GetParentID()

G4int BesCgemHit::GetParentID ( ) const
inline

Definition at line 114 of file BesCgemHit.hh.

114{return m_ID_parent ;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetPDGCode()

G4int BesCgemHit::GetPDGCode ( ) const
inline

◆ GetPositionOfPostPoint()

◆ GetPositionOfPostPointAlign()

G4ThreeVector BesCgemHit::GetPositionOfPostPointAlign ( ) const
inline

Definition at line 121 of file BesCgemHit.hh.

121{return m_XYZ_post_align;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetPositionOfPrePoint()

◆ GetPositionOfPrePointAlign()

G4ThreeVector BesCgemHit::GetPositionOfPrePointAlign ( ) const
inline

Definition at line 120 of file BesCgemHit.hh.

120{return m_XYZ_pre_align;};

Referenced by BesMcTruthWriter::SaveCgemTruth().

◆ GetRdtEl()

G4int BesCgemHit::GetRdtEl ( ) const
inline

Definition at line 107 of file BesCgemHit.hh.

107{return m_RdtElectron ;};

Referenced by BesCgemDigitizer::Digitize_v1(), BesCgemDigitizer::Digitize_v2(), and BesCgemDigitizer::Digitize_v3().

◆ GetStepLength()

G4double BesCgemHit::GetStepLength ( ) const
inline

Definition at line 117 of file BesCgemHit.hh.

117{return m_L_step ;};

Referenced by BesCgemSD::ProcessHits(), BesRootIO::SaveCgemHitRoot(), BesAsciiIO::SaveCgemHits(), and BesAsciiIO::SaveCgemTruth().

◆ GetTotalEnergyDeposit()

◆ GetTrackID()

◆ GetVecDigiIdxQ()

const vector< G4int > & BesCgemHit::GetVecDigiIdxQ ( ) const
inline

Definition at line 136 of file BesCgemHit.hh.

136{return m_vecDigiIdx_Q;};

◆ operator delete()

void BesCgemHit::operator delete ( void *  hit)
inline

Definition at line 191 of file BesCgemHit.hh.

192{
193 BesCgemHitAllocator.FreeSingle((BesCgemHit*) hit);
194}
G4Allocator< BesCgemHit > BesCgemHitAllocator
Definition: BesCgemHit.cc:58

◆ operator new()

void * BesCgemHit::operator new ( size_t  )
inline

Definition at line 183 of file BesCgemHit.hh.

184{
185 void *hit;
186 hit = (void *) BesCgemHitAllocator.MallocSingle();
187 return hit;
188}

◆ operator=()

const BesCgemHit & BesCgemHit::operator= ( const BesCgemHit right)

Definition at line 114 of file BesCgemHit.cc.

115{
116 m_ID_hit = right.m_ID_hit;
117 m_ID_track = right.m_ID_track;
118 m_ID_layer = right.m_ID_layer;
119 m_pdg_code = right.m_pdg_code;
120 m_ID_parent = right.m_ID_parent;
121 m_global_time = right.m_global_time;
122 m_E_deposit = right.m_E_deposit;
123 m_L_step = right.m_L_step;
124 m_XYZ_pre = right.m_XYZ_pre;
125 m_XYZ_post = right.m_XYZ_post;
126 m_XYZ_pre_align = right.m_XYZ_pre_align;
127 m_XYZ_post_align = right.m_XYZ_post_align;
128 m_P_pre = right.m_P_pre;
129 m_P_post = right.m_P_post;
130 m_creatorProcess = right.m_creatorProcess;
131 //Add by sunxh
132 m_ID_Identifier = right.m_ID_Identifier;
133 //end
134
135 return *this;
136}

◆ operator==()

G4int BesCgemHit::operator== ( const BesCgemHit right) const

Definition at line 139 of file BesCgemHit.cc.

140{
141 return ( this == &right ) ? 1 : 0;
142}

◆ Print()

void BesCgemHit::Print ( )
virtual

Definition at line 145 of file BesCgemHit.cc.

146{
147 G4cout << "INFO : BesCgemHit::Print, Hit information: " << endl;
148
149 G4cout << setw(19) << "TrackID: " << m_ID_track << endl;
150 G4cout << setw(19) << "LayerID: " << m_ID_layer << endl;
151 G4cout << setw(19) << "PDGCode: " << m_pdg_code << endl;
152 G4cout << setw(19) << "ParentID: " << m_ID_parent << endl;
153 G4cout << setw(19) << "CreatorProcess: " << m_creatorProcess << endl;
154 G4cout << setw(19) << "GlobalT: " << G4BestUnit(m_global_time , "Time") << endl;
155 G4cout << setw(19) << "DepositE: " << G4BestUnit(m_E_deposit , "Energy") << endl;
156 G4cout << setw(19) << "StepLength: " << G4BestUnit(m_L_step , "Length") << endl;
157 G4cout << setw(19) << "PrePointXYZ: " << G4BestUnit(m_XYZ_pre , "length") << endl;
158 G4cout << setw(19) << "PostPointXYZ: " << G4BestUnit(m_XYZ_post , "length") << endl;
159 G4cout << setw(19) << "PrePointXYZ_align: " << G4BestUnit(m_XYZ_pre_align, "length") << endl;
160 G4cout << setw(19) << "PostPointXYZ_align: " << G4BestUnit(m_XYZ_post_align,"length") << endl;
161 G4cout << setw(19) << "PrePointP: " << G4BestUnit(m_P_pre , "Energy/Length") << endl;
162 G4cout << setw(19) << "PrePointPdirection: " << G4BestUnit(m_P_post , "Energy/Length") << endl;
163}

◆ SetCreatorProcess()

void BesCgemHit::SetCreatorProcess ( G4String  proName)
inline

Definition at line 97 of file BesCgemHit.hh.

97{m_creatorProcess=proName;};

Referenced by BesCgemSD::ProcessHits().

◆ SetDigiIdxT()

void BesCgemHit::SetDigiIdxT ( G4int  id)
inline

Definition at line 103 of file BesCgemHit.hh.

103{ m_digiIdx_T=id; };

Referenced by BesCgemDigitizer::Digitize_v3().

◆ SetFlightLengthPostPoint()

void BesCgemHit::SetFlightLengthPostPoint ( G4double  len)
inline

Definition at line 101 of file BesCgemHit.hh.

101{m_flightLength_post=len;};

Referenced by BesCgemSD::ProcessHits().

◆ SetFlightLengthPrePoint()

void BesCgemHit::SetFlightLengthPrePoint ( G4double  len)
inline

Definition at line 100 of file BesCgemHit.hh.

100{m_flightLength_pre =len;};

◆ SetGlobalTime()

void BesCgemHit::SetGlobalTime ( G4double  f_global_time)
inline

Definition at line 81 of file BesCgemHit.hh.

81{m_global_time = f_global_time ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetHitID()

void BesCgemHit::SetHitID ( G4int  f_ID_hit)
inline

Definition at line 74 of file BesCgemHit.hh.

74{m_ID_hit = f_ID_hit ;};

Referenced by BesCgemSD::ProcessHits().

◆ SetIsSecondary()

void BesCgemHit::SetIsSecondary ( G4int  isSec)
inline

Definition at line 77 of file BesCgemHit.hh.

77{m_isSecondary = isSec ;};

Referenced by BesCgemSD::ProcessHits().

◆ SetLayerID()

void BesCgemHit::SetLayerID ( G4int  f_ID_layer)
inline

Definition at line 78 of file BesCgemHit.hh.

78{m_ID_layer = f_ID_layer ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetMomentumOfPostPoint()

void BesCgemHit::SetMomentumOfPostPoint ( G4ThreeVector  f_P_post)
inline

Definition at line 89 of file BesCgemHit.hh.

89{m_P_post = f_P_post ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetMomentumOfPrePoint()

void BesCgemHit::SetMomentumOfPrePoint ( G4ThreeVector  f_P_pre)
inline

Definition at line 88 of file BesCgemHit.hh.

88{m_P_pre = f_P_pre ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetParentID()

void BesCgemHit::SetParentID ( G4int  f_ID_parent)
inline

Definition at line 80 of file BesCgemHit.hh.

80{m_ID_parent = f_ID_parent ;};

Referenced by BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetPDGCode()

void BesCgemHit::SetPDGCode ( G4int  f_pdg_code)
inline

Definition at line 79 of file BesCgemHit.hh.

79{m_pdg_code = f_pdg_code ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetPositionOfPostPoint()

void BesCgemHit::SetPositionOfPostPoint ( G4ThreeVector  f_XYZ_post)
inline

Definition at line 85 of file BesCgemHit.hh.

85{m_XYZ_post = f_XYZ_post ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetPositionOfPostPointAlign()

void BesCgemHit::SetPositionOfPostPointAlign ( G4ThreeVector  f_XYZ_post)
inline

Definition at line 87 of file BesCgemHit.hh.

87{m_XYZ_post_align= f_XYZ_post;};

Referenced by BesCgemSD::ProcessHits().

◆ SetPositionOfPrePoint()

void BesCgemHit::SetPositionOfPrePoint ( G4ThreeVector  f_XYZ_pre)
inline

Definition at line 84 of file BesCgemHit.hh.

84{m_XYZ_pre = f_XYZ_pre ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetPositionOfPrePointAlign()

void BesCgemHit::SetPositionOfPrePointAlign ( G4ThreeVector  f_XYZ_pre)
inline

Definition at line 86 of file BesCgemHit.hh.

86{m_XYZ_pre_align = f_XYZ_pre;};

Referenced by BesCgemSD::ProcessHits().

◆ SetRdtEl()

void BesCgemHit::SetRdtEl ( G4int  f_RdtElectron)
inline

Definition at line 73 of file BesCgemHit.hh.

73{m_RdtElectron = f_RdtElectron ;};

Referenced by BesCgemSD::ProcessHits().

◆ SetStepLength()

void BesCgemHit::SetStepLength ( G4double  f_L_step)
inline

Definition at line 83 of file BesCgemHit.hh.

83{m_L_step = f_L_step ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetTotalEnergyDeposit()

void BesCgemHit::SetTotalEnergyDeposit ( G4double  f_E_deposit)
inline

Definition at line 82 of file BesCgemHit.hh.

82{m_E_deposit = f_E_deposit ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().

◆ SetTrackID()

void BesCgemHit::SetTrackID ( G4int  f_ID_track)
inline

Definition at line 76 of file BesCgemHit.hh.

76{m_ID_track = f_ID_track ;};

Referenced by BesTuningIO::GetCgemHits(), BesTuningIO::GetCgemRootHits(), and BesCgemSD::ProcessHits().


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