Definition of the pure virtual base class of all data elements.
const TString QwBPMStripline< T >::subelement[4]
PMT channel data element for photomultiplier tube readout.
void ConstructBranchAndVector(TTree *tree, TString &prefix, QwRootTreeBranchVector &values)
Construct a ROOT branch and append a value slot to the vector.
void ProcessEvent()
Process the event (no-op for simple PMT channel).
void EncodeEventData(std::vector< UInt_t > &TrigBuffer)
Encode this channel's word into the trigger buffer.
void RandomizeEventData(int helicity, int SlotNum, int ChanNum)
Generate a mock ADC word for testing.
static const Double_t kPMT_VoltsPerBit
QwPMT_Channel & operator-=(const QwPMT_Channel &value)
static const Bool_t kDEBUG
void FillHistograms() override
Fill histograms for this channel if present.
void SetSubbankID(const Int_t bank_index)
QwPMT_Channel(TString name)
Constructor with name.
void SetValue(Double_t data)
void ClearEventData() override
Clear the event-scoped ADC word value.
void PrintErrorCounters() const override
report number of events failed due to HW and event cut failure
void Sum(const QwPMT_Channel &value1, const QwPMT_Channel &value2)
void ConstructHistograms(TDirectory *folder, TString &prefix) override
Create histograms for this channel within an optional folder.
Double_t GetValue() const
void PrintInfo() const override
Print a placeholder info line for this PMT channel.
size_t fTreeArrayNumEntries
void FillTreeVector(QwRootTreeBranchVector &values) const
Write this channel's value into the tree vector slot.
void InitializeChannel(TString name)
QwPMT_Channel & operator+=(const QwPMT_Channel &value)
void PrintValue() const override
Print a compact value summary for this PMT channel.
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t num_words_left, UInt_t subelement=0) override
Process the CODA event buffer for this element.
void SetModule(const Int_t slot_num)
QwPMT_Channel()
Default constructor.
void Difference(const QwPMT_Channel &value1, const QwPMT_Channel &value2)
QwPMT_Channel(const QwPMT_Channel &source)
Copy constructor.
QwPMT_Channel & operator=(const QwPMT_Channel &value)
Copy-assign from another PMT channel (event-scoped data).
~QwPMT_Channel() override
Virtual destructor.
Int_t GetSubbankID() const
A helper class to manage a vector of branch entries for ROOT trees.
VQwDataElement()
Default constructor.
void SetElementName(const TString &name)
Set the name of this element.