39 QwClock(TString subsystemname, TString name, TString type =
""){
53 fClock.LoadChannelParameters(paramfile);
56 Int_t
ProcessEvBuffer(UInt_t* buffer, UInt_t word_position_in_buffer, UInt_t subelement=0);
58 void InitializeChannel(TString subsystem, TString name, TString datatosave, TString type =
"");
70 return fClock.GetEventcutErrorFlag();
78 void SetSingleEventCuts(UInt_t errorflag, Double_t
min = 0, Double_t max = 0, Double_t stability = 0);
83 fClock.SetEventCutMode(bcuts);
102 void Scale(Double_t factor);
151 #endif // __QWCLOCK__
void Sum(QwClock &value1, QwClock &value2)
void LoadChannelParameters(QwParameterFile ¶mfile)
void InitializeChannel(TString subsystem, TString name, TString datatosave, TString type="")
QwClock(const QwClock &source)
const VQwHardwareChannel * GetTime() const
void PrintValue() const
Print single line of value and error of this data element.
void FillTreeVector(std::vector< Double_t > &values) const
void SetSingleEventCuts(UInt_t errorflag, Double_t min=0, Double_t max=0, Double_t stability=0)
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
void AccumulateRunningSum(const VQwClock &value)
Double_t GetNormClockValue()
VQwClock & operator+=(const VQwClock &value)
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
void ConstructBranch(TTree *tree, TString &prefix)
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0)
Process the CODA event buffer for this element.
void SetPedestal(Double_t ped)
void Difference(QwClock &value1, QwClock &value2)
VQwClock & operator=(const VQwClock &value)
Definition of the pure virtual base class of all data elements.
std::vector< QwDBInterface > GetDBEntry()
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
void PrintInfo() const
Print multiple lines of information about this data element.
Double_t fNormalizationValue
void SetEventCutMode(Int_t bcuts)
void UpdateErrorFlag(const QwClock *ev_error)
void CalculateRunningAverage()
Double_t GetStandardClockValue()
void IncrementErrorCounters()
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
static const double T
Magnetic field: base unit is T.
void ClearEventData()
Clear the event data in this element.
QwClock(TString subsystemname, TString name, TString type="")
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
void SetDefaultSampleSize(Int_t sample_size)
VQwClock & operator-=(const VQwClock &value)
void Scale(Double_t factor)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
void EncodeEventData(std::vector< UInt_t > &buffer)
Bool_t ApplySingleEventCuts()
void Ratio(const VQwClock &numer, const VQwClock &denom)
void FillHistograms()
Fill the histograms for this data element.
UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
void SetCalibrationFactor(Double_t calib)
static const Bool_t bDEBUG