QwAnalysis
|
#include <QwLumi.h>
Public Member Functions | |
QwLumi (const TString &name) | |
Constructor with name. More... | |
QwLumi (const QwLumi &source) | |
Copy constructor. More... | |
virtual | ~QwLumi () |
Virtual destructor. More... | |
void | ProcessOptions (QwOptions &options) |
Process the command line options. More... | |
Int_t | LoadChannelMap (TString mapfile) |
Mandatory map file definition. More... | |
Int_t | LoadInputParameters (TString pedestalfile) |
Mandatory parameter file definition. More... | |
Int_t | LoadEventCuts (TString filename) |
Load the event cuts file. More... | |
Bool_t | ApplySingleEventCuts () |
Apply the single event cuts. More... | |
void | IncrementErrorCounters () |
Increment the error counters. More... | |
void | PrintErrorCounters () const |
Report the number of events failed due to HW and event cut failures. More... | |
UInt_t | GetEventcutErrorFlag () |
Return the error flag to the top level routines related to stability checks and ErrorFlag updates. More... | |
void | UpdateErrorFlag (const VQwSubsystem *ev_error) |
update the error flag in the subsystem level from the top level routines related to stability checks. This will uniquely update the errorflag at each channel based on the error flag in the corresponding channel in the ev_error subsystem More... | |
void | AccumulateRunningSum (VQwSubsystem *value) |
Update the running sums for devices. More... | |
void | DeaccumulateRunningSum (VQwSubsystem *value) |
remove one entry from the running sums for devices More... | |
void | CalculateRunningAverage () |
Calculate the average for all good events. More... | |
Int_t | ProcessConfigurationBuffer (const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words) |
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 version. More... | |
void | PrintDetectorID () const |
void | ClearEventData () |
Bool_t | IsGoodEvent () |
void | ProcessEvent () |
void | ExchangeProcessedData () |
void | ProcessEvent_2 () |
Process the event data again, including data from other subsystems. Not all derived classes will require a second stage of event data processing. More... | |
Bool_t | PublishInternalValues () const |
Publish all variables of the subsystem. More... | |
Bool_t | PublishByRequest (TString device_name) |
Try to publish an internal variable matching the submitted name. More... | |
void | DoNormalization (Double_t factor=1.0) |
void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
void | SetRandomEventAsymmetry (Double_t asymmetry) |
void | RandomizeEventData (int helicity=0, double time=0.0) |
void | EncodeEventData (std::vector< UInt_t > &buffer) |
VQwSubsystem & | operator= (VQwSubsystem *value) |
Assignment Note: Must be called at the beginning of all subsystems routine call to operator=(VQwSubsystem *value) by VQwSubsystem::operator=(value) More... | |
VQwSubsystem & | operator+= (VQwSubsystem *value) |
VQwSubsystem & | operator-= (VQwSubsystem *value) |
void | Sum (VQwSubsystem *value1, VQwSubsystem *value2) |
void | Difference (VQwSubsystem *value1, VQwSubsystem *value2) |
void | Ratio (VQwSubsystem *numer, VQwSubsystem *denom) |
void | Normalize (VQwDataElement *denom) |
void | Scale (Double_t factor) |
void | ConstructHistograms (TDirectory *folder, TString &prefix) |
Construct the histograms for this subsystem in a folder with a prefix. More... | |
void | FillHistograms () |
Fill the histograms for this subsystem. More... | |
void | ConstructBranchAndVector (TTree *tree, TString &prefix, std::vector< Double_t > &values) |
Construct the branch and tree vector. More... | |
void | ConstructBranch (TTree *tree, TString &prefix) |
Construct the branch and tree vector. More... | |
void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &trim_file) |
Construct the branch and tree vector based on the trim file. More... | |
void | FillTreeVector (std::vector< Double_t > &values) const |
Fill the tree vector. More... | |
void | FillDB (QwParityDB *db, TString datatype) |
Fill the database. More... | |
void | FillErrDB (QwParityDB *db, TString datatype) |
const QwIntegrationPMT * | GetChannel (const TString name) const |
const QwIntegrationPMT * | GetIntegrationPMT (const TString name) const |
const QwCombinedPMT * | GetCombinedPMT (const TString name) const |
Bool_t | Compare (VQwSubsystem *source) |
void | PrintValue () const |
Print values of all channels. More... | |
void | PrintInfo () const |
Print some information about the subsystem. More... | |
void | WritePromptSummary (QwPromptSummary *ps, TString type) |
Public Member Functions inherited from VQwSubsystemParity | |
VQwSubsystemParity (const TString &name) | |
Constructor with name. More... | |
VQwSubsystemParity (const VQwSubsystemParity &source) | |
Copy constructor. More... | |
virtual | ~VQwSubsystemParity () |
Default destructor. More... | |
virtual void | FillDB_MPS (QwParityDB *db, TString type) |
Fill the database with MPS-based variables Note that most subsystems don't need to do this. More... | |
virtual UInt_t | UpdateErrorFlag () |
Uses the error flags of contained data elements to update Returns the error flag to the top level routines related to stability checks and ErrorFlag updates. More... | |
virtual void | Blind (const QwBlinder *blinder) |
Blind the asymmetry of this subsystem. More... | |
virtual void | Blind (const QwBlinder *blinder, const VQwSubsystemParity *subsys) |
Blind the difference of this subsystem. More... | |
virtual Bool_t | CheckForEndOfBurst () const |
Public Member Functions inherited from VQwSubsystem | |
VQwSubsystem (const TString &name) | |
Constructor with name. More... | |
VQwSubsystem (const VQwSubsystem &orig) | |
Copy constructor by object. More... | |
virtual | ~VQwSubsystem () |
Default destructor. More... | |
TString | GetSubsystemName () const |
Bool_t | HasDataLoaded () const |
void | SetParent (QwSubsystemArray *parent) |
Set the parent of this subsystem to the specified array. More... | |
QwSubsystemArray * | GetParent (const unsigned int parent=0) const |
Get the parent of this subsystem. More... | |
VQwSubsystem * | GetSibling (const std::string &name) const |
Get the sibling with specified name. More... | |
Bool_t | PublishInternalValue (const TString &name, const TString &desc, const VQwHardwareChannel *value) const |
Publish a variable name to the parent subsystem array. More... | |
Bool_t | RequestExternalValue (const TString &name, VQwHardwareChannel *value) const |
Request a named value which is owned by an external subsystem; the request will be handled by the parent subsystem array. More... | |
virtual const VQwHardwareChannel * | ReturnInternalValue (const TString &name) const |
Return a pointer to a varialbe to the parent subsystem array to be delivered to a different subsystem. More... | |
virtual Bool_t | ReturnInternalValue (const TString &name, VQwHardwareChannel *value) const |
Return a named value to the parent subsystem array to be delivered to a different subsystem. More... | |
virtual std::vector< TString > | GetParamFileNameList () |
virtual std::map< TString, TString > | GetDetectorMaps () |
virtual Int_t | LoadDetectorMaps (QwParameterFile &file) |
Parse parameter file to find the map files. More... | |
virtual Int_t | LoadGeometryDefinition (TString mapfile) |
Optional geometry definition. More... | |
virtual Int_t | LoadCrosstalkDefinition (TString mapfile) |
Optional crosstalk definition. More... | |
void | SetEventTypeMask (const UInt_t mask) |
Set event type mask. More... | |
UInt_t | GetEventTypeMask () const |
Get event type mask. More... | |
virtual 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) |
virtual void | AtEndOfEventLoop () |
Perform actions at the end of the event loop. More... | |
virtual void | PrintDetectorMaps (Bool_t status) const |
virtual void | ConstructHistograms () |
Construct the histograms for this subsystem. More... | |
virtual void | ConstructHistograms (TDirectory *folder) |
Construct the histograms for this subsystem in a folder. More... | |
virtual void | ConstructHistograms (TString &prefix) |
Construct the histograms for this subsystem with a prefix. More... | |
virtual void | ConstructBranchAndVector (TTree *tree, std::vector< Double_t > &values) |
Construct the branch and tree vector. More... | |
virtual void | ConstructTree () |
Construct the tree for this subsystem. More... | |
virtual void | ConstructTree (TDirectory *folder) |
Construct the tree for this subsystem in a folder. More... | |
virtual void | ConstructTree (TString &prefix) |
Construct the tree for this subsystem with a prefix. More... | |
virtual void | ConstructTree (TDirectory *folder, TString &prefix) |
Construct the tree for this subsystem in a folder with a prefix. More... | |
virtual void | FillTree () |
Fill the tree for this subsystem. More... | |
virtual void | DeleteTree () |
Delete the tree for this subsystem. More... | |
Public Member Functions inherited from MQwHistograms | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. More... | |
Public Member Functions inherited from MQwCloneable< VQwSubsystem, QwLumi > | |
virtual | ~MQwCloneable () |
Virtual destructor. More... | |
virtual VQwSubsystem * | Clone () const |
Concrete clone method. More... | |
const VQwFactory< VQwSubsystem > * | Factory () const |
Factory getter. More... | |
Public Member Functions inherited from VQwCloneable< VQwSubsystem > | |
virtual | ~VQwCloneable () |
Virtual destructor. More... | |
std::string | GetClassName () const |
Get demangled name of this class. More... | |
Static Public Member Functions | |
static void | DefineOptions (QwOptions &options) |
Define options function. More... | |
Static Public Member Functions inherited from VQwSubsystem | |
static void | DefineOptions () |
Define options function (note: no virtual static functions in C++) More... | |
Static Public Member Functions inherited from MQwCloneable< VQwSubsystem, QwLumi > | |
static VQwSubsystem * | Create (const std::string &name) |
Object creation. More... | |
static QwLumi * | Cast (QwLumi *type) |
Object dynamic cast. More... | |
Data Fields | |
std::vector< TString > | fgDetectorTypeNames |
Protected Member Functions | |
EQwPMTInstrumentType | GetDetectorTypeID (TString name) |
Int_t | GetDetectorIndex (EQwPMTInstrumentType TypeID, TString name) |
Protected Member Functions inherited from VQwSubsystem | |
void | UpdatePublishedValue (const TString &name, VQwHardwareChannel *data_channel) |
void | ClearAllBankRegistrations () |
Clear all registration of ROC and Bank IDs for this subsystem. More... | |
virtual Int_t | RegisterROCNumber (const UInt_t roc_id, const UInt_t bank_id=0) |
Tell the object that it will decode data from this ROC and sub-bank. More... | |
Int_t | RegisterSubbank (const UInt_t bank_id) |
Tell the object that it will decode data from this sub-bank in the ROC currently open for registration. More... | |
Int_t | GetSubbankIndex () const |
Int_t | GetSubbankIndex (const UInt_t roc_id, const UInt_t bank_id) const |
void | SetDataLoaded (Bool_t flag) |
Int_t | FindIndex (const std::vector< UInt_t > &myvec, const UInt_t value) const |
Bool_t | Compare (VQwSubsystem *source) |
Protected Member Functions inherited from MQwHistograms | |
MQwHistograms () | |
Default constructor. More... | |
MQwHistograms (const MQwHistograms &source) | |
Copy constructor. More... | |
virtual | ~MQwHistograms () |
Virtual destructor. More... | |
virtual MQwHistograms & | operator= (const MQwHistograms &value) |
void | Fill_Pointer (TH1_ptr hist_ptr, Double_t value) |
void | AddHistogram (TH1 *h) |
Register a histogram. More... | |
Protected Attributes | |
std::vector< QwIntegrationPMT > | fIntegrationPMT |
std::vector< QwCombinedPMT > | fCombinedPMT |
std::vector< QwSIS3801D24_Channel > | fScalerPMT |
std::vector< QwLumiDetectorID > | fLumiDetectorID |
QwBeamCharge | fTargetCharge |
Bool_t | bIsExchangedDataValid |
Bool_t | bNormalization |
Protected Attributes inherited from VQwSubsystem | |
std::map< TString, VQwHardwareChannel * > | fPublishedInternalValues |
Map of published internal values. More... | |
std::vector< std::vector < TString > > | fPublishList |
List of parameters to be published (loaded at the channel map) More... | |
TString | fSystemName |
Name of this subsystem. More... | |
UInt_t | fEventTypeMask |
Mask of event types. More... | |
Bool_t | fIsDataLoaded |
Has this subsystem gotten data to be processed? More... | |
std::vector< TString > | fDetectorMapsNames |
std::map< TString, TString > | fDetectorMaps |
Int_t | fCurrentROC_ID |
ROC ID that is currently being processed. More... | |
Int_t | fCurrentBank_ID |
Bank ID that is currently being processed. More... | |
std::vector< UInt_t > | fROC_IDs |
Vector of ROC IDs associated with this subsystem. More... | |
std::vector< std::vector < UInt_t > > | fBank_IDs |
Vector of Bank IDs per ROC ID associated with this subsystem. More... | |
std::vector< QwSubsystemArray * > | fArrays |
Vector of pointers to subsystem arrays that contain this subsystem. More... | |
Protected Attributes inherited from MQwHistograms | |
std::vector< TH1_ptr > | fHistograms |
Histograms associated with this data element. More... | |
Private Member Functions | |
QwLumi () | |
Private default constructor (not implemented, will throw linker error on use) More... | |
Private Attributes | |
Int_t | fQwLumiErrorCount |
Static Private Attributes | |
static const Bool_t | bDEBUG =kFALSE |
Friends | |
class | QwCombinedPMT |
|
private |
Private default constructor (not implemented, will throw linker error on use)
|
inline |
Constructor with name.
Definition at line 67 of file QwLumi.h.
References fTargetCharge.
|
inline |
|
inlinevirtual |
|
virtual |
Update the running sums for devices.
Implements VQwSubsystemParity.
Definition at line 1187 of file QwLumi.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
virtual |
Apply the single event cuts.
Implements VQwSubsystemParity.
Definition at line 615 of file QwLumi.cc.
References bDEBUG, fCombinedPMT, fIntegrationPMT, and fQwLumiErrorCount.
|
virtual |
Calculate the average for all good events.
Implements VQwSubsystemParity.
Definition at line 1177 of file QwLumi.cc.
References fCombinedPMT, and fIntegrationPMT.
|
virtual |
Implements VQwSubsystem.
Definition at line 801 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, fScalerPMT, and VQwSubsystem::SetDataLoaded().
Bool_t QwLumi::Compare | ( | VQwSubsystem * | source | ) |
Definition at line 1003 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, and fScalerPMT.
Referenced by AccumulateRunningSum(), DeaccumulateRunningSum(), Difference(), operator+=(), operator-=(), operator=(), Ratio(), Sum(), and UpdateErrorFlag().
|
virtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 1069 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, and fScalerPMT.
Referenced by ConstructBranch().
|
virtual |
Construct the branch and tree vector based on the trim file.
Implements VQwSubsystem.
Definition at line 1080 of file QwLumi.cc.
References ConstructBranch(), fCombinedPMT, QwParameterFile::FileHasModuleHeader(), fIntegrationPMT, fScalerPMT, QwParameterFile::ReadUntilNextModule(), and QwParameterFile::RewindToFileStart().
|
virtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 1058 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, and fScalerPMT.
|
virtual |
Construct the histograms for this subsystem in a folder with a prefix.
Implements VQwSubsystem.
Definition at line 1032 of file QwLumi.cc.
References VQwSubsystem::ConstructHistograms(), fCombinedPMT, fIntegrationPMT, and fScalerPMT.
|
virtual |
remove one entry from the running sums for devices
Implements VQwSubsystemParity.
Definition at line 1200 of file QwLumi.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
static |
Define options function.
Definition at line 24 of file QwLumi.cc.
References QwOptions::AddOptions(), and default_bool_value.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 953 of file QwLumi.cc.
References Compare().
void QwLumi::DoNormalization | ( | Double_t | factor = 1.0 | ) |
Definition at line 1213 of file QwLumi.cc.
References bDEBUG, bIsExchangedDataValid, Qw::e, fTargetCharge, and Normalize().
Referenced by ProcessEvent_2().
|
virtual |
Reimplemented from VQwSubsystem.
Definition at line 505 of file QwLumi.cc.
References VQwSubsystem::fCurrentBank_ID, VQwSubsystem::fCurrentROC_ID, fIntegrationPMT, fLumiDetectorID, and kQwIntegrationPMT.
|
virtual |
Exchange data between subsystems
Reimplemented from VQwSubsystem.
Definition at line 707 of file QwLumi.cc.
References bDEBUG, bIsExchangedDataValid, bNormalization, QwLog::endl(), fTargetCharge, VQwSubsystem::HasDataLoaded(), QwWarning, and VQwSubsystem::RequestExternalValue().
|
virtual |
Fill the database.
Reimplemented from VQwSubsystemParity.
Definition at line 1243 of file QwLumi.cc.
References QwDatabase::Connect(), QwDBInterface::DetermineMeasurementTypeID(), QwDatabase::Disconnect(), QwLog::endl(), fCombinedPMT, fIntegrationPMT, QwParityDB::GetAnalysisID(), Qw::kBoldRed, Qw::kGreen, Qw::kNormal, QwDatabase::Query(), and QwMessage.
|
virtual |
Reimplemented from VQwSubsystemParity.
Definition at line 1319 of file QwLumi.cc.
References QwDatabase::Connect(), QwDatabase::Disconnect(), QwLog::endl(), fCombinedPMT, fIntegrationPMT, QwParityDB::GetAnalysisID(), Qw::kBoldRed, Qw::kGreen, Qw::kNormal, QwDatabase::Query(), and QwMessage.
|
virtual |
Fill the histograms for this subsystem.
Implements VQwSubsystem.
Definition at line 1044 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, fScalerPMT, and VQwSubsystem::HasDataLoaded().
|
virtual |
Fill the tree vector.
Implements VQwSubsystem.
Definition at line 1108 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, fScalerPMT, and VQwSubsystem::HasDataLoaded().
const QwIntegrationPMT * QwLumi::GetChannel | ( | const TString | name | ) | const |
Definition at line 845 of file QwLumi.cc.
References GetIntegrationPMT().
Referenced by PublishByRequest().
const QwCombinedPMT * QwLumi::GetCombinedPMT | ( | const TString | name | ) | const |
Definition at line 865 of file QwLumi.cc.
References QwLog::endl(), fCombinedPMT, and QwMessage.
|
protected |
Definition at line 818 of file QwLumi.cc.
References fLumiDetectorID.
Referenced by LoadChannelMap(), and LoadEventCuts().
|
protected |
Definition at line 812 of file QwLumi.cc.
References GetQwPMTInstrumentType().
Referenced by LoadChannelMap(), and LoadEventCuts().
|
virtual |
Return the error flag to the top level routines related to stability checks and ErrorFlag updates.
Implements VQwSubsystemParity.
Definition at line 664 of file QwLumi.cc.
References fCombinedPMT, and fIntegrationPMT.
const QwIntegrationPMT * QwLumi::GetIntegrationPMT | ( | const TString | name | ) | const |
Definition at line 852 of file QwLumi.cc.
References fIntegrationPMT.
Referenced by GetChannel().
|
virtual |
Increment the error counters.
Implements VQwSubsystemParity.
Definition at line 635 of file QwLumi.cc.
References fCombinedPMT, and fIntegrationPMT.
Bool_t QwLumi::IsGoodEvent | ( | ) |
|
virtual |
Mandatory map file definition.
TODO: Instead of just forcing the external clock to not be used, we should figure out how to use the clock from teh beamline subsystem.
Implements VQwSubsystem.
Definition at line 45 of file QwLumi.cc.
References QwLog::endl(), QwLumiDetectorID::fCombinedChannelNames, fCombinedPMT, VQwSubsystem::fDetectorMaps, QwLumiDetectorID::fdetectorname, QwLumiDetectorID::fdetectortype, QwLumiDetectorID::fIndex, fIntegrationPMT, fLumiDetectorID, QwLumiDetectorID::fmoduletype, fScalerPMT, QwLumiDetectorID::fSubbankIndex, QwLumiDetectorID::fTypeID, QwLumiDetectorID::fWeight, QwLumiDetectorID::fWordInSubbank, QwVQWK_Channel::GetBufferOffset(), GetDetectorIndex(), GetDetectorTypeID(), VQwSubsystem::GetSubbankIndex(), VQwSubsystem::GetSubsystemName(), QwParameterFile::GetUInt(), kQwCombinedPMT, kQwIntegrationPMT, kQwScalerPMT, QwLumiDetectorID::Print(), QwError, VQwSubsystem::RegisterROCNumber(), VQwSubsystem::RegisterSubbank(), QwCombinedPMT::SetBlindability(), QwIntegrationPMT::SetBlindability(), QwCombinedPMT::SetNormalizability(), and QwIntegrationPMT::SetNormalizability().
|
virtual |
Load the event cuts file.
Implements VQwSubsystemParity.
Definition at line 352 of file QwLumi.cc.
References QwLog::endl(), fCombinedPMT, VQwSubsystem::fDetectorMaps, fIntegrationPMT, fQwLumiErrorCount, GetDetectorIndex(), GetDetectorTypeID(), GetGlobalErrorFlag(), GetQwPMTInstrumentTypeName(), QwParameterFile::GetUInt(), kQwCombinedPMT, kQwIntegrationPMT, QwMessage, and QwWarning.
|
virtual |
Mandatory parameter file definition.
Implements VQwSubsystem.
Definition at line 429 of file QwLumi.cc.
References VQwSubsystem::fDetectorMaps, and fIntegrationPMT.
void QwLumi::Normalize | ( | VQwDataElement * | denom | ) |
Definition at line 991 of file QwLumi.cc.
References fCombinedPMT, and fIntegrationPMT.
Referenced by DoNormalization().
|
virtual |
Implements VQwSubsystemParity.
Definition at line 908 of file QwLumi.cc.
References Compare(), fCombinedPMT, fIntegrationPMT, and fScalerPMT.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 925 of file QwLumi.cc.
References Compare(), fCombinedPMT, fIntegrationPMT, and fScalerPMT.
|
virtual |
Assignment Note: Must be called at the beginning of all subsystems routine call to operator=(VQwSubsystem *value) by VQwSubsystem::operator=(value)
Implements VQwSubsystemParity.
Definition at line 888 of file QwLumi.cc.
References Compare(), fCombinedPMT, fIntegrationPMT, fScalerPMT, and VQwSubsystem::operator=().
void QwLumi::PrintDetectorID | ( | ) | const |
|
virtual |
Report the number of events failed due to HW and event cut failures.
Implements VQwSubsystemParity.
Definition at line 646 of file QwLumi.cc.
References QwLog::endl(), fCombinedPMT, fIntegrationPMT, QwVQWK_Channel::PrintErrorCounterHead(), QwVQWK_Channel::PrintErrorCounterTail(), and QwMessage.
|
virtual |
Print some information about the subsystem.
Reimplemented from VQwSubsystem.
Definition at line 1134 of file QwLumi.cc.
References QwLog::endl(), fCombinedPMT, fIntegrationPMT, fScalerPMT, VQwSubsystem::fSystemName, and QwMessage.
|
virtual |
Print values of all channels.
Reimplemented from VQwSubsystemParity.
Definition at line 1122 of file QwLumi.cc.
References QwLog::endl(), fCombinedPMT, fIntegrationPMT, fScalerPMT, VQwSubsystem::GetSubsystemName(), and QwMessage.
|
virtual |
|
virtual |
TODO: The non-event-type-aware ProcessEvBuffer routine should be replaced with the event-type-aware version.
Implements VQwSubsystem.
Definition at line 542 of file QwLumi.cc.
References fIntegrationPMT, fLumiDetectorID, fScalerPMT, VQwSubsystem::GetSubbankIndex(), kQwIntegrationPMT, kQwScalerPMT, and VQwSubsystem::SetDataLoaded().
|
virtual |
Implements VQwSubsystem.
Definition at line 691 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, fScalerPMT, and VQwSubsystem::HasDataLoaded().
|
virtual |
Process the event data again, including data from other subsystems. Not all derived classes will require a second stage of event data processing.
Reimplemented from VQwSubsystem.
Definition at line 726 of file QwLumi.cc.
References bDEBUG, bIsExchangedDataValid, bNormalization, DoNormalization(), QwLog::endl(), fTargetCharge, VQwSubsystem::HasDataLoaded(), and QwWarning.
|
virtual |
Process the command line options.
Reimplemented from VQwSubsystem.
Definition at line 34 of file QwLumi.cc.
References bNormalization, QwLog::endl(), QwOptions::GetValue(), and QwWarning.
|
virtual |
Try to publish an internal variable matching the submitted name.
Reimplemented from VQwSubsystem.
Definition at line 763 of file QwLumi.cc.
References QwLog::endl(), fCombinedPMT, fIntegrationPMT, fLumiDetectorID, GetChannel(), kQwCombinedPMT, kQwIntegrationPMT, VQwSubsystem::PublishInternalValue(), and QwError.
|
virtual |
Publish all variables of the subsystem.
Reimplemented from VQwSubsystem.
|
virtual |
Reimplemented from VQwSubsystem.
Definition at line 497 of file QwLumi.cc.
References fIntegrationPMT.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 963 of file QwLumi.cc.
References Compare(), fCombinedPMT, fIntegrationPMT, and fScalerPMT.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 980 of file QwLumi.cc.
References fCombinedPMT, fIntegrationPMT, and fScalerPMT.
void QwLumi::SetRandomEventAsymmetry | ( | Double_t | asymmetry | ) |
Definition at line 490 of file QwLumi.cc.
References fIntegrationPMT.
Referenced by main().
void QwLumi::SetRandomEventParameters | ( | Double_t | mean, |
Double_t | sigma | ||
) |
Definition at line 483 of file QwLumi.cc.
References fIntegrationPMT.
Referenced by main().
|
virtual |
Implements VQwSubsystemParity.
Definition at line 943 of file QwLumi.cc.
References Compare().
|
virtual |
update the error flag in the subsystem level from the top level routines related to stability checks. This will uniquely update the errorflag at each channel based on the error flag in the corresponding channel in the ev_error subsystem
Implements VQwSubsystemParity.
Definition at line 676 of file QwLumi.cc.
References Compare(), fCombinedPMT, fIntegrationPMT, and UpdateErrorFlag().
Referenced by UpdateErrorFlag().
|
virtual |
Reimplemented from VQwSubsystemParity.
Definition at line 1389 of file QwLumi.cc.
References QwLog::endl(), and QwMessage.
|
friend |
|
staticprivate |
Definition at line 183 of file QwLumi.h.
Referenced by ApplySingleEventCuts(), DoNormalization(), ExchangeProcessedData(), and ProcessEvent_2().
|
protected |
Definition at line 176 of file QwLumi.h.
Referenced by DoNormalization(), ExchangeProcessedData(), and ProcessEvent_2().
|
protected |
Definition at line 177 of file QwLumi.h.
Referenced by ExchangeProcessedData(), ProcessEvent_2(), and ProcessOptions().
|
protected |
Definition at line 169 of file QwLumi.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetCombinedPMT(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), Normalize(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvent(), PublishByRequest(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 168 of file QwLumi.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), EncodeEventData(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetEventcutErrorFlag(), GetIntegrationPMT(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadInputParameters(), Normalize(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), PublishByRequest(), RandomizeEventData(), Ratio(), Scale(), SetRandomEventAsymmetry(), SetRandomEventParameters(), and UpdateErrorFlag().
|
protected |
Definition at line 172 of file QwLumi.h.
Referenced by EncodeEventData(), GetDetectorIndex(), LoadChannelMap(), PrintDetectorID(), ProcessEvBuffer(), and PublishByRequest().
|
private |
Definition at line 181 of file QwLumi.h.
Referenced by ApplySingleEventCuts(), and LoadEventCuts().
|
protected |
Definition at line 170 of file QwLumi.h.
Referenced by ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), FillHistograms(), FillTreeVector(), LoadChannelMap(), operator+=(), operator-=(), operator=(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), Ratio(), and Scale().
|
protected |
Definition at line 175 of file QwLumi.h.
Referenced by DoNormalization(), ExchangeProcessedData(), ProcessEvent_2(), and QwLumi().