Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
clonesA_Event.h
Go to the documentation of this file.
1#include "TTree.h"
2#include "Riostream.h"
3
4class TUsrHit:public TObject {
5 public:
6 TUsrHit(Int_t ev=0);
7 virtual ~TUsrHit() {}
8
9 protected:
10 Int_t fEventNumber; // internal event number
11 Int_t fModuleNumber; // module serial number
12 Int_t fChannel; // module channel
13 UShort_t fEventTime[3]; // time stamp generated by dgf clock bus (48 bits unsigned!)
14
15 ClassDef(TUsrHit, 1) // [Analyze] Hit
16};
17
18//______________________________________________________
19
20class TUsrHitBuffer:public TObject {
21 public:
22// TUsrHitBuffer(){};
23 TUsrHitBuffer(Int_t maxent = 10);
24 virtual ~TUsrHitBuffer() {
25 std::cout << "~~~~~~dtor TUsrHitBuffer " << this << std::endl;
26 delete fHits;
27 }
28
29
30 TUsrHit *AddHit(Int_t ev);
31 Int_t GetBufSize() { return fHits->GetSize();}
32 TClonesArray *GetCA() { return (fHits);}
33 void Clear(Option_t *opt="");
34
35 protected:
36
37 Int_t fNofEntries; // max number of entries
38 Int_t fNofHits; // current number of hits
39 TClonesArray *fHits; // array containing hit data
40
41 ClassDef(TUsrHitBuffer, 1) // [Analyze] Hit buffer
42};
43
44//______________________________________________________
45
47
48 public:
49 TMrbSubevent_Caen() {std::cout << "ctor TMrbSubevent_Caen" << this << std::endl;}
50 virtual ~TMrbSubevent_Caen() {}
51 void Clear(Option_t * /* opt */ ="") {fHitBuffer.Clear();};
53 protected:
54
55 Int_t fTimeStamp; // time stamp, same as fUniqueID
56 TUsrHitBuffer fHitBuffer; // hit buffer to store subevent data
57
58 ClassDef(TMrbSubevent_Caen, 1) // [Analyze] Base class for subevents: CAEN data stored in hit buffer
59};
60
61//______________________________________________________
62
64 public:
66
67 virtual ~TUsrSevtData1() {}
68 void SetEvent(Int_t ev);
69 Int_t GetPileup() {return fPileup; };
70
71 protected:
72 TString fSevtName; // subevent name
73 Int_t fMer; // data2.mer
74 Int_t fPileup; // data2.mpileup
75
76 ClassDef(TUsrSevtData1, 1) // [Analyze] Store CAEN data in hit buffer
77};
78//______________________________________________________
79
81 public:
83
84 virtual ~TUsrSevtData2() {}
85 void SetEvent(Int_t ev);
86 Int_t GetPileup() {return fPileup; };
87
88 protected:
89 TString fSevtName; // subevent name
90 Int_t fMer; // data2.mer
91 Int_t fPileup; // data2.mpileup
92
93 ClassDef(TUsrSevtData2, 1) // [Analyze] Store CAEN data in hit buffer
94};
unsigned short UShort_t
Definition RtypesCore.h:40
int Int_t
Definition RtypesCore.h:45
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:342
An array of clone (identical) objects.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
TUsrHitBuffer * GetHitBuffer()
void Clear(Option_t *="")
virtual ~TMrbSubevent_Caen()
TUsrHitBuffer fHitBuffer
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139
TClonesArray * GetCA()
Int_t GetBufSize()
TUsrHit * AddHit(Int_t ev)
void Clear(Option_t *opt="")
TClonesArray * fHits
virtual ~TUsrHitBuffer()
Int_t fEventNumber
Int_t fModuleNumber
virtual ~TUsrHit()
UShort_t fEventTime[3]
Int_t fChannel
void SetEvent(Int_t ev)
TString fSevtName
virtual ~TUsrSevtData1()
Int_t GetPileup()
Int_t GetPileup()
virtual ~TUsrSevtData2()
void SetEvent(Int_t ev)
TString fSevtName