FairRoot/PandaRoot
PndMvdTsEvent.h
Go to the documentation of this file.
1 #ifndef TS_EVENT_CLASS
2 #define TS_EVENT_CLASS
3 
4 // #pragma once
5 #include <TObject.h>
6 #include <TClonesArray.h>
7 
8 typedef unsigned short WORD;
9 typedef unsigned int DWORD;
10 typedef unsigned long long QWORD;
11 
12 class PndMvdTsEvent : public TObject
13 {
14 public:
15  PndMvdTsEvent();
16  virtual ~PndMvdTsEvent();
17 
18 public:
19  void Clear(const Option_t* = NULL);
20  void SetEventId(UInt_t eventId) {fEventId=eventId;}
21  void FillSiHits(int adcChannel, DWORD* hits, WORD count);
22  void FillTdcValues(DWORD* tdcValues, WORD count);
23  void FillQdcValues(DWORD* qdcValues, WORD count);
24  void FillGiTdcValues(DWORD* tdcValues, WORD count);
25  void FillGiQdcValues(DWORD* qdcValues, WORD count);
26  void FillScalerValues(DWORD* qdcValues, WORD count);
27  void SetExtClockCount(QWORD value, DWORD resetCount) {fExtClockCount=value; fExtClockResetCount=resetCount;}
28 
29  UInt_t GetEventId() {return fEventId;}
30  TClonesArray* GetSiHitList() {return fSiHitList;}
31  TClonesArray* GetTdcValues() {return fTdcValues;}
32  TClonesArray* GetQdcValues() {return fQdcValues;}
33  // TClonesArray* GetGiTdcValues() {return fGiTdcValues;}
34  // TClonesArray* GetGiQdcValues() {return fGiQdcValues;}
36  UInt_t* GetScalerValues() {return fScalerValues;}
37 
38  ULong64_t GetExtClockTimeStamp(UInt_t& resetCount) {resetCount=fExtClockResetCount; return fExtClockCount;}
39 
40 protected:
41 
42  // data:
43 public:
44 protected:
45  UInt_t fEventId; //unique ID for the Event
46  TClonesArray* fSiHitList; //list of hit channels on silicon strip detectors
47  TClonesArray* fTdcValues; //TDC raw values
48  TClonesArray* fQdcValues; //QDC raw values
49  // TClonesArray* fGiTdcValues; //TDC raw values (for Giessen TDC)
50  // TClonesArray* fGiQdcValues; //QDC raw values (for Giessen QDC)
52  UInt_t* fScalerValues; //[fNumScalerValues] Scaler values (usually 16 UInt_t values in array)
54  ULong64_t fExtClockCount; //counter value of ext. clock at time of trigger
55  UInt_t fExtClockResetCount; // number of times the ext. clock was reset (since loading of FPGA)
56 
57 private:
58  PndMvdTsEvent(const PndMvdTsEvent& ) = delete;
59  PndMvdTsEvent& operator=(const PndMvdTsEvent& ) = delete;
61 };
62 
63 #endif
void FillGiQdcValues(DWORD *qdcValues, WORD count)
ULong64_t GetExtClockTimeStamp(UInt_t &resetCount)
Definition: PndMvdTsEvent.h:38
UInt_t GetEventId()
Definition: PndMvdTsEvent.h:29
void FillTdcValues(DWORD *tdcValues, WORD count)
void FillQdcValues(DWORD *qdcValues, WORD count)
void SetExtClockCount(QWORD value, DWORD resetCount)
Definition: PndMvdTsEvent.h:27
unsigned short WORD
Definition: PndMvdTsEvent.h:8
size_t fScalerValuesAllocSize
Definition: PndMvdTsEvent.h:53
ClassDef(PndMvdTsEvent, 2)
Int_t fNumScalerValues
Definition: PndMvdTsEvent.h:51
ULong64_t fExtClockCount
allocated memory for fScalerValues
Definition: PndMvdTsEvent.h:54
TClonesArray * fQdcValues
Definition: PndMvdTsEvent.h:48
UInt_t * GetScalerValues()
Definition: PndMvdTsEvent.h:36
void FillSiHits(int adcChannel, DWORD *hits, WORD count)
void Clear(const Option_t *=NULL)
TClonesArray * GetQdcValues()
Definition: PndMvdTsEvent.h:32
UInt_t * fScalerValues
Definition: PndMvdTsEvent.h:52
TClonesArray * fTdcValues
Definition: PndMvdTsEvent.h:47
unsigned int DWORD
Definition: PndMvdTsEvent.h:9
void SetEventId(UInt_t eventId)
Definition: PndMvdTsEvent.h:20
void FillScalerValues(DWORD *qdcValues, WORD count)
Int_t GetScalerValueCount()
Definition: PndMvdTsEvent.h:35
PndMvdTsEvent & operator=(const PndMvdTsEvent &)=delete
UInt_t fExtClockResetCount
Definition: PndMvdTsEvent.h:55
TClonesArray * fSiHitList
Definition: PndMvdTsEvent.h:46
TClonesArray * GetSiHitList()
Definition: PndMvdTsEvent.h:30
int count
CbmHit * hits[nHits]
Definition: RiemannTest.C:19
virtual ~PndMvdTsEvent()
unsigned long long QWORD
Definition: PndMvdTsEvent.h:10
void FillGiTdcValues(DWORD *tdcValues, WORD count)
TClonesArray * GetTdcValues()
Definition: PndMvdTsEvent.h:31