2 #ifndef __QwVQWK_COMBINEDPMT__
3 #define __QwVQWK_COMBINEDPMT__
55 Int_t
ProcessEvBuffer(UInt_t* buffer, UInt_t word_position_in_buffer, UInt_t subelement=0);
66 void SetEventData(Double_t* block, UInt_t sequencenumber);
74 void SetSingleEventCuts(UInt_t errorflag, Double_t LL, Double_t UL, Double_t stability);
101 void Scale(Double_t factor);
void SetRandomEventParameters(Double_t mean, Double_t sigma)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
QwCombinedPMT & operator-=(const QwCombinedPMT &value)
void InitializeChannel(TString name, TString datatosave)
void AccumulateRunningSum(const QwCombinedPMT &value)
void SetNormalizability(Bool_t isnormalizable)
void SetSingleEventCuts(UInt_t errorflag, Double_t LL, Double_t UL, Double_t stability)
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
static const Bool_t bDEBUG
Class for blinding data, adapted from G0 blinder class.
void PrintValue() const
Print single line of value and error of this data element.
void ClearEventData()
Clear the event data in this element.
void Scale(Double_t factor)
void SetEventData(Double_t *block, UInt_t sequencenumber)
void DeaccumulateRunningSum(QwCombinedPMT &value)
void IncrementErrorCounters()
void Ratio(QwCombinedPMT &numer, QwCombinedPMT &denom)
void ConstructBranch(TTree *tree, TString &prefix)
void Normalize(VQwDataElement *denom)
void SetDefaultSampleSize(Int_t sample_size)
void LinkChannel(TString name)
void Difference(QwCombinedPMT &value1, QwCombinedPMT &value2)
void FillHistograms()
Fill the histograms for this data element.
void CalculateRunningAverage()
The pure virtual base class of all data elements.
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 Blind(const QwBlinder *blinder)
Blind the asymmetry.
Double_t fSequenceNo_Prev
void PrintErrorCounters()
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
std::vector< QwDBInterface > GetDBEntry()
void SetBlindability(Bool_t isblindable)
void SetBlindability(Bool_t isblindable)
std::vector< QwIntegrationPMT * > fElement
used to validate sequence number in the IsGoodEvent()
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void EncodeEventData(std::vector< UInt_t > &buffer)
QwCombinedPMT(TString subsystemname, TString name)
void RandomizeEventData(int helicity)
void IncrementErrorCounters()
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
QwCombinedPMT & operator=(const QwCombinedPMT &value)
UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
void SetNormalizability(Bool_t isnormalizable)
std::vector< Double_t > fWeights
void CalculateSumAndAverage()
virtual const TString & GetElementName() const
Get the name of this element.
void SetCalibrationFactor(Double_t calib)
Bool_t ApplySingleEventCuts()
const QwVQWK_Channel * GetChannel(const TString name) const
void SetPedestal(Double_t ped)
std::vector< QwErrDBInterface > GetErrDBEntry()
void FillTreeVector(std::vector< Double_t > &values) const
void SetHardwareSum(Double_t hwsum, UInt_t sequencenumber=0)
QwCombinedPMT(TString name)
const QwVQWK_Channel * GetChannel(const TString name) const
void PrintInfo() const
Print multiple lines of information about this data element.
void Add(QwIntegrationPMT *pmt, Double_t weight)
void Sum(QwCombinedPMT &value1, QwCombinedPMT &value2)
void SetEventCutMode(Int_t bcuts)
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
void SetRandomEventAsymmetry(Double_t asymmetry)
QwCombinedPMT(const QwCombinedPMT &source)
QwCombinedPMT & operator+=(const QwCombinedPMT &value)
void SetEventCutMode(Int_t bcuts)