CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
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
45 void addMcHitCgem( TMcHitCgem * hit);
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
virtual ~TMcHitEvent()
Definition: TMcHitEvent.cxx:18
const TObjArray * getMcHitTofCol() const
retrieve the whole TObjArray of McHitTof Data
Definition: TMcHitEvent.h:24
const TMcHitTof * getMcHitTof(Int_t i) const
retrieve a McHitTof From the collection, using the index into the array
Definition: TMcHitEvent.cxx:76
const TMcHitCgem * getMcHitCgem(Int_t i) const
retrieve a McHitCgem From the collection, using the index into the array
Definition: TMcHitEvent.cxx:98
void addMcHitCgem(TMcHitCgem *hit)
Add a McHitCgem into the Cgem Data collection.
Definition: TMcHitEvent.cxx:93
void addMcHitTof(TMcHitTof *hit)
Add a McHitTof into the TOF Data collection.
Definition: TMcHitEvent.cxx:71
void addMcDigiEmc(TMcDigiEmc *digi)
Add a McHitMdc into the Mdc Data collection.
Definition: TMcHitEvent.cxx:60
const TObjArray * getMcDigiEmcCol() const
retrieve the whole TObjArray of McHitMdc Data
Definition: TMcHitEvent.h:51
const TMcHitMdc * getMcHitMdc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
Definition: TMcHitEvent.cxx:87
void Print(Option_t *option="") const
Definition: TMcHitEvent.cxx:55
const TObjArray * getMcHitCgemCol() const
retrieve the whole TObjArray of McHitCgem Data
Definition: TMcHitEvent.h:42
const TMcDigiEmc * getMcDigiEmc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
Definition: TMcHitEvent.cxx:65
void addMcHitMdc(TMcHitMdc *hit)
Add a McHitMdc into the Mdc Data collection.
Definition: TMcHitEvent.cxx:82
void Clear(Option_t *option="")
Definition: TMcHitEvent.cxx:38
void setBeamTime(Double_t time)
Definition: TMcHitEvent.h:59
const TObjArray * getMcHitMdcCol() const
retrieve the whole TObjArray of McHitMdc Data
Definition: TMcHitEvent.h:33
Double_t getBeamTime() const
Definition: TMcHitEvent.h:60