BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RootEventData/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 "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
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; }
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
void addMdcMc(TMdcMc *mcHit)
void addMcParticle(TMcParticle *mcHit)
void Clear(Option_t *option="")
void Print(Option_t *option="") const
const TMdcMc * getMdcMc(Int_t i) const
void addTofMc(TTofMc *mcHit)
void addEmcMc(TEmcMc *mcHit)
virtual ~TMcEvent()
const TMcParticle * getMcParticle(Int_t i) const
void addMucMc(TMucMc *mcHit)
const TEmcMc * getEmcMc(Int_t i) const
const TMucMc * getMucMc(Int_t i) const
const TTofMc * getTofMc(Int_t i) const
void initialize()