Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcHelicityReader.h
Go to the documentation of this file.
1#ifndef Podd_THcHelicityReader_h_
2#define Podd_THcHelicityReader_h_
3
5//
6// THcHelicityReader
7//
8// Routines for decoding QWEAK helicity hardware
9//
11
12#include "Rtypes.h"
13#include "Decoder.h"
14#include "Fadc250Module.h"
15
16class THaEvData;
17class TDatime;
18class TH1F;
19
21
22public:
24 virtual ~THcHelicityReader();
25
26 struct ROCinfo {
27 Int_t roc; // ROC to read out
28 Int_t slot; // Headers to search for (0 = ignore)
29 Int_t index; // Index into buffer
30 };
31
32protected:
33
34 // Used by ReadDatabase
35 enum EROC { kHel = 0, kHelm, kMPS, kQrt, kTime, kCount };
36 Int_t SetROCinfo( EROC which, Int_t roc, Int_t slot, Int_t index );
37
38 virtual void Clear( Option_t* opt="" );
39 virtual Int_t ReadData( const THaEvData& evdata );
40 Int_t ReadDatabase( const char* dbfilename, const char* prefix,
41 const TDatime& date, int debug_flag = 0 );
42 void Begin();
43 void End();
44
48
49 // Reported Helicity status for the event
54
55 Int_t fADCThreshold; // Threshold for On/Off of helicity signals
56 Int_t fADCRawSamples; // Use raw sample data if true
57
58 Decoder::Fadc250Module* fFADCModule; // Module object to get trigger time
59 Int_t fTTimeDiff; // Difference between TI and ADC times
60
62
63 Int_t fQWEAKDebug; // Debug level
64 Bool_t fHaveROCs; // Required ROCs are defined
65 Bool_t fNegGate; // Invert polarity of gate, TO DO implement this functionality
66 static const Int_t NHISTR = 12;
67 // TH1F* fHistoR[12]; // Histograms
68
69private:
70
71 ClassDef(THcHelicityReader,0) // Helper class for reading QWEAK helicity data
72
73};
74
75#endif
76
int Int_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
ROCinfo fROCinfo[kCount]
virtual void Clear(Option_t *opt="")
static const Int_t NHISTR
Int_t SetROCinfo(EROC which, Int_t roc, Int_t slot, Int_t index)
Decoder::Fadc250Module * fFADCModule
virtual Int_t ReadData(const THaEvData &evdata)
Int_t ReadDatabase(const char *dbfilename, const char *prefix, const TDatime &date, int debug_flag=0)
unsigned long long ULong64_t