QwAnalysis
|
#include <QwBeamLine.h>
Public Member Functions | |
QwBeamLine (const TString &name) | |
Constructor with name. More... | |
QwBeamLine (const QwBeamLine &source) | |
Copy constructor. More... | |
virtual | ~QwBeamLine () |
Virtual destructor. More... | |
void | CopyTemplatedDataElements (const VQwSubsystem *source) |
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... | |
Int_t | LoadGeometryDefinition (TString mapfile) |
Optional geometry definition. More... | |
void | AssignGeometry (QwParameterFile *mapstr, VQwBPM *bpm) |
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... | |
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... | |
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 | PrintDetectorID () const |
void | ClearEventData () |
void | ProcessEvent () |
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 | 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 | Scale (Double_t factor) |
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... | |
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) |
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) |
VQwDataElement * | GetElement (QwBeamDetectorID det_id) |
VQwDataElement * | GetElement (EQwBeamInstrumentType TypeID, TString name) |
VQwDataElement * | GetElement (EQwBeamInstrumentType TypeID, Int_t index) |
const VQwDataElement * | GetElement (EQwBeamInstrumentType TypeID, Int_t index) const |
const VQwHardwareChannel * | GetChannel (EQwBeamInstrumentType TypeID, Int_t index, TString device_prop) const |
VQwBPM * | GetBPMStripline (const TString name) |
VQwBCM * | GetBCM (const TString name) |
VQwClock * | GetClock (const TString name) |
QwBPMCavity * | GetBPMCavity (const TString name) |
VQwBCM * | GetCombinedBCM (const TString name) |
VQwBPM * | GetCombinedBPM (const TString name) |
QwEnergyCalculator * | GetEnergyCalculator (const TString name) |
QwHaloMonitor * | GetScalerChannel (const TString name) |
const QwBPMCavity * | GetBPMCavity (const TString name) const |
const VQwBPM * | GetBPMStripline (const TString name) const |
const VQwBCM * | GetBCM (const TString name) const |
const VQwClock * | GetClock (const TString name) const |
const VQwBCM * | GetCombinedBCM (const TString name) const |
const VQwBPM * | GetCombinedBPM (const TString name) const |
const QwEnergyCalculator * | GetEnergyCalculator (const TString name) const |
const QwHaloMonitor * | GetScalerChannel (const TString name) const |
![]() | |
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 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 |
![]() | |
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 | 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 | ExchangeProcessedData () |
Request processed data from other subsystems for internal use in the second event processing stage. Not all derived classes will require data from other subsystems. More... | |
virtual 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... | |
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... | |
![]() | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. More... | |
![]() | |
virtual | ~MQwCloneable () |
Virtual destructor. More... | |
virtual VQwSubsystem * | Clone () const |
Concrete clone method. More... | |
const VQwFactory< VQwSubsystem > * | Factory () const |
Factory getter. More... | |
![]() | |
virtual | ~VQwCloneable () |
Virtual destructor. More... | |
std::string | GetClassName () const |
Get demangled name of this class. More... | |
Protected Member Functions | |
template<typename TT > | |
Int_t | AddToElementList (std::vector< TT > &elementlist, QwBeamDetectorID &detector_id) |
Adds a new element to a vector of data elements, and returns the index of that element within the array. More... | |
Int_t | GetDetectorIndex (EQwBeamInstrumentType TypeID, TString name) const |
template<> | |
Int_t | AddToElementList (std::vector< VQwClock_ptr > &elementlist, QwBeamDetectorID &detector_id) |
template<> | |
Int_t | AddToElementList (std::vector< VQwBCM_ptr > &elementlist, QwBeamDetectorID &detector_id) |
template<> | |
Int_t | AddToElementList (std::vector< VQwBPM_ptr > &elementlist, QwBeamDetectorID &detector_id) |
![]() | |
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) |
![]() | |
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< VQwBPM_ptr > | fStripline |
std::vector< VQwBPM_ptr > | fBPMCombo |
std::vector< VQwBCM_ptr > | fBCM |
std::vector< VQwBCM_ptr > | fBCMCombo |
std::vector< VQwClock_ptr > | fClock |
std::vector< QwQPD > | fQPD |
std::vector< QwLinearDiodeArray > | fLinearArray |
std::vector< QwBPMCavity > | fCavity |
std::vector< QwHaloMonitor > | fHaloMonitor |
std::vector< QwEnergyCalculator > | fECalculator |
std::vector< QwBeamDetectorID > | fBeamDetectorID |
![]() | |
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... | |
![]() | |
std::vector< TH1_ptr > | fHistograms |
Histograms associated with this data element. More... | |
Private Member Functions | |
QwBeamLine () | |
Private default constructor (not implemented, will throw linker error on use) More... | |
Private Attributes | |
Int_t | fQwBeamLineErrorCount |
Static Private Attributes | |
static const Bool_t | bDEBUG =kFALSE |
Additional Inherited Members | |
![]() | |
static void | DefineOptions () |
Define options function (note: no virtual static functions in C++) More... | |
![]() | |
static VQwSubsystem * | Create (const std::string &name) |
Object creation. More... | |
static QwBeamLine * | Cast (QwBeamLine *type) |
Object dynamic cast. More... | |
Definition at line 38 of file QwBeamLine.h.
|
private |
Private default constructor (not implemented, will throw linker error on use)
|
inline |
Constructor with name.
Definition at line 46 of file QwBeamLine.h.
|
inline |
Copy constructor.
Definition at line 50 of file QwBeamLine.h.
References CopyTemplatedDataElements().
|
inlinevirtual |
|
virtual |
Update the running sums for devices.
Implements VQwSubsystemParity.
Definition at line 2173 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
protected |
Definition at line 36 of file QwBeamLine.cc.
References VQwClock::Create(), and kQwClock.
|
protected |
Definition at line 51 of file QwBeamLine.cc.
References VQwBCM::Create(), and kQwBCM.
|
protected |
Definition at line 66 of file QwBeamLine.cc.
References VQwBPM::CreateStripline(), and kQwBPMStripline.
|
protected |
Adds a new element to a vector of data elements, and returns the index of that element within the array.
Definition at line 82 of file QwBeamLine.cc.
References QwBeamDetectorID::fdetectorname, QwBeamDetectorID::fIndex, and VQwSubsystem::GetSubsystemName().
Referenced by LoadChannelMap().
|
virtual |
Apply the single event cuts.
Implements VQwSubsystemParity.
Definition at line 1172 of file QwBeamLine.cc.
References bDEBUG, fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, fQwBeamLineErrorCount, and fStripline.
void QwBeamLine::AssignGeometry | ( | QwParameterFile * | mapstr, |
VQwBPM * | bpm | ||
) |
Definition at line 776 of file QwBeamLine.cc.
References QwParameterFile::GetTypedNextToken(), VQwBPM::SetGains(), VQwBPM::SetRotation(), and VQwBPM::SetRotationOff().
Referenced by LoadGeometryDefinition().
|
virtual |
Calculate the average for all good events.
Implements VQwSubsystemParity.
Definition at line 2131 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Implements VQwSubsystem.
Definition at line 1593 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
Bool_t QwBeamLine::Compare | ( | VQwSubsystem * | source | ) |
Definition at line 2233 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
Referenced by AccumulateRunningSum(), DeaccumulateRunningSum(), Difference(), operator+=(), operator-=(), operator=(), Ratio(), Sum(), and UpdateErrorFlag().
|
virtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 2378 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
Referenced by ConstructBranch().
|
virtual |
Construct the branch and tree vector based on the trim file.
Implements VQwSubsystem.
Definition at line 2406 of file QwBeamLine.cc.
References ConstructBranch(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, QwParameterFile::FileHasModuleHeader(), fLinearArray, fQPD, fStripline, QwParameterFile::ReadUntilNextModule(), and QwParameterFile::RewindToFileStart().
|
virtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 2350 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Construct the histograms for this subsystem in a folder with a prefix.
Implements VQwSubsystem.
Definition at line 2285 of file QwBeamLine.cc.
References VQwSubsystem::ConstructHistograms(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
void QwBeamLine::CopyTemplatedDataElements | ( | const VQwSubsystem * | source | ) |
Definition at line 2566 of file QwBeamLine.cc.
References VQwClock::Create(), VQwBCM::Create(), VQwBCM::CreateCombo(), VQwBPM::CreateCombo(), VQwBPM::CreateStripline(), fBCM, fBCMCombo, fBPMCombo, fClock, and fStripline.
Referenced by QwBeamLine().
|
virtual |
remove one entry from the running sums for devices
Implements VQwSubsystemParity.
Definition at line 2203 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 2062 of file QwBeamLine.cc.
References Compare().
|
virtual |
Reimplemented from VQwSubsystem.
Definition at line 1006 of file QwBeamLine.cc.
References fBCM, fBeamDetectorID, VQwSubsystem::fCurrentBank_ID, VQwSubsystem::fCurrentROC_ID, fStripline, kQwBCM, and kQwBPMStripline.
|
virtual |
Fill the database.
try to access BPM mean and its error
try to access CombinedBPM means and errors
try to access CombinedBCM means and errors
try to access Energy Calculator mean and its error
try to access QPD mean and its error
try to access LinearArray mean and its error
try to access cavity bpm mean and its error
Reimplemented from VQwSubsystemParity.
Definition at line 2602 of file QwBeamLine.cc.
References QwDatabase::Connect(), QwDBInterface::DetermineMeasurementTypeID(), QwDatabase::Disconnect(), QwLog::endl(), fBCM, fBCMCombo, fBPMCombo, fCavity, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, QwParityDB::GetAnalysisID(), Qw::kBoldRed, Qw::kGreen, Qw::kNormal, QwDatabase::Query(), and QwMessage.
|
virtual |
try to access BPM mean and its error
try to access CombinedBCM means and errors
try to access Energy Calculator mean and its error
try to access QPD mean and its error
try to access LinearArray mean and its error
try to access cavity bpm mean and its error
Reimplemented from VQwSubsystemParity.
Definition at line 2830 of file QwBeamLine.cc.
References QwDatabase::Connect(), QwDatabase::Disconnect(), QwLog::endl(), fBCM, fBCMCombo, fBPMCombo, fCavity, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, QwParityDB::GetAnalysisID(), Qw::kBoldRed, Qw::kGreen, Qw::kNormal, QwDatabase::Query(), and QwMessage.
|
virtual |
Fill the histograms for this subsystem.
Implements VQwSubsystem.
Definition at line 2322 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Fill the tree vector.
Implements VQwSubsystem.
Definition at line 2502 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
VQwBCM * QwBeamLine::GetBCM | ( | const TString | name | ) |
Definition at line 1776 of file QwBeamLine.cc.
References fBCM.
Referenced by GetBCM(), and main().
const VQwBCM * QwBeamLine::GetBCM | ( | const TString | name | ) | const |
Definition at line 1886 of file QwBeamLine.cc.
References GetBCM().
QwBPMCavity * QwBeamLine::GetBPMCavity | ( | const TString | name | ) |
Definition at line 1762 of file QwBeamLine.cc.
References fCavity.
Referenced by GetBPMCavity().
const QwBPMCavity * QwBeamLine::GetBPMCavity | ( | const TString | name | ) | const |
Definition at line 1880 of file QwBeamLine.cc.
References GetBPMCavity().
VQwBPM * QwBeamLine::GetBPMStripline | ( | const TString | name | ) |
Definition at line 1748 of file QwBeamLine.cc.
References fStripline.
Referenced by GetBPMStripline(), and main().
const VQwBPM * QwBeamLine::GetBPMStripline | ( | const TString | name | ) | const |
Definition at line 1860 of file QwBeamLine.cc.
References GetBPMStripline().
const VQwHardwareChannel * QwBeamLine::GetChannel | ( | EQwBeamInstrumentType | TypeID, |
Int_t | index, | ||
TString | device_prop | ||
) | const |
TODO: QwBeamLine::GetChannel How do we access linear array channel outputs?
Definition at line 1703 of file QwBeamLine.cc.
References fBPMCombo, fClock, fECalculator, fHaloMonitor, VQwBPM::GetEffectiveCharge(), GetElement(), VQwBPM::GetPosition(), GetQwBeamInstrumentTypeName(), VQwSubsystem::GetSubsystemName(), kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwClock, kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwLinearArray, kQwQPD, VQwBPM::kXAxis, and VQwBPM::kYAxis.
Referenced by PublishByRequest(), and PublishInternalValues().
VQwClock * QwBeamLine::GetClock | ( | const TString | name | ) |
Definition at line 1794 of file QwBeamLine.cc.
References fClock.
Referenced by GetClock().
const VQwClock * QwBeamLine::GetClock | ( | const TString | name | ) | const |
Definition at line 1892 of file QwBeamLine.cc.
References GetClock().
VQwBCM * QwBeamLine::GetCombinedBCM | ( | const TString | name | ) |
Definition at line 1811 of file QwBeamLine.cc.
References fBCMCombo.
Referenced by GetCombinedBCM().
const VQwBCM * QwBeamLine::GetCombinedBCM | ( | const TString | name | ) | const |
Definition at line 1898 of file QwBeamLine.cc.
References GetCombinedBCM().
VQwBPM * QwBeamLine::GetCombinedBPM | ( | const TString | name | ) |
Definition at line 1828 of file QwBeamLine.cc.
References fBPMCombo.
Referenced by GetCombinedBPM().
const VQwBPM * QwBeamLine::GetCombinedBPM | ( | const TString | name | ) | const |
Definition at line 1903 of file QwBeamLine.cc.
References GetCombinedBPM().
|
protected |
Definition at line 1620 of file QwBeamLine.cc.
References fBeamDetectorID.
Referenced by GetElement(), LoadChannelMap(), LoadEventCuts(), LoadGeometryDefinition(), and PublishInternalValues().
VQwDataElement * QwBeamLine::GetElement | ( | QwBeamDetectorID | det_id | ) |
Definition at line 1643 of file QwBeamLine.cc.
References QwBeamDetectorID::fIndex, and QwBeamDetectorID::fTypeID.
Referenced by GetChannel(), GetElement(), and LoadChannelMap().
VQwDataElement * QwBeamLine::GetElement | ( | EQwBeamInstrumentType | TypeID, |
TString | name | ||
) |
Definition at line 1648 of file QwBeamLine.cc.
References GetDetectorIndex(), and GetElement().
VQwDataElement * QwBeamLine::GetElement | ( | EQwBeamInstrumentType | TypeID, |
Int_t | index | ||
) |
Definition at line 1654 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, GetQwBeamInstrumentTypeName(), VQwSubsystem::GetSubsystemName(), kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwClock, kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwLinearArray, and kQwQPD.
const VQwDataElement * QwBeamLine::GetElement | ( | EQwBeamInstrumentType | TypeID, |
Int_t | index | ||
) | const |
Definition at line 1698 of file QwBeamLine.cc.
References GetElement().
QwEnergyCalculator * QwBeamLine::GetEnergyCalculator | ( | const TString | name | ) |
Definition at line 1845 of file QwBeamLine.cc.
References fECalculator.
Referenced by GetEnergyCalculator().
const QwEnergyCalculator * QwBeamLine::GetEnergyCalculator | ( | const TString | name | ) | const |
Definition at line 1908 of file QwBeamLine.cc.
References GetEnergyCalculator().
|
virtual |
Return the error flag to the top level routines related to stability checks and ErrorFlag updates.
Implements VQwSubsystemParity.
Definition at line 1332 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fECalculator, fLinearArray, fQPD, and fStripline.
QwHaloMonitor * QwBeamLine::GetScalerChannel | ( | const TString | name | ) |
Definition at line 1865 of file QwBeamLine.cc.
References fHaloMonitor.
Referenced by GetScalerChannel().
const QwHaloMonitor * QwBeamLine::GetScalerChannel | ( | const TString | name | ) | const |
Definition at line 1913 of file QwBeamLine.cc.
References GetScalerChannel().
|
virtual |
Increment the error counters.
Implements VQwSubsystemParity.
Definition at line 1297 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Mandatory map file definition.
Implements VQwSubsystem.
Definition at line 94 of file QwBeamLine.cc.
References AddToElementList(), VQwBCM::CreateCombo(), VQwBPM::CreateCombo(), QwLog::endl(), fBCM, fBCMCombo, fBeamDetectorID, fBPMCombo, fCavity, fClock, VQwSubsystem::fDetectorMaps, QwBeamDetectorID::fdetectorname, fECalculator, fHaloMonitor, QwBeamDetectorID::fIndex, fLinearArray, VQwSubsystem::fPublishList, fQPD, fStripline, QwBeamDetectorID::fTypeID, GetDetectorIndex(), GetElement(), VQwDataElement::GetElementName(), VQwDataElement::GetExternalClockName(), GetQwBeamInstrumentType(), VQwSubsystem::GetSubbankIndex(), VQwSubsystem::GetSubsystemName(), QwParameterFile::GetTypedNextToken(), kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwClock, kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwLinearArray, kQwQPD, kQwUnknownDeviceType, VQwDataElement::LoadChannelParameters(), VQwDataElement::NeedsExternalClock(), QwDebug, QwError, QwMessage, QwWarning, QwParameterFile::ReadNextLine(), QwParameterFile::ReadNextSection(), VQwSubsystem::RegisterROCNumber(), VQwSubsystem::RegisterSubbank(), QwBeamDetectorID::ReportInitErrors(), VQwDataElement::SetExternalClockPtr(), QwParameterFile::TrimComment(), and QwParameterFile::TrimWhitespace().
|
virtual |
Load the event cuts file.
Implements VQwSubsystemParity.
Definition at line 425 of file QwBeamLine.cc.
References QwLog::endl(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, VQwSubsystem::fDetectorMaps, fECalculator, fHaloMonitor, fLinearArray, fQPD, fQwBeamLineErrorCount, fStripline, GetDetectorIndex(), GetGlobalErrorFlag(), GetQwBeamInstrumentType(), GetQwBeamInstrumentTypeName(), QwParameterFile::GetUInt(), kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwLinearArray, kQwQPD, QwMessage, and QwWarning.
|
virtual |
Optional geometry definition.
Reimplemented from VQwSubsystem.
Definition at line 597 of file QwBeamLine.cc.
References AssignGeometry(), QwLog::endl(), fBPMCombo, fCavity, VQwSubsystem::fDetectorMaps, fQPD, fStripline, GetDetectorIndex(), VQwBPM::GetElectronicFactors(), GetQwBeamInstrumentType(), VQwBPM::GetSurveyOffsets(), kQwBPMCavity, kQwBPMStripline, kQwCombinedBPM, kQwQPD, kQwUnknownDeviceType, QwError, and QwWarning.
|
virtual |
Mandatory parameter file definition.
Implements VQwSubsystem.
Definition at line 821 of file QwBeamLine.cc.
References fBCM, fCavity, fClock, VQwSubsystem::fDetectorMaps, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 1964 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, VQwSubsystem::fPublishList, fQPD, and fStripline.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 2007 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, VQwSubsystem::fPublishList, fQPD, and fStripline.
|
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 1919 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, VQwSubsystem::fPublishList, fQPD, and fStripline.
void QwBeamLine::PrintDetectorID | ( | ) | const |
Definition at line 2552 of file QwBeamLine.cc.
References fBeamDetectorID.
|
virtual |
Report the number of events failed due to HW and event cut failures.
Implements VQwSubsystemParity.
Definition at line 1249 of file QwBeamLine.cc.
References QwLog::endl(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, QwVQWK_Channel::PrintErrorCounterHead(), QwVQWK_Channel::PrintErrorCounterTail(), and QwMessage.
|
virtual |
Print some information about the subsystem.
Reimplemented from VQwSubsystem.
Definition at line 2529 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, and VQwSubsystem::fSystemName.
|
virtual |
Print values of all channels.
Reimplemented from VQwSubsystemParity.
Definition at line 2146 of file QwBeamLine.cc.
References QwLog::endl(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, VQwSubsystem::GetSubsystemName(), and QwMessage.
|
virtual |
Implements VQwSubsystem.
Definition at line 1480 of file QwBeamLine.cc.
|
virtual |
TODO: The non-event-type-aware ProcessEvBuffer routine should be replaced with the event-type-aware version.
Implements VQwSubsystem.
Definition at line 1048 of file QwBeamLine.cc.
References fBCM, fBeamDetectorID, fCavity, fClock, fHaloMonitor, fLinearArray, fQPD, fStripline, VQwSubsystem::GetSubbankIndex(), kQwBCM, kQwBPMCavity, kQwBPMStripline, kQwClock, kQwHaloMonitor, kQwLinearArray, and kQwQPD.
|
virtual |
Implements VQwSubsystem.
Definition at line 1440 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Process the command line options.
Reimplemented from VQwSubsystem.
Definition at line 30 of file QwBeamLine.cc.
|
virtual |
Try to publish an internal variable matching the submitted name.
Reimplemented from VQwSubsystem.
Definition at line 1538 of file QwBeamLine.cc.
References fBeamDetectorID, VQwSubsystem::fPublishList, GetChannel(), GetQwBeamInstrumentTypeName(), and VQwSubsystem::PublishInternalValue().
|
virtual |
Publish all variables of the subsystem.
Reimplemented from VQwSubsystem.
Definition at line 1487 of file QwBeamLine.cc.
References QwLog::endl(), VQwSubsystem::fPublishList, GetChannel(), GetDetectorIndex(), GetQwBeamInstrumentType(), kQwCombinedBCM, kQwCombinedBPM, kQwEnergyCalculator, kQwHaloMonitor, kQwUnknownDeviceType, VQwSubsystem::PublishInternalValue(), QwDebug, and QwError.
|
virtual |
Reimplemented from VQwSubsystem.
Definition at line 986 of file QwBeamLine.cc.
References fBCM, fCavity, and fStripline.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 2073 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 2115 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fClock, fECalculator, fHaloMonitor, fLinearArray, fQPD, and fStripline.
|
virtual |
Implements VQwSubsystemParity.
Definition at line 2051 of file QwBeamLine.cc.
References Compare().
|
virtual |
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.
Reimplemented from VQwSubsystemParity.
Definition at line 1367 of file QwBeamLine.cc.
References fBCM, fBCMCombo, fBPMCombo, fCavity, fECalculator, fLinearArray, fQPD, and fStripline.
Referenced by UpdateErrorFlag().
|
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 1402 of file QwBeamLine.cc.
References Compare(), fBCM, fBCMCombo, fBPMCombo, fCavity, fECalculator, fHaloMonitor, fLinearArray, fQPD, fStripline, and UpdateErrorFlag().
|
virtual |
Reimplemented from VQwSubsystemParity.
Definition at line 2995 of file QwBeamLine.cc.
References fBCM, QwPromptSummary::FillDoubleDifference(), and PromptSummaryElement::Set().
|
staticprivate |
Definition at line 192 of file QwBeamLine.h.
Referenced by ApplySingleEventCuts().
|
protected |
Definition at line 172 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), CopyTemplatedDataElements(), DeaccumulateRunningSum(), EncodeEventData(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetBCM(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), RandomizeEventData(), Ratio(), Scale(), UpdateErrorFlag(), and WritePromptSummary().
|
protected |
Definition at line 173 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), CopyTemplatedDataElements(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetCombinedBCM(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 184 of file QwBeamLine.h.
Referenced by EncodeEventData(), GetDetectorIndex(), LoadChannelMap(), PrintDetectorID(), ProcessEvBuffer(), and PublishByRequest().
|
protected |
Definition at line 170 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), CopyTemplatedDataElements(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetChannel(), GetCombinedBPM(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadGeometryDefinition(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 179 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetBPMCavity(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadGeometryDefinition(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), RandomizeEventData(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 175 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), CopyTemplatedDataElements(), FillHistograms(), FillTreeVector(), GetChannel(), GetClock(), GetElement(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), Ratio(), and Scale().
|
protected |
Definition at line 183 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetChannel(), GetElement(), GetEnergyCalculator(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 180 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetChannel(), GetElement(), GetScalerChannel(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 178 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
protected |
Definition at line 177 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadGeometryDefinition(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), Ratio(), Scale(), and UpdateErrorFlag().
|
private |
Definition at line 189 of file QwBeamLine.h.
Referenced by ApplySingleEventCuts(), and LoadEventCuts().
|
protected |
Definition at line 169 of file QwBeamLine.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), Compare(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), CopyTemplatedDataElements(), DeaccumulateRunningSum(), EncodeEventData(), FillDB(), FillErrDB(), FillHistograms(), FillTreeVector(), GetBPMStripline(), GetElement(), GetEventcutErrorFlag(), IncrementErrorCounters(), LoadChannelMap(), LoadEventCuts(), LoadGeometryDefinition(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), RandomizeEventData(), Ratio(), Scale(), and UpdateErrorFlag().