106 Int_t
ProcessEvBuffer(
const UInt_t roc_id,
const UInt_t bank_id, UInt_t* buffer, UInt_t num_words);
133 void Scale(Double_t factor);
QwLumi(const QwLumi &source)
Copy constructor.
const QwIntegrationPMT * GetIntegrationPMT(const TString name) const
void Sum(VQwSubsystem *value1, VQwSubsystem *value2)
void DeaccumulateRunningSum(VQwSubsystem *value)
remove one entry from the running sums for devices
Int_t LoadChannelMap(TString mapfile)
Mandatory map file definition.
void FillTreeVector(std::vector< Double_t > &values) const
Fill the tree vector.
void Normalize(VQwDataElement *denom)
std::vector< Double_t > fWeight
Bool_t bIsExchangedDataValid
void PrintInfo() const
Print some information about the subsystem.
virtual UInt_t UpdateErrorFlag()
Uses the error flags of contained data elements to update Returns the error flag to the top level rou...
void FillErrDB(QwParityDB *db, TString datatype)
void PrintValue() const
Print values of all channels.
void FillHistograms()
Fill the histograms for this subsystem.
Virtual base class for the parity subsystems.
void ConstructBranch(TTree *tree, TString &prefix)
Construct the branch and tree vector.
void DoNormalization(Double_t factor=1.0)
void Difference(VQwSubsystem *value1, VQwSubsystem *value2)
Int_t LoadEventCuts(TString filename)
Load the event cuts file.
const QwIntegrationPMT * GetChannel(const TString name) const
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...
std::vector< QwCombinedPMT > fCombinedPMT
Bool_t ApplySingleEventCuts()
Apply the single event cuts.
virtual void ConstructHistograms()
Construct the histograms for this subsystem.
Bool_t PublishByRequest(TString device_name)
Try to publish an internal variable matching the submitted name.
void ProcessOptions(QwOptions &options)
Process the command line options.
VQwSubsystem & operator+=(VQwSubsystem *value)
The pure virtual base class of all data elements.
static const Bool_t bDEBUG
VQwSubsystem & operator=(VQwSubsystem *value)
Assignment Note: Must be called at the beginning of all subsystems routine call to operator=(VQwSubsy...
void WritePromptSummary(QwPromptSummary *ps, TString type)
static void DefineOptions()
Define options function (note: no virtual static functions in C++)
void PrintErrorCounters() const
Report the number of events failed due to HW and event cut failures.
EQwPMTInstrumentType fTypeID
void RandomizeEventData(int helicity=0, double time=0.0)
QwLumi(const TString &name)
Constructor with name.
class QwVQWK_Channel QwBeamCharge
virtual ~QwLumi()
Virtual destructor.
std::vector< TString > fgDetectorTypeNames
Int_t ProcessConfigurationBuffer(const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words)
void CalculateRunningAverage()
Calculate the average for all good events.
std::vector< QwLumiDetectorID > fLumiDetectorID
The pure virtual base class of all subsystems.
Int_t GetDetectorIndex(EQwPMTInstrumentType TypeID, TString name)
std::vector< QwIntegrationPMT > fIntegrationPMT
void EncodeEventData(std::vector< UInt_t > &buffer)
void ProcessEvent_2()
Process the event data again, including data from other subsystems. Not all derived classes will requ...
void SetRandomEventParameters(Double_t mean, Double_t sigma)
Bool_t Compare(VQwSubsystem *source)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
Construct the branch and tree vector.
Int_t LoadInputParameters(TString pedestalfile)
Mandatory parameter file definition.
void SetRandomEventAsymmetry(Double_t asymmetry)
void Scale(Double_t factor)
Bool_t PublishInternalValues() const
Publish all variables of the subsystem.
void PrintDetectorID() const
std::vector< QwSIS3801D24_Channel > fScalerPMT
QwBeamCharge fTargetCharge
void IncrementErrorCounters()
Increment the error counters.
void FillDB(QwParityDB *db, TString datatype)
Fill the database.
std::vector< TString > fCombinedChannelNames
void ExchangeProcessedData()
void Ratio(VQwSubsystem *numer, VQwSubsystem *denom)
UInt_t GetEventcutErrorFlag()
Return the error flag to the top level routines related to stability checks and ErrorFlag updates...
const QwCombinedPMT * GetCombinedPMT(const TString name) const
void AccumulateRunningSum(VQwSubsystem *value)
Update the running sums for devices.
QwLumi()
Private default constructor (not implemented, will throw linker error on use)
VQwSubsystem & operator-=(VQwSubsystem *value)
EQwPMTInstrumentType GetDetectorTypeID(TString name)