CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TMcEvent.h
Go to the documentation of this file.
1
2#ifndef ROOT_TMcEvent_H
3#define ROOT_TMcEvent_H
4
5#include "TObject.h"
6#include "TClonesArray.h"
7#include "TObjArray.h"
8
9#include "TMdcMc.h"
10#include "TCgemMc.h"
11#include "TEmcMc.h"
12#include "TTofMc.h"
13#include "TMucMc.h"
14#include "TMcParticle.h"
15//#include "TDecayMode.h"
16
17class TMcEvent: public TObject {
18public:
19
20 TMcEvent();
21 virtual ~TMcEvent();
22
23 void initialize();
24
25 void Clear(Option_t *option="");
26
27 void Print(Option_t *option="") const;
28
29
30 // inline Bool_t getFromMc() { return m_fromMc; };
31
32
33 const TObjArray* getMdcMcHitCol() const { return m_mdcMcHitCol; }
34 void addMdcMc(TMdcMc *mcHit);
35 const TMdcMc* getMdcMc(Int_t i) const;
36 void clearMdcMcHitCol() { m_mdcMcHitCol->Clear(); }
37
38 const TObjArray* getCgemMcHitCol() const { return m_cgemMcHitCol; }
39 void addCgemMc(TCgemMc *mcHit);
40 const TCgemMc* getCgemMc(Int_t i) const;
41 void clearCgemMcHitCol() { m_cgemMcHitCol->Clear(); }
42
43
44 const TObjArray* getEmcMcHitCol() const { return m_emcMcHitCol; }
45 void addEmcMc(TEmcMc *mcHit);
46 const TEmcMc* getEmcMc(Int_t i) const;
47 void clearEmcMcHitCol() { m_emcMcHitCol->Clear(); }
48
49
50 const TObjArray* getTofMcHitCol() const { return m_tofMcHitCol; }
51 void addTofMc(TTofMc * mcHit);
52 const TTofMc* getTofMc(Int_t i) const;
53 void clearTofMcHitCol() { m_tofMcHitCol->Clear();}
54
55 const TObjArray* getMucMcHitCol() const { return m_mucMcHitCol; }
56 void addMucMc(TMucMc * mcHit);
57 const TMucMc* getMucMc(Int_t i) const;
58 void clearMucMcHitCol() { m_mucMcHitCol->Clear();}
59
60 const TObjArray* getMcParticleCol() const { return m_mcParticleCol; }
61 void addMcParticle(TMcParticle * mcHit);
62 const TMcParticle* getMcParticle(Int_t i) const;
63 void clearMcParticleCol() { m_mcParticleCol->Clear();}
64/*
65 //DecayMode
66 void addDecayMode(TDecayMode * decayMode);
67 const TDecayMode* getDecayMode() const;
68 void clearDecayMode() { m_decayMode->Clear();}
69*/
70private:
71
72 /// data members to store Mdc data
73 static TObjArray *s_staticMdcMcHitCol;
74 TObjArray* m_mdcMcHitCol; //->
75
76 /// data members to store Cgem data
77 static TObjArray *s_staticCgemMcHitCol;
78 TObjArray* m_cgemMcHitCol; //->
79
80 /// data members to store Emc data
81 static TObjArray *s_staticEmcMcHitCol;
82 TObjArray* m_emcMcHitCol; //->
83
84 /// data members to store Tof data
85 static TObjArray * s_staticTofMcHitCol;
86 TObjArray* m_tofMcHitCol; //->
87
88 /// data members to store Muc data
89 static TObjArray * s_staticMucMcHitCol;
90 TObjArray* m_mucMcHitCol; //->
91
92 /// data members to store McParticle data
93 static TObjArray * s_staticMcParticleCol;
94 TObjArray* m_mcParticleCol; //->
95/*
96 /// data members to store DecayMode data
97 static TObject* s_staticDecayMode;
98 TObject* m_decayMode;
99 */
100
101
102 ClassDef(TMcEvent,3) // Storage for McTruth event and subsystem data
103};
104
105#endif
106
107
108
109
110
Definition: TEmcMc.h:10
const TObjArray * getCgemMcHitCol() const
Definition: TMcEvent.h:38
void clearTofMcHitCol()
Definition: TMcEvent.h:53
void addMdcMc(TMdcMc *mcHit)
Mdc.
Definition: TMcEvent.cxx:114
const TCgemMc * getCgemMc(Int_t i) const
Definition: TMcEvent.cxx:128
void addMcParticle(TMcParticle *mcHit)
McParticle.
Definition: TMcEvent.cxx:169
void Clear(Option_t *option="")
Definition: TMcEvent.cxx:104
void clearEmcMcHitCol()
Definition: TMcEvent.h:47
void Print(Option_t *option="") const
Definition: TMcEvent.cxx:109
const TMdcMc * getMdcMc(Int_t i) const
Definition: TMcEvent.cxx:118
void clearMucMcHitCol()
Definition: TMcEvent.h:58
void addCgemMc(TCgemMc *mcHit)
Cgem.
Definition: TMcEvent.cxx:124
void clearCgemMcHitCol()
Definition: TMcEvent.h:41
const TObjArray * getEmcMcHitCol() const
Definition: TMcEvent.h:44
void addTofMc(TTofMc *mcHit)
Tof.
Definition: TMcEvent.cxx:145
void addEmcMc(TEmcMc *mcHit)
Emc.
Definition: TMcEvent.cxx:134
void clearMdcMcHitCol()
Definition: TMcEvent.h:36
virtual ~TMcEvent()
Definition: TMcEvent.cxx:60
TMcEvent()
Definition: TMcEvent.cxx:17
const TMcParticle * getMcParticle(Int_t i) const
Definition: TMcEvent.cxx:174
const TObjArray * getTofMcHitCol() const
Definition: TMcEvent.h:50
void addMucMc(TMucMc *mcHit)
Muc.
Definition: TMcEvent.cxx:157
const TObjArray * getMcParticleCol() const
Definition: TMcEvent.h:60
const TObjArray * getMucMcHitCol() const
Definition: TMcEvent.h:55
const TEmcMc * getEmcMc(Int_t i) const
Definition: TMcEvent.cxx:138
const TMucMc * getMucMc(Int_t i) const
Definition: TMcEvent.cxx:162
const TTofMc * getTofMc(Int_t i) const
Definition: TMcEvent.cxx:150
const TObjArray * getMdcMcHitCol() const
Definition: TMcEvent.h:33
void clearMcParticleCol()
Definition: TMcEvent.h:63
void initialize()
Definition: TMcEvent.cxx:99
Definition: TMdcMc.h:9
Definition: TMucMc.h:8
Definition: TTofMc.h:8