CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/bak_RootEventData-00-05-12/RootEventData/TMcHitCgem.h
Go to the documentation of this file.
1#ifndef DigiRootData_TMcHitCgem_H
2#define DigiRootData_TMcHitCgem_H 1
3
4#include "TObject.h"
5#include "TString.h"
6#include "TVector3.h"
7#include "TArrayI.h"
8
9class TMcHitCgem: public TObject {
10
11public:
12
14
15 ~TMcHitCgem ();
16
17 /* Set methods */
18 void SetTrackID ( Int_t f_ID_track ) {m_ID_track = f_ID_track ;};
19 void SetLayerID ( Int_t f_ID_layer ) {m_ID_layer = f_ID_layer ;};
20 void SetPDGCode ( Int_t f_pdg_code ) {m_pdg_code = f_pdg_code ;};
21 void SetParentID ( Int_t f_ID_parent ) {m_ID_parent = f_ID_parent ;};
22 void SetGlobalTime ( Double_t f_global_time ) {m_global_time = f_global_time ;};
23 void SetTotalEnergyDeposit ( Double_t f_E_deposit ) {m_E_deposit = f_E_deposit ;};
24 void SetStepLength ( Double_t f_L_step ) {m_L_step = f_L_step ;};
25 void SetPositionOfPrePoint ( TVector3 f_XYZ_pre ) {m_XYZ_pre = f_XYZ_pre ;};
26 void SetPositionOfPostPoint ( TVector3 f_XYZ_post ) {m_XYZ_post = f_XYZ_post ;};
27 void SetMomentumOfPrePoint ( TVector3 f_P_pre ) {m_P_pre = f_P_pre ;};
28 void SetMomentumOfPostPoint ( TVector3 f_P_post ) {m_P_post = f_P_post ;};
29 void SetPrePositionInCu ( TVector3 f_Cu_pre ) {m_Cu_pre = f_Cu_pre ;};
30 void SetPostPositionInCu ( TVector3 f_Cu_post ) {m_Cu_post = f_Cu_post ;};
31 void SetMomentumOfCuPre ( TVector3 f_P_Cu_pre ) {m_P_Cu_pre = f_P_Cu_pre ;};
32 void SetMomentumOfCuPost ( TVector3 f_P_Cu_post ) {m_P_Cu_post = f_P_Cu_post ;};
33 void AddIdentifier ( Int_t f_ID_Identifier[2000] , Int_t N_dim ) {m_ID_Identifier.Set(N_dim, f_ID_Identifier); };
34
35 /* Get methods */
36 Int_t GetTrackID () const {return m_ID_track ;};
37 Int_t GetLayerID () const {return m_ID_layer ;};
38 Int_t GetPDGCode () const {return m_pdg_code ;};
39 Int_t GetParentID () const {return m_ID_parent ;};
40 Double_t GetGlobalTime () const {return m_global_time ;};
41 Double_t GetTotalEnergyDeposit () const {return m_E_deposit ;};
42 Double_t GetStepLength () const {return m_L_step ;};
43 TVector3 GetPositionOfPrePoint () const {return m_XYZ_pre ;};
44 TVector3 GetPositionOfPostPoint () const {return m_XYZ_post ;};
45 TVector3 GetMomentumOfPrePoint () const {return m_P_pre ;};
46 TVector3 GetMomentumOfPostPoint () const {return m_P_post ;};
47 TVector3 GetPrePositionInCu () const {return m_Cu_pre ;};
48 TVector3 GetPostPositionInCu () const {return m_Cu_post ;};
49 TVector3 GetMomentumOfCuPre () const {return m_P_Cu_pre ;};
50 TVector3 GetMomentumOfCuPost () const {return m_P_Cu_post ;};
51 TArrayI GetIdentifier () const {return m_ID_Identifier;};
52
53
54 private:
55 Int_t m_ID_track; /* ID of current track */
56 Int_t m_ID_layer; /* ID of CgemLayer Hits belong to */
57 Int_t m_pdg_code; /* PDG code of the track particle */
58 Int_t m_ID_parent; /* PDG code of the track particle */
59 Double_t m_global_time; /* Time since the current event began */
60 Double_t m_E_deposit; /* Total energy deposited during the step */
61 Double_t m_L_step; /* Step length */
62 TVector3 m_XYZ_pre; /* Position of Pre Point */
63 TVector3 m_XYZ_post; /* Position of Post Point */
64 TVector3 m_P_pre; /* Momentum of Pre Point */
65 TVector3 m_P_post; /* Momentum of post point */
66 TVector3 m_Cu_pre; //position of pre point in Cu//
67 TVector3 m_Cu_post; //position of post point in Cu//
68 TVector3 m_P_Cu_pre; //momentum of pre point in Cu//
69 TVector3 m_P_Cu_post;
70 TArrayI m_ID_Identifier;
71 ClassDef(TMcHitCgem,1)
72};
73
74#endif
void AddIdentifier(Int_t f_ID_Identifier[2000], Int_t N_dim)