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