QwAnalysis
|
#include <QwMainCerenkovDetector.h>
Public Member Functions | |
QwMainCerenkovDetector (const TString &name) | |
Constructor with name. More... | |
QwMainCerenkovDetector (const QwMainCerenkovDetector &source) | |
Copy constructor. More... | |
virtual | ~QwMainCerenkovDetector () |
Virtual destructor. More... | |
void | ProcessOptions (QwOptions &options) |
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... | |
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 | 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 |
void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
void | SetRandomEventAsymmetry (Double_t asymmetry) |
void | RandomizeEventData (int helicity=0, Double_t time=0.0) |
void | EncodeEventData (std::vector< UInt_t > &buffer) |
void | ConstructHistograms (TDirectory *folder) |
Construct the histograms for this subsystem in a folder. More... | |
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 |
Bool_t | Compare (VQwSubsystem *source) |
void | Blind (const QwBlinder *blinder) |
Blind the asymmetry. More... | |
void | Blind (const QwBlinder *blinder, const VQwSubsystemParity *subsys) |
Blind the difference using the yield. More... | |
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 | Scale (Double_t factor) |
void | Normalize (VQwDataElement *denom) |
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... | |
const QwIntegrationPMT * | GetIntegrationPMT (const TString name) const |
const QwCombinedPMT * | GetCombinedPMT (const TString name) const |
void | DoNormalization (Double_t factor=1.0) |
Bool_t | ApplyHWChecks () |
void | PrintValue () const |
Print values of all channels. More... | |
void | WritePromptSummary (QwPromptSummary *ps, TString type) |
void | PrintInfo () const |
Print some information about the subsystem. More... | |
void | PrintDetectorID () const |
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 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... | |
virtual Bool_t | PublishByRequest (TString device_name) |
Try to publish an internal variable matching the submitted name. 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 | RandomizeEventData (int helicity=0, double time=0.0) |
virtual void | PrintDetectorMaps (Bool_t status) const |
virtual void | ConstructHistograms () |
Construct the histograms for this subsystem. 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, QwMainCerenkovDetector > | |
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, QwMainCerenkovDetector > | |
static VQwSubsystem * | Create (const std::string &name) |
Object creation. More... | |
static QwMainCerenkovDetector * | Cast (QwMainCerenkovDetector *type) |
Object dynamic cast. More... | |
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 | |
Bool_t | fDEBUG |
std::vector< QwIntegrationPMT > | fIntegrationPMT |
std::vector< QwCombinedPMT > | fCombinedPMT |
std::vector < QwMainCerenkovDetectorID > | fMainDetID |
QwBeamCharge | fTargetCharge |
QwBeamPosition | fTargetX |
QwBeamPosition | fTargetY |
QwBeamAngle | fTargetXprime |
QwBeamAngle | fTargetYprime |
QwBeamEnergy | fTargetEnergy |
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 | |
QwMainCerenkovDetector () | |
Private default constructor (not implemented, will throw linker error on use) More... | |
Private Attributes | |
Int_t | fMainDetErrorCount |
Static Private Attributes | |
static const Bool_t | bDEBUG =kFALSE |
Friends | |
class | QwCombinedPMT |
Definition at line 28 of file QwMainCerenkovDetector.h.
|
private |
Private default constructor (not implemented, will throw linker error on use)
|
inline |
Constructor with name.
Definition at line 44 of file QwMainCerenkovDetector.h.
References fTargetCharge, fTargetEnergy, fTargetX, fTargetXprime, fTargetY, and fTargetYprime.
|
inline |
Copy constructor.
Definition at line 55 of file QwMainCerenkovDetector.h.
|
inlinevirtual |
|
virtual |
Update the running sums for devices.
Implements VQwSubsystemParity.
Definition at line 1184 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
inline |
Definition at line 150 of file QwMainCerenkovDetector.h.
References fIntegrationPMT.
|
virtual |
Apply the single event cuts.
Implements VQwSubsystemParity.
Definition at line 712 of file QwMainCerenkovDetector.cc.
References bDEBUG, fCombinedPMT, fIntegrationPMT, and fMainDetErrorCount.
|
virtual |
Blind the asymmetry.
Blind the asymmetry
blinder | Blinder |
Reimplemented from VQwSubsystemParity.
Definition at line 1212 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
Referenced by Blind().
|
virtual |
Blind the difference using the yield.
Blind the difference using the yield
blinder | Blinder |
subsys | Subsystem |
Reimplemented from VQwSubsystemParity.
Definition at line 1225 of file QwMainCerenkovDetector.cc.
References Blind(), Compare(), fCombinedPMT, and fIntegrationPMT.
|
virtual |
Calculate the average for all good events.
Implements VQwSubsystemParity.
Definition at line 1173 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
|
virtual |
Implements VQwSubsystem.
Definition at line 571 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
Bool_t QwMainCerenkovDetector::Compare | ( | VQwSubsystem * | source | ) |
Definition at line 1036 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
Referenced by AccumulateRunningSum(), Blind(), DeaccumulateRunningSum(), Difference(), operator+=(), operator-=(), operator=(), Ratio(), Sum(), and UpdateErrorFlag().
|
virtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 982 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
Referenced by ConstructBranch().
|
virtual |
Construct the branch and tree vector based on the trim file.
Implements VQwSubsystem.
Definition at line 993 of file QwMainCerenkovDetector.cc.
References ConstructBranch(), fCombinedPMT, QwParameterFile::FileHasModuleHeader(), fIntegrationPMT, QwParameterFile::ReadUntilNextModule(), and QwParameterFile::RewindToFileStart().
|
virtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 971 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
|
inlinevirtual |
Construct the histograms for this subsystem in a folder.
Reimplemented from VQwSubsystem.
Definition at line 100 of file QwMainCerenkovDetector.h.
References VQwSubsystem::ConstructHistograms().
|
virtual |
Construct the histograms for this subsystem in a folder with a prefix.
Implements VQwSubsystem.
Definition at line 948 of file QwMainCerenkovDetector.cc.
References VQwSubsystem::ConstructHistograms(), fCombinedPMT, and fIntegrationPMT.
|
virtual |
remove one entry from the running sums for devices
Implements VQwSubsystemParity.
Definition at line 1196 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
static |
Define options function.
Defines configuration options for QwEventBuffer class using QwOptions functionality.
options | Options object |
Definition at line 30 of file QwMainCerenkovDetector.cc.
References QwOptions::AddOptions(), and default_bool_value.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1124 of file QwMainCerenkovDetector.cc.
References Compare().
void QwMainCerenkovDetector::DoNormalization | ( | Double_t | factor = 1.0 | ) |
Definition at line 1312 of file QwMainCerenkovDetector.cc.
References bIsExchangedDataValid, Qw::e, fTargetCharge, and Normalize().
Referenced by ProcessEvent_2().
|
virtual |
Reimplemented from VQwSubsystem.
Definition at line 617 of file QwMainCerenkovDetector.cc.
References VQwSubsystem::fCurrentBank_ID, VQwSubsystem::fCurrentROC_ID, fIntegrationPMT, fMainDetID, and kQwIntegrationPMT.
|
virtual |
Exchange data between subsystems
Reimplemented from VQwSubsystem.
Definition at line 805 of file QwMainCerenkovDetector.cc.
References bDEBUG, bIsExchangedDataValid, bNormalization, QwLog::endl(), fTargetCharge, VQwSubsystem::GetSubsystemName(), QwError, QwWarning, and VQwSubsystem::RequestExternalValue().
|
virtual |
Fill the database.
Reimplemented from VQwSubsystemParity.
Definition at line 1327 of file QwMainCerenkovDetector.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 1433 of file QwMainCerenkovDetector.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 959 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
|
virtual |
Fill the tree vector.
Implements VQwSubsystem.
Definition at line 1018 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
const QwIntegrationPMT * QwMainCerenkovDetector::GetChannel | ( | const TString | name | ) | const |
Definition at line 1030 of file QwMainCerenkovDetector.cc.
References GetIntegrationPMT().
Referenced by PublishInternalValues().
const QwCombinedPMT * QwMainCerenkovDetector::GetCombinedPMT | ( | const TString | name | ) | const |
Definition at line 1293 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), fCombinedPMT, and QwMessage.
Referenced by PublishInternalValues().
|
protected |
Definition at line 1248 of file QwMainCerenkovDetector.cc.
References fMainDetID.
Referenced by LoadChannelMap(), and LoadEventCuts().
|
protected |
Definition at line 1242 of file QwMainCerenkovDetector.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 734 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
const QwIntegrationPMT * QwMainCerenkovDetector::GetIntegrationPMT | ( | const TString | name | ) | const |
Definition at line 1274 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), fIntegrationPMT, and QwMessage.
Referenced by GetChannel(), and PublishInternalValues().
|
virtual |
Increment the error counters.
Implements VQwSubsystemParity.
Definition at line 747 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
Bool_t QwMainCerenkovDetector::IsGoodEvent | ( | ) |
Definition at line 565 of file QwMainCerenkovDetector.cc.
|
virtual |
Mandatory map file definition.
Implements VQwSubsystem.
Definition at line 135 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), QwMainCerenkovDetectorID::fCombinedChannelNames, fCombinedPMT, VQwSubsystem::fDetectorMaps, QwMainCerenkovDetectorID::fdetectorname, QwMainCerenkovDetectorID::fdetectortype, QwMainCerenkovDetectorID::fIndex, fIntegrationPMT, fMainDetID, QwMainCerenkovDetectorID::fmoduletype, VQwSubsystem::fPublishList, QwMainCerenkovDetectorID::fSubbankIndex, QwMainCerenkovDetectorID::fTypeID, QwMainCerenkovDetectorID::fWeight, QwMainCerenkovDetectorID::fWordInSubbank, QwVQWK_Channel::GetBufferOffset(), GetDetectorIndex(), GetDetectorTypeID(), QwParameterFile::GetNextToken(), VQwSubsystem::GetSubbankIndex(), VQwSubsystem::GetSubsystemName(), QwParameterFile::GetUInt(), kQwCombinedPMT, kQwIntegrationPMT, kQwUnknownPMT, QwMainCerenkovDetectorID::Print(), QwError, QwMessage, QwParameterFile::ReadNextLine(), QwParameterFile::ReadNextSection(), VQwSubsystem::RegisterROCNumber(), VQwSubsystem::RegisterSubbank(), QwCombinedPMT::SetBlindability(), QwIntegrationPMT::SetBlindability(), QwCombinedPMT::SetNormalizability(), QwIntegrationPMT::SetNormalizability(), QwParameterFile::TrimComment(), and QwParameterFile::TrimWhitespace().
|
virtual |
Load the event cuts file.
Implements VQwSubsystemParity.
Definition at line 433 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), fCombinedPMT, VQwSubsystem::fDetectorMaps, fIntegrationPMT, fMainDetErrorCount, GetDetectorIndex(), GetDetectorTypeID(), GetGlobalErrorFlag(), GetQwPMTInstrumentTypeName(), QwParameterFile::GetUInt(), kQwCombinedPMT, kQwIntegrationPMT, QwMessage, and QwWarning.
|
virtual |
Mandatory parameter file definition.
Implements VQwSubsystem.
Definition at line 513 of file QwMainCerenkovDetector.cc.
References VQwSubsystem::fDetectorMaps, and fIntegrationPMT.
void QwMainCerenkovDetector::Normalize | ( | VQwDataElement * | denom | ) |
Definition at line 1163 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
Referenced by DoNormalization().
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1079 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1096 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
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 1061 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
void QwMainCerenkovDetector::PrintDetectorID | ( | ) | const |
Definition at line 1419 of file QwMainCerenkovDetector.cc.
References fMainDetID.
|
virtual |
Report the number of events failed due to HW and event cut failures.
Implements VQwSubsystemParity.
Definition at line 758 of file QwMainCerenkovDetector.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 1404 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, fIntegrationPMT, and VQwSubsystem::fSystemName.
|
virtual |
Print values of all channels.
Reimplemented from VQwSubsystemParity.
Definition at line 1395 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), fCombinedPMT, fIntegrationPMT, 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 673 of file QwMainCerenkovDetector.cc.
References fIntegrationPMT, fMainDetID, VQwSubsystem::GetSubbankIndex(), and kQwIntegrationPMT.
|
virtual |
Implements VQwSubsystem.
Definition at line 787 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
|
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 923 of file QwMainCerenkovDetector.cc.
References bDEBUG, bIsExchangedDataValid, bNormalization, DoNormalization(), QwLog::endl(), fTargetCharge, and QwWarning.
|
virtual |
Loads the configuration options into this instance of QwMainCerenkovDetector from the QwOptions object.
options | Options object |
Reimplemented from VQwSubsystem.
Definition at line 45 of file QwMainCerenkovDetector.cc.
References bNormalization, QwLog::endl(), QwOptions::GetValue(), and QwWarning.
|
virtual |
Publish internal values
Reimplemented from VQwSubsystem.
Definition at line 60 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), VQwSubsystem::fPublishList, QwCombinedPMT::GetChannel(), QwIntegrationPMT::GetChannel(), GetChannel(), GetCombinedPMT(), GetIntegrationPMT(), VQwSubsystem::PublishInternalValue(), QwDebug, and QwError.
void QwMainCerenkovDetector::RandomizeEventData | ( | int | helicity = 0 , |
Double_t | time = 0.0 |
||
) |
Definition at line 606 of file QwMainCerenkovDetector.cc.
References fIntegrationPMT, fMainDetID, and kQwIntegrationPMT.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1133 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, and fIntegrationPMT.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1151 of file QwMainCerenkovDetector.cc.
References fCombinedPMT, and fIntegrationPMT.
void QwMainCerenkovDetector::SetRandomEventAsymmetry | ( | Double_t | asymmetry | ) |
Definition at line 595 of file QwMainCerenkovDetector.cc.
References fIntegrationPMT, fMainDetID, and kQwIntegrationPMT.
Referenced by main().
void QwMainCerenkovDetector::SetRandomEventParameters | ( | Double_t | mean, |
Double_t | sigma | ||
) |
Definition at line 584 of file QwMainCerenkovDetector.cc.
References fIntegrationPMT, fMainDetID, and kQwIntegrationPMT.
Referenced by main().
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1115 of file QwMainCerenkovDetector.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 773 of file QwMainCerenkovDetector.cc.
References Compare(), fCombinedPMT, fIntegrationPMT, and VQwSubsystemParity::UpdateErrorFlag().
|
virtual |
Reimplemented from VQwSubsystemParity.
Definition at line 1500 of file QwMainCerenkovDetector.cc.
References QwLog::endl(), and QwMessage.
|
friend |
Definition at line 32 of file QwMainCerenkovDetector.h.
|
staticprivate |
Definition at line 192 of file QwMainCerenkovDetector.h.
Referenced by ApplySingleEventCuts(), ExchangeProcessedData(), and ProcessEvent_2().
|
protected |
Definition at line 186 of file QwMainCerenkovDetector.h.
Referenced by DoNormalization(), ExchangeProcessedData(), and ProcessEvent_2().
|
protected |
Definition at line 188 of file QwMainCerenkovDetector.h.
Referenced by ExchangeProcessedData(), ProcessEvent_2(), and ProcessOptions().
|
protected |
Definition at line 175 of file QwMainCerenkovDetector.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), Blind(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetCombinedPMT(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), Normalize(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 165 of file QwMainCerenkovDetector.h.
|
protected |
Definition at line 174 of file QwMainCerenkovDetector.h.
Referenced by AccumulateRunningSum(), ApplyHWChecks(), ApplySingleEventCuts(), Blind(), 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(), RandomizeEventData(), Ratio(), Scale(), SetRandomEventAsymmetry(), SetRandomEventParameters(), and UpdateErrorFlag().
|
private |
Definition at line 193 of file QwMainCerenkovDetector.h.
Referenced by ApplySingleEventCuts(), and LoadEventCuts().
|
protected |
Definition at line 176 of file QwMainCerenkovDetector.h.
Referenced by EncodeEventData(), GetDetectorIndex(), LoadChannelMap(), PrintDetectorID(), ProcessEvBuffer(), RandomizeEventData(), SetRandomEventAsymmetry(), and SetRandomEventParameters().
|
protected |
Definition at line 179 of file QwMainCerenkovDetector.h.
Referenced by DoNormalization(), ExchangeProcessedData(), ProcessEvent_2(), and QwMainCerenkovDetector().
|
protected |
Definition at line 184 of file QwMainCerenkovDetector.h.
Referenced by QwMainCerenkovDetector().
|
protected |
Definition at line 180 of file QwMainCerenkovDetector.h.
Referenced by QwMainCerenkovDetector().
|
protected |
Definition at line 182 of file QwMainCerenkovDetector.h.
Referenced by QwMainCerenkovDetector().
|
protected |
Definition at line 181 of file QwMainCerenkovDetector.h.
Referenced by QwMainCerenkovDetector().
|
protected |
Definition at line 183 of file QwMainCerenkovDetector.h.
Referenced by QwMainCerenkovDetector().