42 QwBCM(TString subsystemname, TString name)
47 QwBCM(TString subsystemname, TString name, TString type, TString clock =
"")
59 Int_t
ProcessEvBuffer(UInt_t* buffer, UInt_t word_position_in_buffer, UInt_t subelement=0);
98 void SetSingleEventCuts(UInt_t errorflag, Double_t
min = 0, Double_t max = 0, Double_t stability = 0);
129 std::cerr<<
"SetBCMForCombo for QwCombinedBCM<T> not defined!!\n";
140 void Scale(Double_t factor);
void FillHistograms()
Fill the histograms for this data element.
VQwBCM & operator+=(const VQwBCM &value)
VQwBCM & operator-=(const VQwBCM &value)
void SetDefaultSampleSize(Int_t sample_size)
virtual UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
void AddRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
std::vector< QwErrDBInterface > GetErrDBEntry()
void EncodeEventData(std::vector< UInt_t > &buffer)
VQwBCM & operator=(const VQwBCM &value)
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
void PrintValue() const
Print single line of value and error of this data element.
void Difference(QwBCM &value1, QwBCM &value2)
void AccumulateRunningSum(const VQwBCM &value)
Bool_t NeedsExternalClock()
std::vector< QwDBInterface > GetDBEntry()
void SetPedestal(Double_t ped)
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 SetEventCutMode(Int_t bcuts)
Definition of the pure virtual base class of all data elements.
QwBCM(TString subsystemname, TString name)
void ClearEventData()
Clear the event data in this element.
void SetRandomEventParameters(Double_t mean, Double_t sigma)
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
Int_t SetSingleEventCuts(Double_t mean=0, Double_t sigma=0)
void FillTreeVector(std::vector< Double_t > &values) const
void Sum(QwBCM &value1, QwBCM &value2)
virtual void SetBCMForCombo(VQwBCM *bcm, Double_t weight, Double_t sumqw)
void PrintInfo() const
Print multiple lines of information about this data element.
static const double T
Magnetic field: base unit is T.
Bool_t ApplySingleEventCuts()
void IncrementErrorCounters()
void SetExternalClockName(const std::string name)
void ConstructBranch(TTree *tree, TString &prefix)
void Ratio(const VQwBCM &numer, const VQwBCM &denom)
void RandomizeEventData(int helicity=0, double time=0)
const VQwHardwareChannel * GetCharge() const
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
void SetExternalRandomVariable(Double_t random_variable)
void Scale(Double_t factor)
void SetRandomEventAsymmetry(Double_t asymmetry)
void InitializeChannel(TString name, TString datatosave)
void SetExternalClockPtr(const VQwHardwareChannel *clock)
void DeaccumulateRunningSum(VQwBCM &value)
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
UInt_t GetErrorCode() const
QwBCM(const QwBCM &source)
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
void SetCalibrationFactor(Double_t calib)
void CalculateRunningAverage()
Double_t GetNormClockValue()
void UseExternalRandomVariable()
std::string GetExternalClockName()
QwBCM(TString subsystemname, TString name, TString type, TString clock="")
void LoadChannelParameters(QwParameterFile ¶mfile)