QwAnalysis
|
#include <QwHaloMonitor.h>
Public Member Functions | |
QwHaloMonitor () | |
QwHaloMonitor (TString name) | |
QwHaloMonitor (TString subsystemname, TString name) | |
QwHaloMonitor (const QwHaloMonitor &source) | |
virtual | ~QwHaloMonitor () |
void | InitializeChannel (TString name) |
void | InitializeChannel (TString subsystem, TString name) |
void | ClearEventData () |
Clear the event data in this element. More... | |
void | LoadChannelParameters (QwParameterFile ¶mfile) |
std::string | GetExternalClockName () |
Bool_t | NeedsExternalClock () |
void | SetExternalClockPtr (const VQwHardwareChannel *clock) |
void | SetExternalClockName (const std::string name) |
Double_t | GetNormClockValue () |
void | PrintErrorCounters () |
void | UpdateHWErrorCount () |
Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t num_words_left, UInt_t index=0) |
Process the CODA event buffer for this element. More... | |
void | ProcessEvent () |
QwHaloMonitor & | operator= (const QwHaloMonitor &value) |
QwHaloMonitor & | operator+= (const QwHaloMonitor &value) |
QwHaloMonitor & | operator-= (const QwHaloMonitor &value) |
void | Sum (QwHaloMonitor &value1, QwHaloMonitor &value2) |
void | Difference (QwHaloMonitor &value1, QwHaloMonitor &value2) |
void | Ratio (QwHaloMonitor &numer, QwHaloMonitor &denom) |
void | Offset (Double_t Offset) |
void | Scale (Double_t Offset) |
void | SetPedestal (Double_t ped) |
void | SetCalibrationFactor (Double_t factor) |
void | AccumulateRunningSum (const QwHaloMonitor &value) |
void | DeaccumulateRunningSum (QwHaloMonitor &value) |
void | CalculateRunningAverage () |
Bool_t | ApplySingleEventCuts () |
void | IncrementErrorCounters () |
UInt_t | GetEventcutErrorFlag () |
return the error flag on this channel/device More... | |
UInt_t | UpdateErrorFlag () |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag". More... | |
void | UpdateErrorFlag (const QwHaloMonitor *ev_error) |
void | PrintErrorCounters () const |
report number of events failed due to HW and event cut failure More... | |
Bool_t | ApplyHWChecks () |
void | SetSingleEventCuts (UInt_t errorflag, Double_t min, Double_t max, Double_t stability) |
set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel More... | |
void | SetEventCutMode (Int_t bcuts) |
void | ConstructHistograms (TDirectory *folder, TString &prefix) |
Construct the histograms for this data element. More... | |
void | FillHistograms () |
Fill the histograms for this data element. More... | |
void | ConstructBranchAndVector (TTree *tree, TString &prefix, std::vector< Double_t > &values) |
void | ConstructBranch (TTree *tree, TString &prefix) |
void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist) |
void | FillTreeVector (std::vector< Double_t > &values) const |
VQwHardwareChannel * | GetScaler () |
const VQwHardwareChannel * | GetScaler () const |
Double_t | GetValue () |
void | PrintValue () const |
Print single line of value and error of this data element. More... | |
void | PrintInfo () const |
Print multiple lines of information about this data element. More... | |
std::vector< QwDBInterface > | GetDBEntry () |
std::vector< QwErrDBInterface > | GetErrDBEntry () |
Public Member Functions inherited from VQwDataElement | |
VQwDataElement () | |
Default constructor. More... | |
VQwDataElement (const VQwDataElement &value) | |
Copy constructor. More... | |
virtual | ~VQwDataElement () |
Virtual destructor. More... | |
Bool_t | IsNameEmpty () const |
Is the name of this element empty? More... | |
void | SetElementName (const TString &name) |
Set the name of this element. More... | |
virtual const TString & | GetElementName () const |
Get the name of this element. More... | |
size_t | GetNumberOfDataWords () |
Get the number of data words in this data element. More... | |
UInt_t | GetGoodEventCount () const |
virtual void | AssignValueFrom (const VQwDataElement *valueptr) |
virtual VQwDataElement & | operator+= (const VQwDataElement &value) |
Addition-assignment operator. More... | |
virtual VQwDataElement & | operator-= (const VQwDataElement &value) |
Subtraction-assignment operator. More... | |
virtual void | Sum (const VQwDataElement &value1, const VQwDataElement &value2) |
Sum operator. More... | |
virtual void | Difference (const VQwDataElement &value1, const VQwDataElement &value2) |
Difference operator. More... | |
virtual void | Ratio (const VQwDataElement &numer, const VQwDataElement &denom) |
Ratio operator. More... | |
virtual void | SetNeedsExternalClock (Bool_t needed) |
TString | GetSubsystemName () const |
Return the name of the inheriting subsystem name. More... | |
void | SetSubsystemName (TString sysname) |
Set the name of the inheriting subsystem name. More... | |
TString | GetModuleType () const |
Return the type of the beam instrument. More... | |
void | SetModuleType (TString ModuleType) |
set the type of the beam instrument More... | |
Public Member Functions inherited from MQwHistograms | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. More... | |
Private Attributes | |
QwSIS3801D24_Channel | fHalo_Counter |
Int_t | fDeviceErrorCode |
Bool_t | bEVENTCUTMODE |
Static Private Attributes | |
static const Bool_t | kDEBUG |
Additional Inherited Members | |
Public Types inherited from VQwDataElement | |
enum | EDataToSave { kRaw = 0, kDerived } |
Protected Member Functions inherited from VQwDataElement | |
void | SetNumberOfDataWords (const UInt_t &numwords) |
Set the number of data words in this data element. More... | |
virtual VQwDataElement & | operator= (const VQwDataElement &value) |
Arithmetic assignment operator: Should only copy event-based data. More... | |
virtual void | UpdateErrorFlag (const UInt_t &error) |
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 inherited from VQwDataElement | |
TString | fElementName |
Name of this data element. More... | |
UInt_t | fNumberOfDataWords |
Number of raw data words in this data element. More... | |
Int_t | fGoodEventCount |
Number of good events accumulated in this element. More... | |
TString | fSubsystemName |
TString | fModuleType |
UInt_t | fErrorFlag |
This the standard error code generated for the channel that contains the global/local/stability flags and the Device error code (Unique error code for HW failures) More... | |
UInt_t | fErrorConfigFlag |
contains the global/local/stability flags More... | |
Protected Attributes inherited from MQwHistograms | |
std::vector< TH1_ptr > | fHistograms |
Histograms associated with this data element. More... | |
Definition at line 31 of file QwHaloMonitor.h.
|
inline |
Definition at line 35 of file QwHaloMonitor.h.
|
inline |
Definition at line 36 of file QwHaloMonitor.h.
References InitializeChannel().
|
inline |
Definition at line 39 of file QwHaloMonitor.h.
References InitializeChannel().
|
inline |
Definition at line 42 of file QwHaloMonitor.h.
|
inlinevirtual |
Definition at line 46 of file QwHaloMonitor.h.
void QwHaloMonitor::AccumulateRunningSum | ( | const QwHaloMonitor & | value | ) |
Bool_t QwHaloMonitor::ApplyHWChecks | ( | ) |
Definition at line 43 of file QwHaloMonitor.cc.
Bool_t QwHaloMonitor::ApplySingleEventCuts | ( | ) |
void QwHaloMonitor::CalculateRunningAverage | ( | ) |
|
virtual |
Clear the event data in this element.
Reimplemented from VQwDataElement.
Definition at line 26 of file QwHaloMonitor.cc.
References fHalo_Counter.
void QwHaloMonitor::ConstructBranch | ( | TTree * | tree, |
TString & | prefix | ||
) |
Definition at line 165 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
void QwHaloMonitor::ConstructBranch | ( | TTree * | tree, |
TString & | prefix, | ||
QwParameterFile & | modulelist | ||
) |
Definition at line 178 of file QwHaloMonitor.cc.
References QwLog::endl(), fHalo_Counter, VQwDataElement::GetElementName(), QwParameterFile::HasValue(), and QwMessage.
void QwHaloMonitor::ConstructBranchAndVector | ( | TTree * | tree, |
TString & | prefix, | ||
std::vector< Double_t > & | values | ||
) |
Definition at line 154 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
|
virtual |
Construct the histograms for this data element.
Implements VQwDataElement.
Definition at line 134 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
void QwHaloMonitor::DeaccumulateRunningSum | ( | QwHaloMonitor & | value | ) |
Definition at line 114 of file QwHaloMonitor.cc.
void QwHaloMonitor::Difference | ( | QwHaloMonitor & | value1, |
QwHaloMonitor & | value2 | ||
) |
Definition at line 92 of file QwHaloMonitor.cc.
|
virtual |
Fill the histograms for this data element.
Implements VQwDataElement.
Definition at line 144 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
void QwHaloMonitor::FillTreeVector | ( | std::vector< Double_t > & | values | ) | const |
Definition at line 200 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
std::vector< QwDBInterface > QwHaloMonitor::GetDBEntry | ( | ) |
std::vector< QwErrDBInterface > QwHaloMonitor::GetErrDBEntry | ( | ) |
|
inlinevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 87 of file QwHaloMonitor.h.
References fHalo_Counter.
Referenced by UpdateErrorFlag().
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 56 of file QwHaloMonitor.h.
References fHalo_Counter.
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 60 of file QwHaloMonitor.h.
References fHalo_Counter.
|
inline |
Definition at line 112 of file QwHaloMonitor.h.
References fHalo_Counter.
Referenced by GetScaler().
|
inline |
Definition at line 116 of file QwHaloMonitor.h.
References GetScaler().
|
inline |
|
inline |
void QwHaloMonitor::InitializeChannel | ( | TString | name | ) |
Definition at line 21 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::SetElementName().
Referenced by QwHaloMonitor().
void QwHaloMonitor::InitializeChannel | ( | TString | subsystem, |
TString | name | ||
) |
Definition at line 16 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::SetElementName().
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 53 of file QwHaloMonitor.h.
References fHalo_Counter.
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 57 of file QwHaloMonitor.h.
References fHalo_Counter.
void QwHaloMonitor::Offset | ( | Double_t | Offset | ) |
QwHaloMonitor & QwHaloMonitor::operator+= | ( | const QwHaloMonitor & | value | ) |
Definition at line 70 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
QwHaloMonitor & QwHaloMonitor::operator-= | ( | const QwHaloMonitor & | value | ) |
Definition at line 78 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
QwHaloMonitor & QwHaloMonitor::operator= | ( | const QwHaloMonitor & | value | ) |
Definition at line 62 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
void QwHaloMonitor::PrintErrorCounters | ( | ) |
|
virtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
Definition at line 56 of file QwHaloMonitor.cc.
References fHalo_Counter.
|
virtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
Definition at line 128 of file QwHaloMonitor.cc.
References fHalo_Counter.
|
virtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
Definition at line 123 of file QwHaloMonitor.cc.
References fHalo_Counter.
|
virtual |
Process the CODA event buffer for this element.
Implements VQwDataElement.
Definition at line 37 of file QwHaloMonitor.cc.
References fHalo_Counter.
void QwHaloMonitor::ProcessEvent | ( | ) |
void QwHaloMonitor::Ratio | ( | QwHaloMonitor & | numer, |
QwHaloMonitor & | denom | ||
) |
Definition at line 97 of file QwHaloMonitor.cc.
References fHalo_Counter, and VQwDataElement::GetElementName().
void QwHaloMonitor::Scale | ( | Double_t | Offset | ) |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 59 of file QwHaloMonitor.h.
References fHalo_Counter.
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 58 of file QwHaloMonitor.h.
References fHalo_Counter.
|
inline |
|
inlinevirtual |
set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel
Reimplemented from VQwDataElement.
Definition at line 96 of file QwHaloMonitor.h.
References fHalo_Counter.
void QwHaloMonitor::Sum | ( | QwHaloMonitor & | value1, |
QwHaloMonitor & | value2 | ||
) |
Definition at line 87 of file QwHaloMonitor.cc.
|
inlinevirtual |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag".
Reimplemented from VQwDataElement.
Definition at line 89 of file QwHaloMonitor.h.
References GetEventcutErrorFlag().
|
inline |
void QwHaloMonitor::UpdateHWErrorCount | ( | ) |
|
private |
Definition at line 138 of file QwHaloMonitor.h.
|
private |
Definition at line 137 of file QwHaloMonitor.h.
|
private |
Definition at line 135 of file QwHaloMonitor.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), ClearEventData(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), FillHistograms(), FillTreeVector(), GetDBEntry(), GetErrDBEntry(), GetEventcutErrorFlag(), GetExternalClockName(), GetNormClockValue(), GetScaler(), GetValue(), IncrementErrorCounters(), InitializeChannel(), LoadChannelParameters(), NeedsExternalClock(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), Ratio(), Scale(), SetCalibrationFactor(), SetEventCutMode(), SetExternalClockName(), SetExternalClockPtr(), SetPedestal(), SetSingleEventCuts(), and UpdateErrorFlag().
|
staticprivate |
Definition at line 133 of file QwHaloMonitor.h.