15#include <ROOT/RNTupleModel.hxx>
52 for (
size_t i = 0; i < 2; i++) {
56 for (
size_t i = 0; i < 8; i++) {
73 UInt_t word_position_in_buffer,UInt_t indexnumber)
override;
80 TString loc=
"QwLinearDiodeArray::GetPosition for "
82 throw std::out_of_range(loc.Data());
96 void SetSingleEventCuts(TString ch_name, UInt_t errorflag,Double_t minX, Double_t maxX, Double_t stability, Double_t burplevel);
109 void SetEventData(Double_t* block, UInt_t sequencenumber);
115 void Scale(Double_t factor)
override;
139#ifdef HAS_RNTUPLE_SUPPORT
140 void ConstructNTupleAndVector(std::unique_ptr<ROOT::RNTupleModel>& model, TString& prefix, std::vector<Double_t>& values, std::vector<std::shared_ptr<Double_t>>& fieldPtrs)
override;
141 void FillNTupleVector(std::vector<Double_t>& values)
const override;
Parameter file parsing and management.
Decoding and management for VQWK ADC channels (6x32-bit datawords)
Virtual base class for beam position monitors.
Configuration file parser with flexible tokenization and search capabilities.
A helper class to manage a vector of branch entries for ROOT trees.
Concrete hardware channel for VQWK ADC modules (6x32-bit words)
VQwDataElement()
Default constructor.
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
virtual const TString & GetElementName() const
Get the name of this element.
Abstract base for concrete hardware channels implementing dual-operator pattern.
void Ratio(QwLinearDiodeArray &numer, QwLinearDiodeArray &denom)
QwLinearDiodeArray(TString name)
std::vector< QwDBInterface > GetDBEntry()
void MakeLinearArrayList()
static UInt_t GetSubElementIndex(TString subname)
void SetSubElementCalibrationFactor(Int_t j, Double_t value) override
void ProcessEvent() override
std::vector< QwVQWK_Channel > fLinearArrayElementList
void FillTreeVector(QwRootTreeBranchVector &values) const override
Bool_t ApplySingleEventCuts() override
Apply single-event cuts across photodiodes and derived channels.
void SetSingleEventCuts(TString ch_name, UInt_t errorflag, Double_t minX, Double_t maxX, Double_t stability, Double_t burplevel)
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit),...
void DeaccumulateRunningSum(QwLinearDiodeArray &value, Int_t ErrorMask=0xFFFFFFF)
std::vector< QwErrDBInterface > GetErrDBEntry()
VQwHardwareChannel * GetSubelementByName(TString ch_name) override
Resolve an internal channel pointer by subelement name.
void GetAbsolutePosition() override
Bool_t ApplyHWChecks()
Apply hardware checks for all photodiode pads.
void RandomizeEventData(int helicity=0, double time=0.0) override
void InitializeChannel(TString name)
Initialize this linear diode array with a detector name.
void ClearEventData() override
Clear event-scoped data for all pads and derived channels.
static const size_t kMaxElements
VQwBPM & operator-=(const VQwBPM &value) override
void PrintInfo() const override
Print multiple lines of information about this data element.
QwVQWK_Channel fRelPos[2]
void SetEventData(Double_t *block, UInt_t sequencenumber)
void EncodeEventData(std::vector< UInt_t > &buffer) override
void PrintValue() const override
Print single line of value and error of this data element.
void PrintErrorCounters() const override
Print error counters for all internal channels.
VQwBPM & operator+=(const VQwBPM &value) override
QwVQWK_Channel fAbsPos[2]
void IncrementErrorCounters() override
Increment error counters for all internal channels.
TString GetSubElementName(Int_t subindex) override
~QwLinearDiodeArray() override
UInt_t UpdateErrorFlag() override
Update and return the aggregated event-cut error flag.
QwVQWK_Channel fPhotodiode[8]
UInt_t GetEventcutErrorFlag() override
Aggregate and return the event-cut error flag for this array.
static const TString subelement[8]
void SetDefaultSampleSize(Int_t sample_size) override
void CalculateRunningAverage() override
void SetEventCutMode(Int_t bcuts) override
void SetSubElementPedestal(Int_t j, Double_t value) override
UInt_t SetSubElementName(TString subname)
void LoadChannelParameters(QwParameterFile ¶mfile) override
void SetRandomEventParameters(Double_t meanX, Double_t sigmaX, Double_t meanY, Double_t sigmaY) override
QwLinearDiodeArray(TString subsystemname, TString name)
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t indexnumber) override
Process the CODA event buffer for this element.
static const Double_t kQwLinearDiodeArrayPadSize
VQwBPM & operator=(const VQwBPM &value) override
void ConstructHistograms(TDirectory *folder, TString &prefix) override
Construct the histograms for this data element.
const VQwHardwareChannel * GetPosition(EBeamPositionMonitorAxis axis) const override
void AccumulateRunningSum(const QwLinearDiodeArray &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF)
void Scale(Double_t factor) override
void FillHistograms() override
Fill the histograms for this data element.
const VQwHardwareChannel * GetEffectiveCharge() const override
void ConstructBranch(TTree *tree, TString &prefix) override
QwLinearDiodeArray(const QwLinearDiodeArray &source)
Bool_t CheckForBurpFail(const VQwDataElement *ev_error) override
Check for burp failures against another linear array of same type.
void ConstructBranchAndVector(TTree *tree, TString &prefix, QwRootTreeBranchVector &values) override
QwVQWK_Channel fEffectiveCharge
static const TString axis[3]