15 template<
class VQwSubsystem_t>
73 Int_t
ProcessEvBuffer(
const UInt_t event_type,
const UInt_t roc_id,
const UInt_t bank_id, UInt_t* buffer, UInt_t num_words) {
79 Int_t
ProcessEvBuffer(
const UInt_t roc_id,
const UInt_t bank_id, UInt_t* buffer, UInt_t num_words) {
82 for (UInt_t word = 0; word < num_words; word++)
83 cheeseburger += buffer[word];
98 void Scale(Double_t factor) { };
Int_t LoadInputParameters(TString mapfile)
Parameter file definition.
void FillHistograms()
Fill the histograms for this subsystem.
void PrintErrorCounters() const
Report the number of events failed due to HW and event cut failures.
void DeaccumulateRunningSum(VQwSubsystem *value)
VQwSubsystem & operator=(VQwSubsystem *value)
Assignment/addition/subtraction operators.
void ProcessEvent()
Process the event.
void Sum(VQwSubsystem *value1, VQwSubsystem *value2)
Sum/difference/ratio/scale operations.
void ConstructBranch(TTree *, TString &, QwParameterFile &)
Construct branch.
void Scale(Double_t factor)
VQwSubsystem & operator+=(VQwSubsystem *value)
void FillTreeVector(std::vector< Double_t > &values) const
Fill the tree vector.
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this subsystem in a folder with a prefix.
Int_t ProcessConfigurationBuffer(const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words)
Process the configuration events.
Int_t ProcessEvBuffer(const UInt_t event_type, const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words)
Process the event buffer.
Int_t LoadEventCuts(TString filename)
Load the event cuts file.
void AccumulateRunningSum(VQwSubsystem *value)
Update the running sums for devices.
QwOmnivore(const QwOmnivore &source)
Copy constructor.
Int_t LoadGeometryDefinition(TString mapfile)
Geometry definition for tracking subsystems.
void CalculateRunningAverage()
Calculate the average for all good events.
QwOmnivore()
Private default constructor (not implemented, will throw linker error on use)
The pure virtual base class of all subsystems.
void ClearEventData()
Get the hit list.
void Ratio(VQwSubsystem *numer, VQwSubsystem *denom)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
Construct the branch and tree vector.
void IncrementErrorCounters()
Increment error counters.
virtual ~QwOmnivore()
Virtual destructor.
Int_t ProcessEvBuffer(const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words)
TODO: The non-event-type-aware ProcessEvBuffer routine should be replaced with the event-type-aware v...
Int_t LoadChannelMap(TString mapfile)
Map file definition.
void ConstructBranch(TTree *, TString &)
Construct branch.
UInt_t GetEventcutErrorFlag()
Return the error flag to the main routine.
void Difference(VQwSubsystem *value1, VQwSubsystem *value2)
Bool_t ApplySingleEventCuts()
Apply the single event cuts.
VQwSubsystem & operator-=(VQwSubsystem *value)
void UpdateErrorFlag(const VQwSubsystem *)
Update error flag.
QwOmnivore(const TString &name)
Constructor with name.