8 #ifndef __QwVQWK_IntegrationPMT__
9 #define __QwVQWK_IntegrationPMT__
56 Int_t
ProcessEvBuffer(UInt_t* buffer, UInt_t word_position_in_buffer, UInt_t subelement=0);
62 void InitializeChannel(TString subsystem, TString module, TString name, TString datatosave);
82 void SetEventData(Double_t* block, UInt_t sequencenumber);
100 void SetSingleEventCuts(UInt_t errorflag, Double_t LL, Double_t UL, Double_t stability);
136 void Scale(Double_t factor);
void AddRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
std::vector< QwDBInterface > GetDBEntry()
void ClearEventData()
Clear the event data in this element.
Bool_t ApplySingleEventCuts()
void AccumulateRunningSum(const QwIntegrationPMT &value)
virtual ~QwIntegrationPMT()
void RandomizeEventData(int helicity=0, double time=0.0)
void PrintErrorCounters()
void Scale(Double_t factor)
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 SetNormalizability(Bool_t isnormalizable)
void Normalize(VQwDataElement *denom)
QwIntegrationPMT & operator-=(const QwIntegrationPMT &value)
QwIntegrationPMT(TString subsystemname, TString name)
Class for blinding data, adapted from G0 blinder class.
QwIntegrationPMT & operator=(const QwIntegrationPMT &value)
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
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 IncrementErrorCounters()
void InitializeChannel(TString name, TString datatosave)
void SetEventCutMode(Int_t bcuts)
void Ratio(QwIntegrationPMT &numer, QwIntegrationPMT &denom)
void CalculateRunningAverage()
void SetExternalRandomVariable(Double_t random_variable)
The pure virtual base class of all data elements.
virtual UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
QwIntegrationPMT(TString name)
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
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.
Int_t SetSingleEventCuts(Double_t, Double_t)
void SetRandomEventParameters(Double_t mean, Double_t sigma)
void SetBlindability(Bool_t isblindable)
void SetRandomEventAsymmetry(Double_t asymmetry)
void SetElementName(const TString &name)
Set the name of this element.
void DeaccumulateRunningSum(QwIntegrationPMT &value)
void SetHardwareSum(Double_t hwsum, UInt_t sequencenumber=0)
void Sum(QwIntegrationPMT &value1, QwIntegrationPMT &value2)
void Blind(const QwBlinder *blinder)
Blind the asymmetry.
void SetEventData(Double_t *block, UInt_t sequencenumber)
void FillTreeVector(std::vector< Double_t > &values) const
void EncodeEventData(std::vector< UInt_t > &buffer)
QwVQWK_Channel fTriumf_ADC
static const Bool_t bDEBUG
void UseExternalRandomVariable()
TString fElementName
Name of this data element.
virtual const TString & GetElementName() const
Get the name of this element.
QwIntegrationPMT(const QwIntegrationPMT &source)
void SetPedestal(Double_t ped)
std::vector< QwErrDBInterface > GetErrDBEntry()
void ConstructBranch(TTree *tree, TString &prefix)
void SetElementName(const TString &name)
void LoadChannelParameters(QwParameterFile ¶mfile)
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
QwIntegrationPMT & operator+=(const QwIntegrationPMT &value)
const QwVQWK_Channel * GetChannel(const TString name) const
void SetDefaultSampleSize(Int_t sample_size)
void SetCalibrationFactor(Double_t calib)
void IncrementErrorCounters()
void Difference(QwIntegrationPMT &value1, QwIntegrationPMT &value2)
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
void PrintInfo() const
Print multiple lines of information about this data element.
void SetEventCutMode(Int_t bcuts)