31 fDetMap(new
THaDetMap), fTDCRes(0.0), fCommonStop(0), fEvtType(-1)
49 TimeCorrectionModule::Clear(opt);
113 const char*
const here =
"ReadDatabase";
129 vector<Double_t> trigdef;
130 DBRequest config_request[] = {
132 {
"trigdef", &trigdef, kDoubleV },
143 if( trigdef.size() % 5 != 0 ) {
144 Error(
Here(
here),
"Incorrect number of elements in \"trigdef\" "
145 "parameter = %u. Must be a multiple of 5. Fix database.",
146 static_cast<unsigned int>(trigdef.size()) );
160 UInt_t ndef = trigdef.size() / 5;
161 for(
UInt_t i = 0; i<ndef; ++i ) {
191 {
"evtype",
"Earliest trg-bit for the event",
"fEvtType" },
192 {
"trgtimes",
"Times for each trg-type",
"fTrgTimes" },
Option_t Option_t TPoint TPoint const char mode
static const char *const here
virtual Int_t ReadDatabase(const TDatime &date)
static Int_t LoadDB(FILE *file, const TDatime &date, const DBRequest *request, const char *prefix, Int_t search=0, const char *here="THaAnalysisObject::LoadDB")
static Int_t DefineVarsFromList(const void *list, EType type, EMode mode, const char *def_prefix, const TObject *obj, const char *prefix, const char *here, const char *comment_subst="")
virtual const char * Here(const char *) const
virtual FILE * OpenFile(const TDatime &date)
virtual Int_t AddModule(UInt_t crate, UInt_t slot, UInt_t chan_lo, UInt_t chan_hi, UInt_t first=0, Int_t model=0, Int_t refindex=-1, Int_t refchan=-1, UInt_t plane=0, UInt_t signal=0)
Module * GetModule(UInt_t i) const
UInt_t GetNumHits(UInt_t crate, UInt_t slot, UInt_t chan) const
UInt_t GetData(UInt_t crate, UInt_t slot, UInt_t chan, UInt_t hit) const
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()
THaTriggerTime(const char *name="trg", const char *description="")
std::vector< Double_t > fTrgTimes
virtual Int_t ReadDatabase(const TDatime &date)
std::vector< Int_t > fTrgTypes
virtual void Error(const char *method, const char *msgfmt,...) const