CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/bak_RootEventData-00-05-12/RootEventData/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
void addMdcMc(TMdcMc *mcHit)
Mdc.
const TCgemMc * getCgemMc(Int_t i) const
void addMcParticle(TMcParticle *mcHit)
McParticle.
void Clear(Option_t *option="")
void Print(Option_t *option="") const
const TMdcMc * getMdcMc(Int_t i) const
void addCgemMc(TCgemMc *mcHit)
Cgem.
void addTofMc(TTofMc *mcHit)
Tof.
void addEmcMc(TEmcMc *mcHit)
Emc.
const TMcParticle * getMcParticle(Int_t i) const
void addMucMc(TMucMc *mcHit)
Muc.
const TEmcMc * getEmcMc(Int_t i) const
const TMucMc * getMucMc(Int_t i) const
const TTofMc * getTofMc(Int_t i) const