154 Bool_t eventokay=kTRUE;
157 eventokay=(deviceerror & 0x0);
213 if(
typeid(*ev_error)==
typeid(*
this)) {
219 TString loc=
"Standard exception from QwIntegrationPMT::UpdateErrorFlag :"+
222 throw std::invalid_argument(loc.Data());
224 }
catch (std::exception&
e) {
225 std::cerr<< e.what()<<std::endl;
236 return word_position_in_buffer;
327 std::cout<<
"QwVQWK_Channel Info " <<std::endl;
329 std::cout<<
"Blindability is " << (
fIsBlindable?
"TRUE":
"FALSE")
391 devicename.ToLower();
395 if (modulelist.
HasValue(devicename)){
443 std::vector <QwDBInterface> row_list;
455 std::vector <QwErrDBInterface> row_list;
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)
#define QwMessage
Predefined log drain for regular messages.
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t num_words_left, UInt_t index=0)
Decode the event data from a CODA buffer.
std::vector< QwDBInterface > GetDBEntry()
void ProcessEvent()
Process the event data according to pedestal and calibration factor.
void ClearEventData()
Clear the event data in this element.
Bool_t ApplySingleEventCuts()
void AccumulateRunningSum(const QwIntegrationPMT &value)
void RandomizeEventData(int helicity=0, double time=0.0)
void RandomizeEventData(int helicity=0.0, double time=0.0)
Internally generate random event data.
void PrintErrorCounters()
void SetRandomEventParameters(Double_t mean, Double_t sigma)
Set the normal random event parameters.
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)
void DeaccumulateRunningSum(const QwVQWK_Channel &value)
void Ratio(const QwVQWK_Channel &numer, const QwVQWK_Channel &denom)
void SetSingleEventCuts(Double_t min, Double_t max)
Set the upper and lower limits (fULimit and fLLimit) for this channel.
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
Class for blinding data, adapted from G0 blinder class.
QwIntegrationPMT & operator=(const QwIntegrationPMT &value)
void AddRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Add drift parameters to the internal set.
void PrintInfo() const
Print multiple lines of information about this data element.
void SetPedestal(Double_t ped)
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void SetEventData(Double_t *block, UInt_t sequencenumber=0)
Double_t GetValue(size_t element) const
void DivideBy(const VQwHardwareChannel *valueptr)
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 SetDefaultSampleSize(size_t num_samples_map)
void InitializeChannel(TString name, TString datatosave)
void Scale(Double_t Offset)
void ConstructBranch(TTree *tree, TString &prefix)
void Ratio(QwIntegrationPMT &numer, QwIntegrationPMT &denom)
void CalculateRunningAverage()
void SetHardwareSum(Double_t hwsum, UInt_t sequencenumber=0)
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Set a single set of harmonic drift parameters.
void SetExternalRandomVariable(Double_t random_variable)
Bool_t HasValue(TString &vname)
The pure virtual base class of all data elements.
void SetCalibrationFactor(Double_t factor)
void PrintValue() const
Print single line of value and error of this data element.
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
void AddEntriesToList(std::vector< QwDBInterface > &row_list)
void PrintValue() const
Print single line of value and error of this data element.
Int_t SetSingleEventCuts(Double_t, Double_t)
void ClearEventData()
Clear the event data in this element.
void SetRandomEventParameters(Double_t mean, Double_t sigma)
Bool_t ApplySingleEventCuts(Double_t LL, Double_t UL)
void FillTreeVector(std::vector< Double_t > &values) const
void SetBlindability(Bool_t isblindable)
void SetRandomEventAsymmetry(Double_t asymmetry)
void DeaccumulateRunningSum(QwIntegrationPMT &value)
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
void SetHardwareSum(Double_t hwsum, UInt_t sequencenumber=0)
void Sum(QwIntegrationPMT &value1, QwIntegrationPMT &value2)
void Blind(const QwBlinder *blinder)
Blind the asymmetry.
void FillHistograms()
Fill the histograms for this data element.
void SetEventData(Double_t *block, UInt_t sequencenumber)
void FillTreeVector(std::vector< Double_t > &values) const
void EncodeEventData(std::vector< UInt_t > &buffer)
void SetExternalRandomVariable(Double_t random_variable)
Set the externally provided random variable.
QwVQWK_Channel fTriumf_ADC
static const UInt_t kPMTErrorFlag
void UseExternalRandomVariable()
static std::ostream & endl(std::ostream &)
End of the line.
virtual const TString & GetElementName() const
Get the name of this element.
void UseExternalRandomVariable()
Set the flag to use an externally provided random variable.
void SetRandomEventAsymmetry(Double_t asymmetry)
Set the helicity asymmetry.
void SetPedestal(Double_t ped)
std::vector< QwErrDBInterface > GetErrDBEntry()
void ConstructBranch(TTree *tree, TString &prefix)
void SetElementName(const TString &name)
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
QwIntegrationPMT & operator+=(const QwIntegrationPMT &value)
void EncodeEventData(std::vector< UInt_t > &buffer)
Encode the event data into a CODA buffer.
void SetDefaultSampleSize(Int_t sample_size)
void InitializeChannel(TString name, TString datatosave)
Initialize the fields in this object.
void AddErrEntriesToList(std::vector< QwErrDBInterface > &row_list)
void SetCalibrationFactor(Double_t calib)
void Difference(QwIntegrationPMT &value1, QwIntegrationPMT &value2)
void CalculateRunningAverage()
void Blind(const QwBlinder *blinder)
Blind this channel as an asymmetry.
void PrintInfo() const
Print multiple lines of information about this data element.
void AccumulateRunningSum(const QwVQWK_Channel &value)