QwAnalysis
|
#include <QwBCM.h>
Public Member Functions | |
QwBCM () | |
QwBCM (TString name) | |
QwBCM (TString subsystemname, TString name) | |
QwBCM (TString subsystemname, TString name, TString type, TString clock="") | |
QwBCM (const QwBCM &source) | |
virtual | ~QwBCM () |
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 | 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) |
void | ProcessEvent () |
Bool_t | ApplyHWChecks () |
Bool_t | ApplySingleEventCuts () |
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... | |
const VQwHardwareChannel * | GetCharge () const |
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) |
VQwBCM & | operator-= (const VQwBCM &value) |
virtual void | SetBCMForCombo (VQwBCM *bcm, Double_t weight, Double_t sumqw) |
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 | SetPedestal (Double_t ped) |
void | SetCalibrationFactor (Double_t calib) |
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 () |
virtual UInt_t | UpdateErrorFlag () |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag". More... | |
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... | |
Protected Attributes | |
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... | |
Friends | |
class | QwCombinedBCM< T > |
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... | |
Definition at line 39 of file QwBCM.h.
References QwBCM< T >::InitializeChannel().
Definition at line 42 of file QwBCM.h.
References QwBCM< T >::InitializeChannel(), and VQwDataElement::SetSubsystemName().
|
inline |
Definition at line 47 of file QwBCM.h.
References QwBCM< T >::fBeamCurrent, QwBCM< T >::InitializeChannel(), and VQwDataElement::SetSubsystemName().
|
virtual |
Bool_t QwBCM< T >::ApplyHWChecks | ( | ) |
Definition at line 124 of file QwBCM.cc.
|
virtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 158 of file QwBCM.cc.
Referenced by QwCombinedBCM< T >::ApplySingleEventCuts().
|
virtual |
|
virtual |
|
virtual |
Implements VQwBCM.
Definition at line 434 of file QwBCM.cc.
|
virtual |
Implements VQwBCM.
Definition at line 446 of file QwBCM.cc.
References QwLog::endl(), QwParameterFile::HasValue(), and QwMessage.
|
virtual |
Implements VQwBCM.
Definition at line 423 of file QwBCM.cc.
|
virtual |
Construct the histograms for this data element.
Implements VQwBCM.
Definition at line 397 of file QwBCM.cc.
|
virtual |
|
virtual |
Fill the histograms for this data element.
Implements VQwBCM.
Definition at line 410 of file QwBCM.cc.
|
virtual |
Implements VQwBCM.
Definition at line 467 of file QwBCM.cc.
|
inlinevirtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 108 of file QwBCM.h.
References QwBCM< T >::fBeamCurrent.
|
virtual |
|
virtual |
|
inline |
|
inlinevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 87 of file QwBCM.h.
References QwBCM< T >::fBeamCurrent.
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 114 of file QwBCM.h.
References QwBCM< T >::fBeamCurrent.
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 34 of file QwBCM.cc.
Referenced by QwBCM< T >::QwBCM().
|
virtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 43 of file QwBCM.cc.
void QwBCM< T >::InitializeChannel | ( | TString | subsystem, |
TString | name, | ||
TString | type, | ||
TString | datatosave | ||
) |
Definition at line 51 of file QwBCM.cc.
|
inlinevirtual |
|
inlinevirtual |
Implements VQwBCM.
Definition at line 271 of file QwBCM.cc.
References Qw::e, QwBCM< T >::fBeamCurrent, and VQwDataElement::GetElementName().
Definition at line 261 of file QwBCM.cc.
References QwBCM< T >::fBeamCurrent.
Implements VQwBCM.
Definition at line 295 of file QwBCM.cc.
References QwBCM< T >::fBeamCurrent.
Definition at line 307 of file QwBCM.cc.
References Qw::e, QwBCM< T >::fBeamCurrent, and VQwDataElement::GetElementName().
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 233 of file QwBCM.cc.
References Qw::e, QwBCM< T >::fBeamCurrent, and VQwDataElement::GetElementName().
Definition at line 217 of file QwBCM.cc.
References QwBCM< T >::fBeamCurrent.
|
virtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
Definition at line 180 of file QwBCM.cc.
|
virtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
Definition at line 389 of file QwBCM.cc.
|
virtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
|
virtual |
Process the CODA event buffer for this element.
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 209 of file QwBCM.cc.
|
virtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 117 of file QwBCM.cc.
|
virtual |
|
virtual |
Definition at line 350 of file QwBCM.cc.
References QwBCM< T >::fBeamCurrent.
|
virtual |
|
inlinevirtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
|
virtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 28 of file QwBCM.cc.
Referenced by QwCombinedBCM< T >::SetCalibrationFactor().
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
void QwBCM< T >::SetExternalRandomVariable | ( | Double_t | random_variable | ) |
|
virtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 22 of file QwBCM.cc.
Referenced by QwCombinedBCM< T >::SetPedestal().
|
virtual |
void QwBCM< T >::SetRandomEventDriftParameters | ( | Double_t | amplitude, |
Double_t | phase, | ||
Double_t | frequency | ||
) |
|
virtual |
Int_t QwBCM< T >::SetSingleEventCuts | ( | Double_t | mean = 0 , |
Double_t | sigma = 0 |
||
) |
|
virtual |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
Implements VQwBCM.
Definition at line 142 of file QwBCM.cc.
References QwLog::endl(), kBCMErrorFlag, and QwMessage.
Implements VQwBCM.
Definition at line 187 of file QwBCM.cc.
References Qw::e, QwBCM< T >::fBeamCurrent, VQwDataElement::GetElementName(), and QwBCM< T >::UpdateErrorFlag().
Referenced by QwBCM< T >::UpdateErrorFlag().
void QwBCM< T >::UseExternalRandomVariable | ( | ) |
|
friend |
|
protected |
Definition at line 168 of file QwBCM.h.
Referenced by QwCombinedBCM< T >::GetCharge(), QwBCM< T >::GetCharge(), QwBCM< T >::GetErrorCode(), QwBCM< T >::GetEventcutErrorFlag(), QwBCM< T >::GetExternalClockName(), QwBCM< T >::GetNormClockValue(), QwBCM< T >::LoadChannelParameters(), QwBCM< T >::NeedsExternalClock(), QwBCM< T >::operator+=(), QwBCM< T >::operator-=(), QwCombinedBCM< T >::operator=(), QwBCM< T >::operator=(), QwBCM< T >::QwBCM(), QwBCM< T >::Ratio(), QwBCM< T >::SetEventCutMode(), QwBCM< T >::SetExternalClockName(), QwBCM< T >::SetExternalClockPtr(), and QwBCM< T >::UpdateErrorFlag().