8 #ifndef __QwIntegratedRasterChannel__
9 #define __QwIntegratedRasterChannel__
44 Int_t
ProcessEvBuffer(UInt_t* buffer, UInt_t word_position_in_buffer, UInt_t subelement=0);
58 void SetEventData(Double_t* block, UInt_t sequencenumber);
79 void SetSingleEventCuts(UInt_t errorflag, Double_t
min = 0, Double_t max = 0, Double_t stability = 0);
97 void Scale(Double_t factor);
QwIntegratedRasterChannel & operator=(const QwIntegratedRasterChannel &value)
void EncodeEventData(std::vector< UInt_t > &buffer)
void FillHistograms()
Fill the histograms for this data element.
void AddRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
void SetPedestal(Double_t ped)
QwIntegratedRasterChannel & operator-=(const QwIntegratedRasterChannel &value)
void SetCalibrationFactor(Double_t calib)
QwIntegratedRasterChannel & operator+=(const QwIntegratedRasterChannel &value)
void SetDefaultSampleSize(Int_t sample_size)
void IncrementErrorCounters()
QwIntegratedRasterChannel(TString subsystemname, TString name)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
void AccumulateRunningSum(const QwIntegratedRasterChannel &value)
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0)
Process the CODA event buffer for this element.
std::vector< QwErrDBInterface > GetErrDBEntry()
Bool_t ApplySingleEventCuts()
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
void FillTreeVector(std::vector< Double_t > &values) const
void SetRandomEventParameters(Double_t mean, Double_t sigma)
void Difference(QwIntegratedRasterChannel &value1, QwIntegratedRasterChannel &value2)
UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
Definition of the pure virtual base class of all data elements.
The pure virtual base class of all data elements.
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
QwIntegratedRasterChannel()
static const Bool_t bDEBUG
void ConstructBranch(TTree *tree, TString &prefix)
void Scale(Double_t factor)
void SetEventCutMode(Int_t bcuts)
static const double T
Magnetic field: base unit is T.
const VQwDataElement * GetElement() const
QwIntegratedRasterChannel(TString name)
void UseExternalRandomVariable()
void RandomizeEventData(int helicity=0, double time=0)
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void CalculateRunningAverage()
Int_t SetSingleEventCuts(Double_t mean=0, Double_t sigma=0)
void SetExternalRandomVariable(Double_t random_variable)
void Sum(QwIntegratedRasterChannel &value1, QwIntegratedRasterChannel &value2)
void SetHardwareSum(Double_t hwsum, UInt_t sequencenumber=0)
void SetEventData(Double_t *block, UInt_t sequencenumber)
void SetRandomEventAsymmetry(Double_t asymmetry)
void UpdateErrorFlag(const QwIntegratedRasterChannel *ev_error)
std::vector< QwDBInterface > GetDBEntry()
void PrintValue() const
Print single line of value and error of this data element.
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
void Ratio(QwIntegratedRasterChannel &numer, QwIntegratedRasterChannel &denom)
void InitializeChannel(TString name, TString datatosave)
void ClearEventData()
Clear the event data in this element.
void PrintInfo() const
Print multiple lines of information about this data element.
virtual ~QwIntegratedRasterChannel()