Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaTriggerTime.h
Go to the documentation of this file.
1#ifndef Podd_THaTriggerTime_h_
2#define Podd_THaTriggerTime_h_
3
5// //
6// THaTriggerTime //
7// //
8// Simple processing: report the global offset of the common-start/stop //
9// for a given spectrometer, for use as a common offset to fix-up //
10// places where the absolute time (ie VDC) is used. //
11// //
12// Lookup in the database what the offset is for each trigger-type, and //
13// report it for each appropriate event. //
14// //
16
18
19class THaDetMap;
20
22public:
23 explicit THaTriggerTime( const char* name="trg", const char* description = "" );
24 virtual ~THaTriggerTime();
25
26 Int_t EventType() const { return fEvtType; }
27
28 virtual void Clear( Option_t* opt="" );
29 virtual Int_t Process( const THaEvData& );
30
31 protected:
32 // Configuration
33 THaDetMap* fDetMap; // Hardware channel map
34 Double_t fTDCRes; // time-per-channel
35 Int_t fCommonStop; // default =0 => TDC type is common-start
36
37 std::vector<Int_t> fTrgTypes; // which trigger-types to watch
38 std::vector<Double_t> fToffsets; // array of trigger-timing offsets
39
40 // Event-by-event data
41 std::vector<Double_t> fTrgTimes; // array of the read-out trigger times
42 Int_t fEvtType; // the relevant event type for this spectr.
43
44 virtual Int_t DefineVariables( EMode mode = kDefine );
45 virtual Int_t ReadDatabase( const TDatime& date );
46
48};
49
50#endif /* Podd_THaTriggerTime_h_ */
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
char name[80]
virtual Int_t Process(const THaEvData &)
std::vector< Double_t > fToffsets
virtual void Clear(Option_t *opt="")
virtual Int_t DefineVariables(EMode mode=kDefine)
virtual ~THaTriggerTime()
std::vector< Double_t > fTrgTimes
THaDetMap * fDetMap
virtual Int_t ReadDatabase(const TDatime &date)
std::vector< Int_t > fTrgTypes
Int_t EventType() const