15#ifdef HAS_RNTUPLE_SUPPORT
16#include <ROOT/RNTupleModel.hxx>
123 this->fModChannel.push_back(source.fModChannel[i]->Clone());
124 *(this->fModChannel[i]) = *(source.fModChannel[i]);
174 void Scale(Double_t factor)
override;
188#ifdef HAS_RNTUPLE_SUPPORT
189 void ConstructNTupleAndVector(std::unique_ptr<ROOT::RNTupleModel>& model, TString& prefix, std::vector<Double_t>& values, std::vector<std::shared_ptr<Double_t>>& fieldPtrs)
override;
190 void FillNTupleVector(std::vector<Double_t>& values)
const override;
193#ifdef __USE_DATABASE__
194 void FillDB_MPS(QwParityDB *db, TString datatype);
195 void FillDB(QwParityDB *db, TString datatype);
196 void FillErrDB(QwParityDB *db, TString datatype);
Word-level data manipulation and bit operations.
Decoding and management for VQWK ADC channels (6x32-bit datawords)
Virtual base class for parity analysis subsystems.
Command-line and configuration file options processor.
Configuration file parser with flexible tokenization and search capabilities.
A helper class to manage a vector of branch entries for ROOT trees.
Base class for subsystems implementing container-delegation pattern.
virtual void ConstructHistograms()
Construct the histograms for this subsystem.
VQwSubsystem(const TString &name)
Constructor with name.
virtual void ConstructBranchAndVector(TTree *tree, TString &prefix, QwRootTreeBranchVector &values)=0
Construct the branch and tree vector.
QwModChannelID(Int_t subbankid, Int_t wordssofar, TString name, TString modtype, QwBeamMod *obj)
Subsystem for beam modulation studies and FFB handling.
void ClearEventData() override
void LoadEventCuts_Line(QwParameterFile &mapstr, TString &varvalue, Int_t &eventcut_flag) override
static const Bool_t bDEBUG
void LoadEventCuts_Init() override
VQwSubsystem & operator-=(VQwSubsystem *value) override
Bool_t CheckForBurpFail(const VQwSubsystem *subsys) override
Report the number of events failed due to HW and event cut failures.
void PrintErrorCounters() const override
VQwSubsystem & operator=(VQwSubsystem *value) override
Assignment Note: Must be called at the beginning of all subsystems routine call to operator=(VQwSubsy...
VQwSubsystem & operator+=(VQwSubsystem *value) override
Int_t ProcessConfigurationBuffer(const ROCID_t roc_id, const BankID_t bank_id, UInt_t *buffer, UInt_t num_words) override
void ProcessOptions(QwOptions &options) override
Process the command line options.
void AccumulateRunningSum(VQwSubsystem *, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) override
Update the running sums for devices.
Int_t LoadChannelMap(TString mapfile) override
Mandatory map file definition.
void FillHistograms() override
Fill the histograms for this subsystem.
void ProcessEvent_2() override
Process the event data again, including data from other subsystems. Not all derived classes will requ...
Int_t LoadInputParameters(TString pedestalfile) override
Mandatory parameter file definition.
Int_t LoadGeometry(TString mapfile)
virtual void ConstructHistograms()
Construct the histograms for this subsystem.
void ConstructBranch(TTree *tree, TString &prefix) override
Construct the branch and tree vector.
QwBeamMod(const QwBeamMod &source)
Copy constructor.
void CalculateRunningAverage() override
Calculate the average for all good events.
void WritePromptSummary(QwPromptSummary *ps, TString type) override
void Ratio(VQwSubsystem *numer, VQwSubsystem *denom) override
void FillTreeVector(QwRootTreeBranchVector &values) const override
Fill the tree vector.
std::vector< VQwHardwareChannel * > fModChannel
UInt_t GetEventcutErrorFlag() override
Return the error flag to the top level routines related to stability checks and ErrorFlag updates.
~QwBeamMod() override
Virtual destructor.
Int_t GetDetectorIndex(TString name)
void Scale(Double_t factor) override
Bool_t Compare(VQwSubsystem *source)
void ConstructBranch(TTree *tree, TString &prefix, QwParameterFile &trim_file) override
Construct the branch and tree vector based on the trim file.
QwBeamMod(const TString &name)
Constructor with name.
std::vector< QwWord > fWord
Int_t ProcessEvBuffer(const ROCID_t roc_id, const BankID_t bank_id, UInt_t *buffer, UInt_t num_words) override
TODO: The non-event-type-aware ProcessEvBuffer routine should be replaced with the event-type-aware v...
void ConstructBranchAndVector(TTree *tree, TString &prefix, QwRootTreeBranchVector &values) override
Construct the branch and tree vector.
void ProcessEvent() override
UInt_t fFFB_holdoff_Counter
void IncrementErrorCounters() override
Increment the error counters.
std::vector< std::pair< Int_t, Int_t > > fWordsPerSubbank
std::vector< QwModChannelID > fModChannelID
Bool_t ApplySingleEventCuts() override
Apply the single event cuts.
void DeaccumulateRunningSum(VQwSubsystem *value, Int_t ErrorMask=0xFFFFFFF) override
remove one entry from the running sums for devices
void LoadEventCuts_Fin(Int_t &eventcut_flag) override
VQwSubsystemParity()
Private default constructor (not implemented, will throw linker error on use)
virtual void FillDB_MPS(QwParityDB *, TString)
Fill the database with MPS-based variables Note that most subsystems don't need to do this.
virtual void FillDB(QwParityDB *, TString)
Fill the database.
virtual UInt_t UpdateErrorFlag()
Uses the error flags of contained data elements to update Returns the error flag to the top level rou...
virtual void FillErrDB(QwParityDB *, TString)