8 #ifndef __QwVQWK_ENERGYCALCULATOR__
9 #define __QwVQWK_ENERGYCALCULATOR__
59 UInt_t word_position_in_buffer,UInt_t indexnumber);
84 void Set(
const VQwBPM* device,TString type, TString property ,Double_t tmatrix_ratio);
86 void Scale(Double_t factor);
void AccumulateRunningSum(const QwEnergyCalculator &value)
void CalculateRunningAverage()
void ConstructBranch(TTree *tree, TString &prefix)
void SetRootSaveStatus(TString &prefix)
std::vector< TString > fType
QwEnergyCalculator(const QwEnergyCalculator &source)
VQwHardwareChannel * GetEnergy()
void LoadChannelParameters(QwParameterFile ¶mfile)
QwEnergyCalculator(TString name)
void InitializeChannel(TString name, TString datatosave)
void Ratio(QwEnergyCalculator &numer, QwEnergyCalculator &denom)
std::vector< const VQwBPM * > fDevice
Bool_t ApplySingleEventCuts()
void Set(const VQwBPM *device, TString type, TString property, Double_t tmatrix_ratio)
void FillHistograms()
Fill the histograms for this data element.
void SetEventCutMode(Int_t bcuts)
std::vector< TString > fProperty
virtual ~QwEnergyCalculator()
void IncrementErrorCounters()
std::vector< QwErrDBInterface > GetErrDBEntry()
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
void DeaccumulateRunningSum(QwEnergyCalculator &value)
The pure virtual base class of all data elements.
virtual UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
std::vector< Double_t > fTMatrixRatio
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
virtual QwEnergyCalculator & operator+=(const QwEnergyCalculator &value)
QwEnergyCalculator(TString subsystem, TString name)
void PrintInfo() const
Print multiple lines of information about this data element.
void Scale(Double_t factor)
virtual QwEnergyCalculator & operator=(const QwEnergyCalculator &value)
UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
const VQwHardwareChannel * GetEnergy() const
void SetEventCutMode(Int_t bcuts)
void FillTreeVector(std::vector< Double_t > &values) const
void ClearEventData()
Clear the event data in this element.
void PrintValue() const
Print single line of value and error of this data element.
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
Int_t SetSingleEventCuts(Double_t mean, Double_t sigma)
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t indexnumber)
Process the CODA event buffer for this element.
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
virtual QwEnergyCalculator & operator-=(const QwEnergyCalculator &value)
std::vector< QwDBInterface > GetDBEntry()
QwVQWK_Channel fEnergyChange