15#ifdef HAS_RNTUPLE_SUPPORT
16#include "ROOT/RNTupleModel.hxx"
17#include "ROOT/RField.hxx"
28#ifdef __USE_DATABASE__
44template <
typename ChannelType>
84 UInt_t word_position_in_buffer,UInt_t indexnumber)
override;
91 TString loc=
"QwLinearDiodeArray::GetPosition for "
93 throw std::out_of_range(loc.Data());
107 void SetSingleEventCuts(TString ch_name, UInt_t errorflag,Double_t minX, Double_t maxX, Double_t stability, Double_t burplevel);
120 void SetEventData(Double_t* block, UInt_t sequencenumber);
127 void Scale(Double_t factor)
override;
151#ifdef HAS_RNTUPLE_SUPPORT
152 void ConstructNTupleAndVector(std::unique_ptr<ROOT::RNTupleModel>& model, TString& prefix, std::vector<Double_t>& values, std::vector<std::shared_ptr<Double_t>>& fieldPtrs)
override;
153 void FillNTupleVector(std::vector<Double_t>& values)
const override;
157#ifdef __USE_DATABASE__
158 std::vector<QwDBInterface> GetDBEntry()
override;
159 std::vector<QwErrDBInterface> GetErrDBEntry()
override;
Decoding and management for VQWK ADC channels (6x32-bit datawords)
Parameter file parsing and management.
Decoding and management for Moller ADC channels (6x32-bit datawords)
Helper functions and utilities for analysis operations.
void QwCopyArray(const T &a, T &b)
Virtual base class for beam position monitors.
std::shared_ptr< VQwBPM > VQwBPM_ptr
VQwBPM_ptr QwLinearDiodeArray_ptr
Configuration file parser with flexible tokenization and search capabilities.
A helper class to manage a vector of branch entries for ROOT trees.
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.
void SetModuleType(TString ModuleType)
set the type of the beam instrument
Abstract base for concrete hardware channels implementing dual-operator pattern.
VQwBPM & operator=(const VQwBPM &value) override
void ProcessEvent() override
void SetSubElementPedestal(Int_t j, Double_t value) override
std::vector< ChannelType > fLinearArrayElementList
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 EncodeEventData(std::vector< UInt_t > &buffer) override
void SetRandomEventParameters(Double_t meanX, Double_t sigmaX, Double_t meanY, Double_t sigmaY) override
UInt_t UpdateErrorFlag() override
Update and return the aggregated event-cut error flag.
Bool_t ApplyHWChecks()
Apply hardware checks for all photodiode pads.
void FillHistograms() override
Fill the histograms for this data element.
TString GetSubElementName(Int_t subindex) override
void GetAbsolutePosition() override
void ConstructBranch(TTree *tree, TString &prefix) override
void DeaccumulateRunningSum(QwLinearDiodeArray &value, Int_t ErrorMask=0xFFFFFFF)
~QwLinearDiodeArray() override
VQwBPM & operator-=(const VQwBPM &value) override
void SetEventCutMode(Int_t bcuts) override
Bool_t CheckForBurpFail(const VQwDataElement *ev_error) override
Check for burp failures against another linear array of same type.
static const Double_t kQwLinearDiodeArrayPadSize
void FillTreeVector(QwRootTreeBranchVector &values) const override
void PrintErrorCounters() const override
Print error counters for all internal channels.
QwLinearDiodeArray(TString subsystemname, TString name, TString type)
QwLinearDiodeArray(TString subsystemname, TString name)
Bool_t ApplySingleEventCuts() override
Apply single-event cuts across photodiodes and derived channels.
std::array< ChannelType, 2 > fAbsPos
void ConstructBranchAndVector(TTree *tree, TString &prefix, QwRootTreeBranchVector &values) override
void PrintInfo() const override
Print multiple lines of information about this data element.
VQwHardwareChannel * GetSubelementByName(TString ch_name) override
Resolve an internal channel pointer by subelement name.
ChannelType fEffectiveCharge
void PrintValue() const override
Print single line of value and error of this data element.
static const size_t kMaxElements
const VQwHardwareChannel * GetEffectiveCharge() const override
void RandomizeEventData(int helicity=0, double time=0.0) override
void SetSubElementCalibrationFactor(Int_t j, Double_t value) override
const VQwHardwareChannel * GetPosition(EBeamPositionMonitorAxis axis) const override
void AccumulateRunningSum(const QwLinearDiodeArray &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF)
static UInt_t GetSubElementIndex(TString subname)
std::array< ChannelType, 8 > fPhotodiode
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 TString subelement[8]
VQwBPM & operator+=(const VQwBPM &value) override
void IncrementErrorCounters() override
Increment error counters for all internal channels.
void SetDefaultSampleSize(Int_t sample_size) override
UInt_t SetSubElementName(TString subname)
void Ratio(VQwBPM &numer, VQwBPM &denom) override
void LoadChannelParameters(QwParameterFile ¶mfile) override
void CalculateRunningAverage() override
void InitializeChannel(TString name)
Initialize this linear diode array with a detector name.
void ConstructHistograms(TDirectory *folder, TString &prefix) override
Construct the histograms for this data element.
UInt_t GetEventcutErrorFlag() override
Aggregate and return the event-cut error flag for this array.
QwLinearDiodeArray(const QwLinearDiodeArray &source)
QwLinearDiodeArray(TString name)
std::array< ChannelType, 2 > fRelPos
void MakeLinearArrayList()
void ClearEventData() override
Clear event-scoped data for all pads and derived channels.
void Scale(Double_t factor) override
void SetEventData(Double_t *block, UInt_t sequencenumber)
static const TString axis[3]