BOSS 7.0.6
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 "TEmcMc.h"
11#include "TTofMc.h"
12#include "TMucMc.h"
13#include "TMcParticle.h"
14//#include "TDecayMode.h"
15
16class TMcEvent: public TObject {
17public:
18
19 TMcEvent();
20 virtual ~TMcEvent();
21
22 void initialize();
23
24 void Clear(Option_t *option="");
25
26 void Print(Option_t *option="") const;
27
28
29 // inline Bool_t getFromMc() { return m_fromMc; };
30
31
32 const TObjArray* getMdcMcHitCol() const { return m_mdcMcHitCol; }
33 void addMdcMc(TMdcMc *mcHit);
34 const TMdcMc* getMdcMc(Int_t i) const;
35 void clearMdcMcHitCol() { m_mdcMcHitCol->Clear(); }
36
37
38 const TObjArray* getEmcMcHitCol() const { return m_emcMcHitCol; }
39 void addEmcMc(TEmcMc *mcHit);
40 const TEmcMc* getEmcMc(Int_t i) const;
41 void clearEmcMcHitCol() { m_emcMcHitCol->Clear(); }
42
43
44 const TObjArray* getTofMcHitCol() const { return m_tofMcHitCol; }
45 void addTofMc(TTofMc * mcHit);
46 const TTofMc* getTofMc(Int_t i) const;
47 void clearTofMcHitCol() { m_tofMcHitCol->Clear();}
48
49 const TObjArray* getMucMcHitCol() const { return m_mucMcHitCol; }
50 void addMucMc(TMucMc * mcHit);
51 const TMucMc* getMucMc(Int_t i) const;
52 void clearMucMcHitCol() { m_mucMcHitCol->Clear();}
53
54 const TObjArray* getMcParticleCol() const { return m_mcParticleCol; }
55 void addMcParticle(TMcParticle * mcHit);
56 const TMcParticle* getMcParticle(Int_t i) const;
57 void clearMcParticleCol() { m_mcParticleCol->Clear();}
58/*
59 //DecayMode
60 void addDecayMode(TDecayMode * decayMode);
61 const TDecayMode* getDecayMode() const;
62 void clearDecayMode() { m_decayMode->Clear();}
63*/
64private:
65
66 /// data members to store Mdc data
67 static TObjArray *s_staticMdcMcHitCol;
68 TObjArray* m_mdcMcHitCol; //->
69
70 /// data members to store Emc data
71 static TObjArray *s_staticEmcMcHitCol;
72 TObjArray* m_emcMcHitCol; //->
73
74 /// data members to store Tof data
75 static TObjArray * s_staticTofMcHitCol;
76 TObjArray* m_tofMcHitCol; //->
77
78 /// data members to store Muc data
79 static TObjArray * s_staticMucMcHitCol;
80 TObjArray* m_mucMcHitCol; //->
81
82 /// data members to store McParticle data
83 static TObjArray * s_staticMcParticleCol;
84 TObjArray* m_mcParticleCol; //->
85/*
86 /// data members to store DecayMode data
87 static TObject* s_staticDecayMode;
88 TObject* m_decayMode;
89 */
90
91
92 ClassDef(TMcEvent,2) // Storage for McTruth event and subsystem data
93};
94
95#endif
96
97
98
99
100
Definition: TEmcMc.h:10
void clearTofMcHitCol()
Definition: TMcEvent.h:47
void addMdcMc(TMdcMc *mcHit)
Mdc.
Definition: TMcEvent.cxx:103
void addMcParticle(TMcParticle *mcHit)
McParticle.
Definition: TMcEvent.cxx:148
void Clear(Option_t *option="")
Definition: TMcEvent.cxx:93
void clearEmcMcHitCol()
Definition: TMcEvent.h:41
void Print(Option_t *option="") const
Definition: TMcEvent.cxx:98
const TMdcMc * getMdcMc(Int_t i) const
Definition: TMcEvent.cxx:107
void clearMucMcHitCol()
Definition: TMcEvent.h:52
const TObjArray * getEmcMcHitCol() const
Definition: TMcEvent.h:38
void addTofMc(TTofMc *mcHit)
Tof.
Definition: TMcEvent.cxx:124
void addEmcMc(TEmcMc *mcHit)
Emc.
Definition: TMcEvent.cxx:113
void clearMdcMcHitCol()
Definition: TMcEvent.h:35
virtual ~TMcEvent()
Definition: TMcEvent.cxx:54
TMcEvent()
Definition: TMcEvent.cxx:16
const TMcParticle * getMcParticle(Int_t i) const
Definition: TMcEvent.cxx:153
const TObjArray * getTofMcHitCol() const
Definition: TMcEvent.h:44
void addMucMc(TMucMc *mcHit)
Muc.
Definition: TMcEvent.cxx:136
const TObjArray * getMcParticleCol() const
Definition: TMcEvent.h:54
const TObjArray * getMucMcHitCol() const
Definition: TMcEvent.h:49
const TEmcMc * getEmcMc(Int_t i) const
Definition: TMcEvent.cxx:117
const TMucMc * getMucMc(Int_t i) const
Definition: TMcEvent.cxx:141
const TTofMc * getTofMc(Int_t i) const
Definition: TMcEvent.cxx:129
const TObjArray * getMdcMcHitCol() const
Definition: TMcEvent.h:32
void clearMcParticleCol()
Definition: TMcEvent.h:57
void initialize()
Definition: TMcEvent.cxx:88
Definition: TMdcMc.h:8
Definition: TMucMc.h:8
Definition: TTofMc.h:8