QwAnalysis
|
#include <QwBCM.h>
Public Member Functions | |
QwCombinedBCM () | |
QwCombinedBCM (TString name) | |
QwCombinedBCM (TString subsystem, TString name) | |
QwCombinedBCM (TString subsystemname, TString name, TString type) | |
QwCombinedBCM (const QwCombinedBCM &source) | |
virtual | ~QwCombinedBCM () |
void | SetBCMForCombo (VQwBCM *bcm, Double_t weight, Double_t sumqw) |
Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0) |
Process the CODA event buffer for this element. More... | |
void | InitializeChannel (TString name, TString datatosave) |
void | InitializeChannel (TString subsystem, TString name, TString datatosave) |
void | InitializeChannel (TString subsystem, TString name, TString type, TString datatosave) |
void | ProcessEvent () |
Bool_t | ApplyHWChecks () |
Bool_t | ApplySingleEventCuts () |
UInt_t | UpdateErrorFlag () |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag". More... | |
VQwBCM & | operator= (const VQwBCM &value) |
QwCombinedBCM & | operator= (const QwCombinedBCM &value) |
void | SetPedestal (Double_t ped) |
void | SetCalibrationFactor (Double_t calib) |
VQwHardwareChannel * | GetCharge () |
const VQwHardwareChannel * | GetCharge () const |
Public Member Functions inherited from QwBCM< T > | |
QwBCM () | |
QwBCM (TString name) | |
QwBCM (TString subsystemname, TString name) | |
QwBCM (TString subsystemname, TString name, TString type, TString clock="") | |
QwBCM (const QwBCM &source) | |
virtual | ~QwBCM () |
void | InitializeChannel (TString subsystem, TString name, TString type, TString datatosave) |
void | ClearEventData () |
Clear the event data in this element. More... | |
void | LoadChannelParameters (QwParameterFile ¶mfile) |
void | SetRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
void | AddRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
void | SetRandomEventAsymmetry (Double_t asymmetry) |
void | RandomizeEventData (int helicity=0, double time=0) |
void | EncodeEventData (std::vector< UInt_t > &buffer) |
void | UseExternalRandomVariable () |
void | SetExternalRandomVariable (Double_t random_variable) |
Bool_t | ApplyHWChecks () |
void | IncrementErrorCounters () |
void | PrintErrorCounters () const |
report number of events failed due to HW and event cut failure More... | |
UInt_t | GetEventcutErrorFlag () |
return the error flag on this channel/device More... | |
void | UpdateErrorFlag (const VQwBCM *ev_error) |
UInt_t | GetErrorCode () const |
Int_t | SetSingleEventCuts (Double_t mean=0, Double_t sigma=0) |
void | SetSingleEventCuts (UInt_t errorflag, Double_t min=0, Double_t max=0, Double_t stability=0) |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel. More... | |
void | SetDefaultSampleSize (Int_t sample_size) |
void | SetEventCutMode (Int_t bcuts) |
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::string | GetExternalClockName () |
Bool_t | NeedsExternalClock () |
void | SetExternalClockPtr (const VQwHardwareChannel *clock) |
void | SetExternalClockName (const std::string name) |
Double_t | GetNormClockValue () |
VQwBCM & | operator+= (const VQwBCM &value) |
VQwBCM & | operator-= (const VQwBCM &value) |
QwBCM & | operator= (const QwBCM &value) |
QwBCM & | operator+= (const QwBCM &value) |
QwBCM & | operator-= (const QwBCM &value) |
void | Sum (QwBCM &value1, QwBCM &value2) |
void | Difference (QwBCM &value1, QwBCM &value2) |
void | Ratio (const VQwBCM &numer, const VQwBCM &denom) |
void | Ratio (const QwBCM &numer, const QwBCM &denom) |
void | Scale (Double_t factor) |
void | AccumulateRunningSum (const VQwBCM &value) |
void | DeaccumulateRunningSum (VQwBCM &value) |
void | CalculateRunningAverage () |
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 |
std::vector< QwDBInterface > | GetDBEntry () |
std::vector< QwErrDBInterface > | GetErrDBEntry () |
Double_t | GetValue () |
Double_t | GetValueError () |
Double_t | GetValueWidth () |
Public Member Functions inherited from VQwBCM | |
virtual | ~VQwBCM () |
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 | |
std::vector< QwBCM< T > * > | fElement |
std::vector< Double_t > | fWeights |
Double_t | fSumQweights |
Additional Inherited Members | |
Public Types inherited from VQwDataElement | |
enum | EDataToSave { kRaw = 0, kDerived } |
Static Public Member Functions inherited from VQwBCM | |
static VQwBCM * | Create (TString subsystemname, TString type, TString name, TString clock="") |
A fast way of creating a BCM of specified type. More... | |
static VQwBCM * | Create (const VQwBCM &source) |
static VQwBCM * | CreateCombo (TString subsystemname, TString type, TString name) |
A fast way of creating a combo BCM of specified type. More... | |
static VQwBCM * | CreateCombo (const VQwBCM &source) |
Protected Member Functions inherited from VQwBCM | |
VQwBCM (VQwDataElement &beamcurrent) | |
VQwBCM (VQwDataElement &beamcurrent, TString name) | |
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 QwBCM< T > | |
T | fBeamCurrent |
Protected Attributes inherited from VQwBCM | |
VQwDataElement & | fBeamCurrent_ref |
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... | |
|
inline |
Definition at line 37 of file QwCombinedBCM.h.
|
inline |
Definition at line 38 of file QwCombinedBCM.h.
References QwCombinedBCM< T >::InitializeChannel().
|
inline |
Definition at line 41 of file QwCombinedBCM.h.
References QwCombinedBCM< T >::InitializeChannel().
|
inline |
Definition at line 44 of file QwCombinedBCM.h.
References QwCombinedBCM< T >::InitializeChannel(), and VQwDataElement::SetSubsystemName().
|
inline |
Definition at line 48 of file QwCombinedBCM.h.
|
inlinevirtual |
Definition at line 51 of file QwCombinedBCM.h.
|
inline |
Definition at line 67 of file QwCombinedBCM.h.
|
virtual |
Reimplemented from QwBCM< T >.
Definition at line 97 of file QwCombinedBCM.cc.
References QwBCM< T >::ApplySingleEventCuts().
|
inline |
Definition at line 92 of file QwCombinedBCM.h.
References QwBCM< T >::fBeamCurrent.
Referenced by QwCombinedBCM< T >::GetCharge().
|
inlinevirtual |
Reimplemented from QwBCM< T >.
Definition at line 96 of file QwCombinedBCM.h.
References QwCombinedBCM< T >::GetCharge().
|
virtual |
Reimplemented from QwBCM< T >.
Definition at line 37 of file QwCombinedBCM.cc.
Referenced by QwCombinedBCM< T >::QwCombinedBCM().
|
virtual |
Reimplemented from QwBCM< T >.
Definition at line 46 of file QwCombinedBCM.cc.
void QwCombinedBCM< T >::InitializeChannel | ( | TString | subsystem, |
TString | name, | ||
TString | type, | ||
TString | datatosave | ||
) |
Definition at line 55 of file QwCombinedBCM.cc.
|
virtual |
Reimplemented from QwBCM< T >.
Definition at line 188 of file QwCombinedBCM.cc.
References QwBCM< T >::fBeamCurrent.
QwCombinedBCM< T > & QwCombinedBCM< T >::operator= | ( | const QwCombinedBCM< T > & | value | ) |
Definition at line 179 of file QwCombinedBCM.cc.
References QwBCM< T >::fBeamCurrent.
|
inlinevirtual |
Process the CODA event buffer for this element.
Reimplemented from QwBCM< T >.
Definition at line 57 of file QwCombinedBCM.h.
|
virtual |
Reimplemented from QwBCM< T >.
Definition at line 68 of file QwCombinedBCM.cc.
References QwLog::endl(), QwMessage, and Qw::T.
|
virtual |
Reimplemented from QwBCM< T >.
Definition at line 26 of file QwCombinedBCM.cc.
|
inlinevirtual |
Reimplemented from QwBCM< T >.
Definition at line 88 of file QwCombinedBCM.h.
References QwBCM< T >::SetCalibrationFactor().
|
inlinevirtual |
Reimplemented from QwBCM< T >.
Definition at line 85 of file QwCombinedBCM.h.
References QwBCM< T >::SetPedestal().
|
virtual |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag".
Reimplemented from VQwBCM.
Definition at line 115 of file QwCombinedBCM.cc.
|
private |
Definition at line 98 of file QwCombinedBCM.h.
|
private |
Definition at line 105 of file QwCombinedBCM.h.
|
private |
Definition at line 104 of file QwCombinedBCM.h.