13#ifdef HAS_RNTUPLE_SUPPORT
14#include <ROOT/RNTupleModel.hxx>
46 TString &subname, UInt_t &localindex);
77 UInt_t word_position_in_buffer,UInt_t indexnumber)
override;
84 TString loc=
"QwBPMCavity::GetPosition for "
86 throw std::out_of_range(loc.Data());
99 void SetSingleEventCuts(TString ch_name, UInt_t errorflag,Double_t minX, Double_t maxX, Double_t stability, Double_t burplevel);
112 void SetEventData(Double_t* block, UInt_t sequencenumber);
118 void Scale(Double_t factor)
override;
141#ifdef HAS_RNTUPLE_SUPPORT
142 void ConstructNTupleAndVector(std::unique_ptr<ROOT::RNTupleModel>& model, TString& prefix, std::vector<Double_t>& values, std::vector<std::shared_ptr<Double_t>>& fieldPtrs)
override;
143 void FillNTupleVector(std::vector<Double_t>& values)
const override;
Parameter file parsing and management.
Decoding and management for VQWK 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.
Configuration file parser with flexible tokenization and search capabilities.
A helper class to manage a vector of branch entries for ROOT trees.
The pure virtual base class of all data elements.
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.
Cavity-style BPM using VQWK channels.
friend class QwEnergyCalculator
static UInt_t GetSubElementIndex(TString subname)
void LoadChannelParameters(QwParameterFile ¶mfile) override
std::vector< QwErrDBInterface > GetErrDBEntry()
void SetDefaultSampleSize(Int_t sample_size) override
void AccumulateRunningSum(const VQwBPM &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) override
void ProcessEvent() override
friend class QwCombinedBPM
const VQwHardwareChannel * GetEffectiveCharge() const override
void CalculateRunningAverage() override
Bool_t ApplySingleEventCuts() override
void GetAbsolutePosition() override
UInt_t GetEventcutErrorFlag() override
VQwHardwareChannel * GetSubelementByName(TString ch_name) override
void SetSubElementCalibrationFactor(Int_t j, Double_t value) override
QwBPMCavity(const QwBPMCavity &source)
std::array< QwVQWK_Channel, kNumAxes > fRelPos
static const TString subelement[kNumElements]
void FillHistograms() override
TString GetSubElementName(Int_t subindex) override
void ConstructBranchAndVector(TTree *tree, TString &prefix, QwRootTreeBranchVector &values) override
Bool_t CheckForBurpFail(const VQwDataElement *ev_error) override
QwBPMCavity(TString subsystemname, TString name)
void Ratio(QwBPMCavity &numer, QwBPMCavity &denom)
void SetEventData(Double_t *block, UInt_t sequencenumber)
void ClearEventData() override
std::vector< QwDBInterface > GetDBEntry()
const VQwHardwareChannel * GetPosition(EBeamPositionMonitorAxis axis) const override
void ConstructBranch(TTree *tree, TString &prefix) override
std::array< QwVQWK_Channel, kNumElements > fElement
std::array< QwVQWK_Channel, kNumAxes > fAbsPos
void EncodeEventData(std::vector< UInt_t > &buffer) override
void ConstructHistograms(TDirectory *folder, TString &prefix) override
VQwBPM & operator-=(const VQwBPM &value) override
void IncrementErrorCounters() override
void InitializeChannel(TString name)
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),...
std::vector< QwVQWK_Channel > fBPMElementList
void SetEventCutMode(Int_t bcuts) override
static Bool_t ParseChannelName(const TString &channel, TString &detname, TString &subname, UInt_t &localindex)
void PrintValue() const override
void PrintInfo() const override
UInt_t UpdateErrorFlag() override
void PrintErrorCounters() const override
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t indexnumber) override
void SetSubElementPedestal(Int_t j, Double_t value) override
void RandomizeEventData(int helicity=0, double time=0.0) override
VQwBPM & operator=(const VQwBPM &value) override
QwBPMCavity(TString name)
void DeaccumulateRunningSum(VQwBPM &value, Int_t ErrorMask=0xFFFFFFF) override
void SetRandomEventParameters(Double_t meanX, Double_t sigmaX, Double_t meanY, Double_t sigmaY) override
static const Double_t kQwCavityCalibration
VQwBPM & operator+=(const VQwBPM &value) override
void Scale(Double_t factor) override
void FillTreeVector(QwRootTreeBranchVector &values) const override
Abstract base for beam position monitors (BPMs)
static const TString axis[3]