CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-05-13/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 "TMcHitCgem.h"
11#include "TMcDigiEmc.h"
12
13class TMcHitEvent: public TObject {
14public:
15
17 virtual ~TMcHitEvent();
18
19 void Clear(Option_t *option="");
20
21 void Print(Option_t *option="") const;
22
23 /// retrieve the whole TObjArray of McHitTof Data
24 const TObjArray* getMcHitTofCol() const { return m_tTofMcHitCol; };
25
26 ///Add a McHitTof into the TOF Data collection
27 void addMcHitTof( TMcHitTof * hit);
28
29 /// retrieve a McHitTof From the collection, using the index into the array
30 const TMcHitTof* getMcHitTof(Int_t i) const;
31
32 /// retrieve the whole TObjArray of McHitMdc Data
33 const TObjArray* getMcHitMdcCol() const { return m_tMdcMcHitCol; };
34
35 ///Add a McHitMdc into the Mdc Data collection
36 void addMcHitMdc( TMcHitMdc * hit);
37
38 /// retrieve a McHitMdc From the collection, using the index into the array
39 const TMcHitMdc* getMcHitMdc(Int_t i) const;
40
41 /// retrieve the whole TObjArray of McHitCgem Data
42 const TObjArray* getMcHitCgemCol() const { return m_tCgemMcHitCol; };
43
44 ///Add a McHitCgem into the Cgem Data collection
46
47 /// retrieve a McHitCgem From the collection, using the index into the array
48 const TMcHitCgem* getMcHitCgem(Int_t i) const;
49
50 /// retrieve the whole TObjArray of McHitMdc Data
51 const TObjArray* getMcDigiEmcCol() const { return m_tEmcMcDigiCol; };
52
53 ///Add a McHitMdc into the Mdc Data collection
54 void addMcDigiEmc( TMcDigiEmc * digi);
55
56 /// retrieve a McHitMdc From the collection, using the index into the array
57 const TMcDigiEmc* getMcDigiEmc(Int_t i) const;
58
59 void setBeamTime(Double_t time){m_beamTime = time;}
60 Double_t getBeamTime() const {return m_beamTime;}
61
62private:
63
64 /// data members to store Tof data
65 TObjArray* m_tTofMcHitCol; //->
66 /// data members to store Mdc data
67 TObjArray* m_tMdcMcHitCol; //->
68 /// data members to store Cgem data
69 TObjArray* m_tCgemMcHitCol; //->
70 /// data members to store Mdc data
71 TObjArray* m_tEmcMcDigiCol; //->
72
73 Double_t m_beamTime;
74
75
76 ClassDef(TMcHitEvent,5) // Storage for Raw(Digi) event and subsystem data
77};
78
79#endif
80
81
82
83
84
Double_t time
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
const TMcHitCgem * getMcHitCgem(Int_t i) const
retrieve a McHitCgem From the collection, using the index into the array
void addMcHitCgem(TMcHitCgem *hit)
Add a McHitCgem into the Cgem Data collection.
virtual ~TMcHitEvent()
void addMcHitTof(TMcHitTof *hit)
Add a McHitTof into the TOF Data collection.
void addMcDigiEmc(TMcDigiEmc *digi)
Add a McHitMdc into the Mdc Data collection.
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
void Print(Option_t *option="") const
const TObjArray * getMcHitCgemCol() const
retrieve the whole TObjArray of McHitCgem Data
const TMcDigiEmc * getMcDigiEmc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
void addMcHitMdc(TMcHitMdc *hit)
Add a McHitMdc into the Mdc Data collection.
void Clear(Option_t *option="")
const TObjArray * getMcHitMdcCol() const
retrieve the whole TObjArray of McHitMdc Data