1 #ifndef __QwF1TDContainer__
2 #define __QwF1TDContainer__
18 #include "TClonesArray.h"
22 #include "TObjString.h"
38 #if __STDC_VERSION__ < 199901L
40 # define __func__ __FUNCTION__
42 # define __func__ "<unknown>"
52 QwF1TDC(
const Int_t roc,
const Int_t slot);
242 UInt_t
GetTotal(UInt_t* error_counter);
283 void Print(
const Option_t* options = 0)
const;
311 void AddSYN(Int_t roc, Int_t slot, Int_t channel);
312 void AddEMM(Int_t roc, Int_t slot, Int_t channel);
313 void AddSEU(Int_t roc, Int_t slot, Int_t channel);
314 void AddTFO(Int_t roc, Int_t slot, Int_t channel);
316 void AddRLF(Int_t roc, Int_t slot, Int_t channel);
317 void AddHFO(Int_t roc, Int_t slot, Int_t channel);
318 void AddOFO(Int_t roc, Int_t slot, Int_t channel);
320 void AddFDF(Int_t roc, Int_t slot, Int_t channel);
321 void AddS30(Int_t roc, Int_t slot, Int_t channel);
392 F1TDCReferenceSignal(
const Int_t bank_index,
const Int_t slot,
const Int_t channel,
const TString name);
491 void SetReferenceSignal(Int_t bank_index, Int_t slot, Int_t chan, UInt_t data, Bool_t debug=
false);
Double_t fF1TDC_resolution_ns
UInt_t * fF1TDC_SYN_counter
Int_t HowManyF1TDCs() const
Int_t fNF1TDCReferenceSignals
void SetSlotNumber(const Int_t slot)
Int_t GetROCNumber() const
virtual ~F1TDCReferenceContainer()
Double_t fF1TDCTriggerRollover
ClassDef(QwF1TDContainer, 1)
void AddQwF1TDC(QwF1TDC *in)
Double_t fF1TDC_full_range_ns
Bool_t IsReferenceSlot() const
TArrayD * fReferenceSignals
void SetBankIndex(const Int_t bank_index)
Int_t GetBankIndex() const
F1TDCs configuration and reference siganls container.
Bool_t fReferenceSlotFlag
void AddSYN(Int_t roc, Int_t slot, Int_t channel)
UInt_t fF1TDC_RFM_counter
Int_t GetSlotNumber() const
void SetF1TDCBuffer(UInt_t *buffer, UInt_t num_words)
QwF1TDC * GetF1TDCwithBankIndexSLOT(Int_t bank_index, Int_t slot)
Double_t fF1TDC_trig_resolution_ns
void AddRLF(Int_t roc, Int_t slot, Int_t channel)
Int_t GetF1TDCIndex() const
static const Int_t fMaxF1TDCChannelNumber
Bool_t fLocalF1RawDecodeDebug
UInt_t GetF1TDC_hsdiv() const
Bool_t fLocalF1DecodeDebug
Double_t GetF1TDCTriggerRollover()
void SetSystemName(const TString name)
UInt_t GetFDF(Int_t channel) const
void AddEMM(Int_t channel)
void SetSystemName(const TString name)
TString GetErrorCounter()
const UInt_t GetNoRefTimeAU() const
UInt_t GetF1TDC_refclkdiv() const
UInt_t GetF1TDC_trigwin() const
void AddSEU(Int_t roc, Int_t slot, Int_t channel)
UInt_t GetS30(Int_t channel) const
TString GetChannelErrorCounter(Int_t channel)
Double_t GetF1TDC_t_offset() const
void SetErrorHistOptions()
Double_t GetF1TDC_full_range() const
QwF1TDC * GetF1TDC(Int_t roc, Int_t slot)
virtual ~F1TDCReferenceSignal()
TObjArray * fF1TDCReferenceSignalsList
Double_t GetF1TDC_tframe() const
Double_t GetF1TDC_trig_t_offset() const
void SetReferenceSlot(const Bool_t reflag)
one F1TDC configuration and reference signal(s) holder
Double_t GetReferenceTimeAU(Int_t bank_index, TString name)
Bool_t CheckDataIntegrity(const UInt_t roc_id, UInt_t *buffer, UInt_t num_words)
void AddSYN(Int_t channel)
void SetSlotNumber(const Int_t slot)
void PrintTotalErrorCounter()
UInt_t GetHFO(Int_t channel) const
UInt_t GetF1TDC_refcnt() const
Double_t fF1TDC_latency_ns
const TString GetSystemName() const
void AddS30(Int_t channel)
const TString GetF1SystemName() const
virtual ~QwF1TDContainer()
void PrintChannelErrorCounter(Int_t channel)
Int_t GetF1BankIndex() const
Int_t GetChannelNumber() const
UInt_t * fF1TDC_FDF_counter
Bool_t CheckSlot20Chan30(Int_t slot, Int_t chan)
friend std::ostream & operator<<(std::ostream &os, const QwF1TDC &f1tdc)
void WriteErrorSummary(Bool_t hist_flag=true)
void AddRLF(Int_t channel)
UInt_t * fF1TDC_SEU_counter
void AddFDF(Int_t channel)
Bool_t IsSyncMode() const
UInt_t * fF1TDC_TFO_counter
const Double_t GetRefTimeAU() const
Int_t GetChannelNumber() const
F1TDCReferenceContainer()
void SetRefSignalName(const TString name)
void AddSEU(Int_t channel)
void AddTFO(Int_t roc, Int_t slot, Int_t channel)
Double_t ReferenceSignalCorrection(Double_t raw_time, Double_t ref_time)
Bool_t IsNormResolution() const
UInt_t GetTFO(Int_t channel) const
void AddHFO(Int_t roc, Int_t slot, Int_t channel)
Double_t ReferenceSignalCorrection(Double_t raw_time, Double_t ref_time, Int_t bank_index, Int_t slot)
void AddF1TDCReferenceSignal(F1TDCReferenceSignal *in)
TString GetTotalErrorCounter()
void SetReferenceSignal(Int_t bank_index, Int_t slot, Int_t chan, UInt_t data, Bool_t debug=false)
void AddOFO(Int_t channel)
Double_t DoneF1TDCsConfiguration()
Double_t GetF1TDCOneResolution() const
UInt_t * fF1TDC_OFO_counter
UInt_t GetF1TDC_triglat() const
Double_t GetF1TDC_trig_resolution() const
UInt_t GetSEU(Int_t channel) const
void PrintF1TDCConfigure()
void AddTFO(Int_t channel)
const UInt_t GetCounter() const
const TH2F * GetF1TDCErrorHist()
UInt_t * fF1TDC_HFO_counter
ClassDef(F1TDCReferenceSignal, 1)
UInt_t * fF1TDC_S30_counter
void AddS30(Int_t roc, Int_t slot, Int_t channel)
Double_t fF1TDC_trig_t_offset
EQwDetectorType fDetectorType
EQwRegionID GetRegion() const
void SetF1BankIndex(const Int_t bank_index)
QwF1TDC * GetF1TDCwithIndex(Int_t tdc_index)
const MQwF1TDC GetF1TDCDecoder() const
UInt_t GetRLF(Int_t channel) const
void SetF1SystemName(const TString name)
void AddFDF(Int_t roc, Int_t slot, Int_t channel)
void AddOFO(Int_t roc, Int_t slot, Int_t channel)
UInt_t GetSYN(Int_t channel) const
Double_t GetF1TDC_latency() const
static const Int_t fWordsPerBuffer
void SetChanNumber(const Int_t chan)
void SetF1TDCIndex(const Int_t tdc_index)
Bool_t CheckRegisteredF1(Int_t roc, Int_t slot)
UInt_t GetEMM(Int_t channel) const
void AddHFO(Int_t channel)
const TString GetRefSignalName() const
TString PrintNoF1TDC(Int_t roc, Int_t slot)
UInt_t GetOFO(Int_t channel) const
Double_t GetF1TDCsResolution()
Double_t fF1TDC_tframe_ns
Double_t GetF1TDC_window() const
Int_t GetSlotNumber() const
void PrintCounterSummary()
const UInt_t * GetF1TDCBuffer() const
Double_t ReturnTimeCalibration(Double_t time_arb_unit)
Int_t GetF1TDCChannelNumber()
Double_t GetF1TDCResolution();.
void Print(const Option_t *options=0) const
TList * GetErrorSummary()
Double_t GetF1TDC_bin_size() const
Double_t fF1TDCOneResolutionNS
Double_t fF1TDC_window_ns
Bool_t SetRefTimeAU(const Double_t ref_time)
const TString GetSystemName() const
UInt_t GetTotal(UInt_t *error_counter)
static const UInt_t fNoRefTimeArbUnit
UInt_t * fF1TDC_RLF_counter
UInt_t * fF1TDC_EMM_counter
Double_t GetF1TDC_resolution() const
void SetROCNumber(const Int_t roc)
EQwDetectorType GetDetectorType() const
void AddEMM(Int_t roc, Int_t slot, Int_t channel)
ClassDef(F1TDCReferenceContainer, 1)
friend std::ostream & operator<<(std::ostream &os, const F1TDCReferenceSignal &f1tdcref)
Bool_t fLocalF1ErrorDebug