BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-80/RootEventData/TMcHitEvent.h
Go to the documentation of this file.
1#ifndef TMcHitEvent_H
2#define TMcHitEvent_H
3
4#include "TObject.h"
5#include "TClonesArray.h"
6#include "TObjArray.h"
7
8#include "TMcHitTof.h"
9#include "TMcHitMdc.h"
10#include "TMcDigiEmc.h"
11
12class TMcHitEvent: public TObject {
13public:
14
16 virtual ~TMcHitEvent();
17
18 void Clear(Option_t *option="");
19
20 void Print(Option_t *option="") const;
21
22 /// retrieve the whole TObjArray of McHitTof Data
23 const TObjArray* getMcHitTofCol() const { return m_tTofMcHitCol; };
24
25 ///Add a McHitTof into the TOF Data collection
26 void addMcHitTof( TMcHitTof * hit);
27
28 /// retrieve a McHitTof From the collection, using the index into the array
29 const TMcHitTof* getMcHitTof(Int_t i) const;
30
31 /// retrieve the whole TObjArray of McHitMdc Data
32 const TObjArray* getMcHitMdcCol() const { return m_tMdcMcHitCol; };
33
34 ///Add a McHitMdc into the Mdc Data collection
35 void addMcHitMdc( TMcHitMdc * hit);
36
37 /// retrieve a McHitMdc From the collection, using the index into the array
38 const TMcHitMdc* getMcHitMdc(Int_t i) const;
39
40 /// retrieve the whole TObjArray of McHitMdc Data
41 const TObjArray* getMcDigiEmcCol() const { return m_tEmcMcDigiCol; };
42
43 ///Add a McHitMdc into the Mdc Data collection
44 void addMcDigiEmc( TMcDigiEmc * digi);
45
46 /// retrieve a McHitMdc From the collection, using the index into the array
47 const TMcDigiEmc* getMcDigiEmc(Int_t i) const;
48
49 void setBeamTime(Double_t time){m_beamTime = time;}
50 Double_t getBeamTime() const {return m_beamTime;}
51
52private:
53
54 /// data members to store Tof data
55 TObjArray* m_tTofMcHitCol; //->
56 /// data members to store Mdc data
57 TObjArray* m_tMdcMcHitCol; //->
58 /// data members to store Mdc data
59 TObjArray* m_tEmcMcDigiCol; //->
60
61 Double_t m_beamTime;
62
63
64 ClassDef(TMcHitEvent,4) // Storage for Raw(Digi) event and subsystem data
65};
66
67#endif
68
69
70
71
72
Double_t time
virtual ~TMcHitEvent()
Definition: TMcHitEvent.cxx:17
const TObjArray * getMcHitTofCol() const
retrieve the whole TObjArray of McHitTof Data
const TMcHitTof * getMcHitTof(Int_t i) const
retrieve a McHitTof From the collection, using the index into the array
Definition: TMcHitEvent.cxx:68
void addMcHitTof(TMcHitTof *hit)
Add a McHitTof into the TOF Data collection.
Definition: TMcHitEvent.cxx:63
void addMcDigiEmc(TMcDigiEmc *digi)
Add a McHitMdc into the Mdc Data collection.
Definition: TMcHitEvent.cxx:52
const TObjArray * getMcDigiEmcCol() const
retrieve the whole TObjArray of McHitMdc Data
const TMcHitMdc * getMcHitMdc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
Definition: TMcHitEvent.cxx:79
void Print(Option_t *option="") const
Definition: TMcHitEvent.cxx:47
const TMcDigiEmc * getMcDigiEmc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
Definition: TMcHitEvent.cxx:57
void addMcHitMdc(TMcHitMdc *hit)
Add a McHitMdc into the Mdc Data collection.
Definition: TMcHitEvent.cxx:74
void Clear(Option_t *option="")
Definition: TMcHitEvent.cxx:33
const TObjArray * getMcHitMdcCol() const
retrieve the whole TObjArray of McHitMdc Data