|
JAPAn
Just Another Parity Analyzer
|
Templated concrete beam current monitor implementation. More...
#include <QwBCM.h>
Inheritance diagram for QwBCM< T >:
Collaboration diagram for QwBCM< T >: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) | |
| ~QwBCM () override | |
| Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0) override |
| Process the raw event buffer and decode into the channel. | |
| void | InitializeChannel (TString name, TString datatosave) override |
| Initialize the BCM with a name and data-saving mode. | |
| void | InitializeChannel (TString subsystem, TString name, TString datatosave) override |
| Initialize the BCM with subsystem and name. | |
| void | InitializeChannel (TString subsystem, TString name, TString type, TString datatosave) |
| Initialize the BCM with subsystem, module type, and name. | |
| void | ClearEventData () override |
| Clear event-scoped data in the underlying channel. | |
| void | LoadChannelParameters (QwParameterFile ¶mfile) override |
| void | SetRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
| Configure deterministic drift parameters applied per event. | |
| void | AddRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) override |
| Add additional drift parameters to the drift model. | |
| void | SetRandomEventParameters (Double_t mean, Double_t sigma) override |
| Configure Gaussian mock data parameters. | |
| void | SetRandomEventAsymmetry (Double_t asymmetry) override |
| Set an asymmetry parameter applied to helicity states. | |
| void | SetResolution (Double_t resolution) |
| void | ApplyResolutionSmearing () override |
| Smear the channel by the configured resolution. | |
| void | FillRawEventData () override |
| Materialize the current event state as raw event data. | |
| void | RandomizeEventData (int helicity=0, double time=0) override |
| Generate mock event data for this BCM. | |
| void | LoadMockDataParameters (QwParameterFile ¶mfile) override |
| Load mock-data configuration for the underlying channel. | |
| void | EncodeEventData (std::vector< UInt_t > &buffer) override |
| Encode current event data into an output buffer. | |
| void | UseExternalRandomVariable () |
| Use an external random variable source for mock data. | |
| void | SetExternalRandomVariable (Double_t random_variable) |
| Set the external random variable to drive mock data. | |
| void | ProcessEvent () override |
| Apply hardware checks and process the event for this BCM. | |
| Bool_t | ApplyHWChecks () |
| Apply hardware checks and return whether the event is valid. | |
| Bool_t | ApplySingleEventCuts () override |
| Apply single-event cuts for this BCM and return pass/fail. | |
| void | IncrementErrorCounters () override |
| Increment error counters (number of failed events). | |
| void | PrintErrorCounters () const override |
| Print error counters (const overload). | |
| UInt_t | GetEventcutErrorFlag () override |
| return the error flag on this channel/device | |
| void | UpdateErrorFlag (const VQwBCM *ev_error) override |
| Merge error flags from a reference BCM into this instance. | |
| UInt_t | GetErrorCode () const |
| Int_t | SetSingleEventCuts (Double_t mean=0, Double_t sigma=0) |
| Set basic single-event cut limits. | |
| void | SetSingleEventCuts (UInt_t errorflag, Double_t min=0, Double_t max=0, Double_t stability=0, Double_t burplevel=0) override |
| Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel. | |
| void | SetDefaultSampleSize (Int_t sample_size) override |
| Set the default sample size used by the channel. | |
| void | SetEventCutMode (Int_t bcuts) override |
| void | PrintValue () const override |
| Print a compact value summary for this BCM. | |
| void | PrintInfo () const override |
| Print detailed information for this BCM. | |
| std::string | GetExternalClockName () override |
| Bool_t | NeedsExternalClock () override |
| void | SetExternalClockPtr (const VQwHardwareChannel *clock) override |
| void | SetExternalClockName (const std::string name) override |
| Double_t | GetNormClockValue () override |
| VQwBCM & | operator= (const VQwBCM &value) override |
| Polymorphic copy-assign from VQwBCM if types match. | |
| VQwBCM & | operator+= (const VQwBCM &value) override |
| Polymorphic add-assign from VQwBCM if types match. | |
| VQwBCM & | operator-= (const VQwBCM &value) override |
| Polymorphic subtract-assign from VQwBCM. | |
| void | SetBCMForCombo (VQwBCM *bcm, Double_t weight, Double_t sumqw) override |
| QwBCM & | operator= (const QwBCM &value) |
| Copy-assign from another BCM (event-scoped data). | |
| QwBCM & | operator+= (const QwBCM &value) |
| Add-assign from another BCM (sum raw channels). | |
| QwBCM & | operator-= (const QwBCM &value) |
| Subtract-assign from another BCM (difference raw channels). | |
| void | Ratio (const VQwBCM &numer, const VQwBCM &denom) override |
| Polymorphic ratio formation for BCM. | |
| void | Ratio (const QwBCM &numer, const QwBCM &denom) |
| Type-specific ratio formation for BCM. | |
| void | Scale (Double_t factor) override |
| Scale the underlying channel by a constant factor. | |
| void | AccumulateRunningSum (const VQwBCM &, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) override |
| Accumulate running sums from another BCM into this one. | |
| void | DeaccumulateRunningSum (VQwBCM &value, Int_t ErrorMask=0xFFFFFFF) override |
| Remove a single entry from the running sums using a source value. | |
| void | CalculateRunningAverage () override |
| Update running averages for the underlying channel. | |
| Bool_t | CheckForBurpFail (const VQwDataElement *ev_error) override |
| Check for burp failures by delegating to the underlying channel. | |
| void | SetPedestal (Double_t ped) override |
| Set the pedestal value for the beam current monitor. | |
| void | SetCalibrationFactor (Double_t calib) override |
| Set the calibration factor for the beam current monitor. | |
| void | ConstructHistograms (TDirectory *folder, TString &prefix) override |
| Define histograms for this BCM (delegated to underlying channel). | |
| void | FillHistograms () override |
| Fill histograms for this BCM if enabled. | |
| void | ConstructBranchAndVector (TTree *tree, TString &prefix, QwRootTreeBranchVector &values) override |
| Construct ROOT branches and value vector entries. | |
| void | ConstructBranch (TTree *tree, TString &prefix) override |
| Construct ROOT branches for this BCM (if enabled). | |
| void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist) override |
| Construct ROOT branches for this BCM using a trim file filter. | |
| void | FillTreeVector (QwRootTreeBranchVector &values) const override |
| Fill tree vector entries for this BCM. | |
| Double_t | GetValue () override |
| Get the current value of the beam current. | |
| Double_t | GetValueError () override |
| Get the statistical error on the beam current. | |
| Double_t | GetValueWidth () override |
| Get the width of the beam current distribution. | |
Public Member Functions inherited from VQwBCM | |
| ~VQwBCM () override | |
| UInt_t | UpdateErrorFlag () override |
| Update the error flag based on the error flags of internally contained objects Return parameter is the "Eventcut Error Flag". | |
| virtual void | GetProjectedCharge (VQwBCM *) |
| virtual size_t | GetNumberOfElements () |
| virtual TString | GetSubElementName (Int_t) |
| virtual const VQwHardwareChannel * | GetCharge () const |
Public Member Functions inherited from VQwDataElement | |
| VQwDataElement () | |
| Default constructor. | |
| VQwDataElement (const VQwDataElement &value) | |
| Copy constructor. | |
| ~VQwDataElement () override | |
| Virtual destructor. | |
| void | CopyFrom (const VQwDataElement &value) |
| Bool_t | IsNameEmpty () const |
| Is the name of this element empty? | |
| void | SetElementName (const TString &name) |
| Set the name of this element. | |
| virtual const TString & | GetElementName () const |
| Get the name of this element. | |
| size_t | GetNumberOfDataWords () |
| Get the number of data words in this data element. | |
| UInt_t | GetGoodEventCount () const |
| virtual void | AssignValueFrom (const VQwDataElement *) |
| VQwDataElement & | operator+= (const VQwDataElement &) |
| Addition-assignment operator. | |
| VQwDataElement & | operator-= (const VQwDataElement &) |
| Subtraction-assignment operator. | |
| void | Sum (const VQwDataElement &, const VQwDataElement &) |
| Sum operator (base class fallback throws runtime error) | |
| void | Difference (const VQwDataElement &, const VQwDataElement &) |
| Difference operator (base class fallback throws runtime error) | |
| void | Ratio (const VQwDataElement &, const VQwDataElement &) |
| Ratio operator (base class fallback throws runtime error) | |
| void | SetSingleEventCuts (UInt_t, Double_t, Double_t, Double_t) |
| set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel | |
| Bool_t | CheckForBurpFail (const VQwDataElement *) |
| virtual void | SetNeedsExternalClock (Bool_t) |
| TString | GetSubsystemName () const |
| Return the name of the inheriting subsystem name. | |
| void | SetSubsystemName (TString sysname) |
| Set the name of the inheriting subsystem name. | |
| TString | GetModuleType () const |
| Return the type of the beam instrument. | |
| void | SetModuleType (TString ModuleType) |
| set the type of the beam instrument | |
Public Member Functions inherited from MQwHistograms | |
| void | ShareHistograms (const MQwHistograms *source) |
| Share histogram pointers between objects. | |
Protected Member Functions | |
| VQwHardwareChannel * | GetCharge () override |
Protected Member Functions inherited from VQwBCM | |
| VQwBCM (VQwDataElement &beamcurrent) | |
| VQwBCM (VQwDataElement &beamcurrent, TString) | |
Protected Member Functions inherited from VQwDataElement | |
| void | SetNumberOfDataWords (const UInt_t &numwords) |
| Set the number of data words in this data element. | |
| VQwDataElement & | operator= (const VQwDataElement &value) |
| Arithmetic assignment operator: Should only copy event-based data. | |
| void | UpdateErrorFlag (const UInt_t &error) |
Protected Member Functions inherited from MQwHistograms | |
| MQwHistograms () | |
| Default constructor. | |
| MQwHistograms (const MQwHistograms &source) | |
| Copy constructor. | |
| virtual | ~MQwHistograms () |
| Virtual destructor. | |
| MQwHistograms & | operator= (const MQwHistograms &value) |
| void | Fill_Pointer (TH1_ptr hist_ptr, Double_t value) |
| void | AddHistogram (TH1 *h) |
| Register a histogram. | |
Protected Attributes | |
| T | fBeamCurrent |
Protected Attributes inherited from VQwBCM | |
| VQwDataElement & | fBeamCurrent_ref |
Protected Attributes inherited from VQwDataElement | |
| TString | fElementName |
| Name of this data element. | |
| UInt_t | fNumberOfDataWords |
| Number of raw data words in this data element. | |
| UInt_t | fGoodEventCount |
| Number of good events accumulated in this element. | |
| 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) | |
| UInt_t | fErrorConfigFlag |
| contains the global/local/stability flags | |
Protected Attributes inherited from MQwHistograms | |
| std::vector< TH1_ptr > | fHistograms |
| Histograms associated with this data element. | |
Private Attributes | |
| Double_t | fResolution |
Friends | |
| class | QwCombinedBCM< T > |
Additional Inherited Members | |
Public Types inherited from VQwDataElement | |
| enum | EDataToSave { kRaw = 0 , kDerived , kMoments } |
Static Public Member Functions inherited from VQwBCM | |
| static VQwBCM * | Create (TString subsystemname, TString type, TString name, TString clock="") |
| Factory method to create a concrete BCM instance for the requested module type. | |
| static VQwBCM * | Create (const VQwBCM &source) |
| Copy constructor factory method to clone a BCM from an existing instance. | |
| static VQwBCM * | CreateCombo (TString subsystemname, TString type, TString name) |
| Factory method to create a concrete Combined BCM for the requested module type. | |
| static VQwBCM * | CreateCombo (const VQwBCM &source) |
Templated concrete beam current monitor implementation.
Template class that implements a beam current monitor using a specified hardware channel type T. Handles event decoding, calibration, single-event cuts, mock data generation, and database output. Supports external clock normalization and statistical analysis.
Definition at line 40 of file QwBCM.h.
References fBeamCurrent, and VQwBCM::VQwBCM().
Referenced by AccumulateRunningSum(), CheckForBurpFail(), DeaccumulateRunningSum(), operator+=(), operator+=(), operator-=(), operator-=(), operator=(), operator=(), QwBCM(), QwCombinedBCM< T >::QwCombinedBCM(), Ratio(), Ratio(), QwCombinedBCM< T >::SetBCMForCombo(), and UpdateErrorFlag().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 41 of file QwBCM.h.
References fBeamCurrent, InitializeChannel(), and VQwBCM::VQwBCM().
Here is the call graph for this function:Definition at line 44 of file QwBCM.h.
References fBeamCurrent, InitializeChannel(), VQwDataElement::SetSubsystemName(), and VQwBCM::VQwBCM().
Here is the call graph for this function:
|
inline |
Definition at line 49 of file QwBCM.h.
References fBeamCurrent, InitializeChannel(), VQwDataElement::SetSubsystemName(), and VQwBCM::VQwBCM().
Here is the call graph for this function:Definition at line 55 of file QwBCM.h.
References fBeamCurrent, QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:
|
overridevirtual |
Accumulate running sums from another BCM into this one.
Implements VQwBCM.
Definition at line 527 of file QwBCM.cc.
References fBeamCurrent, QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:
|
overridevirtual |
Add additional drift parameters to the drift model.
Implements VQwBCM.
Definition at line 170 of file QwBCM.cc.
References fBeamCurrent.
| Bool_t QwBCM< T >::ApplyHWChecks | ( | ) |
Apply hardware checks and return whether the event is valid.
Definition at line 235 of file QwBCM.cc.
References fBeamCurrent.
Referenced by ProcessEvent().
Here is the caller graph for this function:
|
overridevirtual |
Smear the channel by the configured resolution.
Reimplemented from VQwBCM.
Definition at line 191 of file QwBCM.cc.
References fBeamCurrent, and fResolution.
|
overridevirtual |
Apply single-event cuts for this BCM and return pass/fail.
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 279 of file QwBCM.cc.
References fBeamCurrent.
Referenced by QwCombinedBCM< T >::ApplySingleEventCuts().
Here is the caller graph for this function:
|
overridevirtual |
Update running averages for the underlying channel.
Implements VQwBCM.
Definition at line 492 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Check for burp failures by delegating to the underlying channel.
| ev_error | Reference BCM to compare against. |
Reimplemented from VQwBCM.
Definition at line 503 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), QwBCM(), and VQwDataElement::VQwDataElement().
Here is the call graph for this function:
|
overridevirtual |
Clear event-scoped data in the underlying channel.
Implements VQwBCM.
Definition at line 136 of file QwBCM.cc.
References fBeamCurrent.
Referenced by QwCombinedBCM< T >::ProcessEvent().
Here is the caller graph for this function:
|
overridevirtual |
Construct ROOT branches for this BCM (if enabled).
Implements VQwBCM.
Definition at line 604 of file QwBCM.cc.
References fBeamCurrent, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
overridevirtual |
Construct ROOT branches for this BCM using a trim file filter.
Implements VQwBCM.
Definition at line 617 of file QwBCM.cc.
References QwLog::endl(), fBeamCurrent, VQwDataElement::GetElementName(), QwParameterFile::HasValue(), and QwMessage.
Here is the call graph for this function:
|
overridevirtual |
Construct ROOT branches and value vector entries.
| tree | Output tree. |
| prefix | Branch name prefix. |
| values | Output value vector to be appended. |
Implements VQwBCM.
Definition at line 592 of file QwBCM.cc.
References fBeamCurrent, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
overridevirtual |
Define histograms for this BCM (delegated to underlying channel).
| folder | ROOT folder to contain histograms. |
| prefix | Histogram name prefix. |
Implements VQwBCM.
Definition at line 559 of file QwBCM.cc.
References fBeamCurrent, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
overridevirtual |
Remove a single entry from the running sums using a source value.
Implements VQwBCM.
Definition at line 534 of file QwBCM.cc.
References fBeamCurrent, QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:
|
overridevirtual |
Encode current event data into an output buffer.
Implements VQwBCM.
Definition at line 216 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Fill histograms for this BCM if enabled.
Implements VQwBCM.
Definition at line 573 of file QwBCM.cc.
References fBeamCurrent, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
overridevirtual |
Materialize the current event state as raw event data.
Reimplemented from VQwBCM.
Definition at line 196 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Fill tree vector entries for this BCM.
Implements VQwBCM.
Definition at line 639 of file QwBCM.cc.
References fBeamCurrent, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
inlineoverrideprotectedvirtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 124 of file QwBCM.h.
References fBeamCurrent.
|
inline |
|
inlineoverridevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 102 of file QwBCM.h.
References fBeamCurrent.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Get the current value of the beam current.
Implements VQwBCM.
Definition at line 698 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Get the statistical error on the beam current.
Implements VQwBCM.
Definition at line 706 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Get the width of the beam current distribution.
Implements VQwBCM.
Definition at line 713 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Increment error counters (number of failed events).
Implements VQwBCM.
Definition at line 296 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Initialize the BCM with a name and data-saving mode.
| name | Detector name used for branches and histograms. |
| datatosave | Storage mode (e.g., "raw" or "derived"). |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 54 of file QwBCM.cc.
References fBeamCurrent, SetCalibrationFactor(), VQwDataElement::SetElementName(), SetPedestal(), and SetResolution().
Referenced by QwBCM(), QwBCM(), and QwBCM().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Initialize the BCM with subsystem and name.
| subsystem | Subsystem identifier. |
| name | Detector name used for branches and histograms. |
| datatosave | Storage mode (e.g., "raw" or "derived"). |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 70 of file QwBCM.cc.
References fBeamCurrent, SetCalibrationFactor(), VQwDataElement::SetElementName(), SetPedestal(), and SetResolution().
Here is the call graph for this function:| void QwBCM< T >::InitializeChannel | ( | TString | subsystem, |
| TString | name, | ||
| TString | type, | ||
| TString | datatosave ) |
Initialize the BCM with subsystem, module type, and name.
| subsystem | Subsystem identifier. |
| name | Detector name used for branches and histograms. |
| type | Module type tag used in ROOT foldering. |
| datatosave | Storage mode (e.g., "raw" or "derived"). |
Definition at line 86 of file QwBCM.cc.
References fBeamCurrent, SetCalibrationFactor(), VQwDataElement::SetElementName(), VQwDataElement::SetModuleType(), SetPedestal(), and SetResolution().
Here is the call graph for this function:
|
inlineoverridevirtual |
|
overridevirtual |
Load mock-data configuration for the underlying channel.
| paramfile | Parameter file reader positioned at channel section. |
Reimplemented from VQwDataElement.
Reimplemented in QwCombinedBCM< T >.
Definition at line 100 of file QwBCM.cc.
References fBeamCurrent, QwParameterFile::GetLine(), QwParameterFile::GetNextToken(), QwParameterFile::GetTypedNextToken(), and SetResolution().
Here is the call graph for this function:
|
inlineoverridevirtual |
Add-assign from another BCM (sum raw channels).
Definition at line 392 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), and QwBCM().
Here is the call graph for this function:Polymorphic add-assign from VQwBCM if types match.
Implements VQwBCM.
Definition at line 403 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:Subtract-assign from another BCM (difference raw channels).
Definition at line 441 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), and QwBCM().
Here is the call graph for this function:Polymorphic subtract-assign from VQwBCM.
Implements VQwBCM.
Definition at line 428 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:Copy-assign from another BCM (event-scoped data).
Definition at line 346 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), and QwBCM().
Here is the call graph for this function:Polymorphic copy-assign from VQwBCM if types match.
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 363 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:
|
overridevirtual |
Print error counters (const overload).
Reimplemented from VQwDataElement.
Definition at line 303 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Print detailed information for this BCM.
Reimplemented from VQwDataElement.
Definition at line 546 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Print a compact value summary for this BCM.
Reimplemented from VQwDataElement.
Definition at line 539 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Process the raw event buffer and decode into the channel.
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 337 of file QwBCM.cc.
References fBeamCurrent, and QwBPMStripline< T >::subelement.
|
overridevirtual |
Apply hardware checks and process the event for this BCM.
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 224 of file QwBCM.cc.
References ApplyHWChecks(), and fBeamCurrent.
Here is the call graph for this function:
|
overridevirtual |
Generate mock event data for this BCM.
| helicity | Helicity state indicator. |
| time | Event time or timestamp proxy. |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 207 of file QwBCM.cc.
References fBeamCurrent.
Type-specific ratio formation for BCM.
Definition at line 473 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), and QwBCM().
Here is the call graph for this function:
|
overridevirtual |
Polymorphic ratio formation for BCM.
Reimplemented from VQwBCM.
Definition at line 465 of file QwBCM.cc.
References QwBCM(), Ratio(), and VQwBCM::VQwBCM().
Referenced by Ratio().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Scale the underlying channel by a constant factor.
Implements VQwBCM.
Definition at line 485 of file QwBCM.cc.
References fBeamCurrent.
|
inlineoverridevirtual |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 144 of file QwBCM.h.
References VQwBCM::VQwBCM().
Here is the call graph for this function:
|
overridevirtual |
Set the calibration factor for the beam current monitor.
| calibration | Multiplicative calibration factor. |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 43 of file QwBCM.cc.
References fBeamCurrent.
Referenced by InitializeChannel(), InitializeChannel(), InitializeChannel(), and QwCombinedBCM< T >::SetCalibrationFactor().
Here is the caller graph for this function:
|
overridevirtual |
Set the default sample size used by the channel.
Implements VQwBCM.
Definition at line 268 of file QwBCM.cc.
References fBeamCurrent.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
| void QwBCM< T >::SetExternalRandomVariable | ( | Double_t | random_variable | ) |
Set the external random variable to drive mock data.
| random_variable | External random value. |
Definition at line 154 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Set the pedestal value for the beam current monitor.
| pedestal | Pedestal offset to apply to the raw signal. |
Implements VQwBCM.
Reimplemented in QwCombinedBCM< T >.
Definition at line 33 of file QwBCM.cc.
References fBeamCurrent.
Referenced by InitializeChannel(), InitializeChannel(), InitializeChannel(), and QwCombinedBCM< T >::SetPedestal().
Here is the caller graph for this function:
|
overridevirtual |
Set an asymmetry parameter applied to helicity states.
Implements VQwBCM.
Definition at line 184 of file QwBCM.cc.
References fBeamCurrent.
| void QwBCM< T >::SetRandomEventDriftParameters | ( | Double_t | amplitude, |
| Double_t | phase, | ||
| Double_t | frequency ) |
Configure deterministic drift parameters applied per event.
Definition at line 163 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Configure Gaussian mock data parameters.
Implements VQwBCM.
Definition at line 177 of file QwBCM.cc.
References fBeamCurrent.
|
inline |
Definition at line 79 of file QwBCM.h.
References fResolution.
Referenced by InitializeChannel(), InitializeChannel(), InitializeChannel(), LoadMockDataParameters(), and QwCombinedBCM< T >::LoadMockDataParameters().
Here is the caller graph for this function:| Int_t QwBCM< T >::SetSingleEventCuts | ( | Double_t | mean = 0, |
| Double_t | sigma = 0 ) |
Set basic single-event cut limits.
Definition at line 248 of file QwBCM.cc.
References fBeamCurrent.
|
overridevirtual |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
Configure detailed single-event cuts for this BCM.
Implements VQwBCM.
Definition at line 257 of file QwBCM.cc.
References QwLog::endl(), fBeamCurrent, kBCMErrorFlag, and QwMessage.
Here is the call graph for this function:
|
overridevirtual |
Merge error flags from a reference BCM into this instance.
Implements VQwBCM.
Definition at line 311 of file QwBCM.cc.
References fBeamCurrent, VQwDataElement::GetElementName(), QwBCM(), and VQwBCM::VQwBCM().
Here is the call graph for this function:| void QwBCM< T >::UseExternalRandomVariable | ( | ) |
Use an external random variable source for mock data.
Definition at line 144 of file QwBCM.cc.
References fBeamCurrent.
|
friend |
Definition at line 1 of file QwBCM.h.
References VQwBCM::QwCombinedBCM.
|
protected |
Definition at line 189 of file QwBCM.h.
Referenced by AccumulateRunningSum(), AddRandomEventDriftParameters(), ApplyHWChecks(), ApplyResolutionSmearing(), ApplySingleEventCuts(), QwCombinedBCM< T >::ApplySingleEventCuts(), CalculateRunningAverage(), CheckForBurpFail(), ClearEventData(), ConstructBranch(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), EncodeEventData(), FillHistograms(), FillRawEventData(), FillTreeVector(), GetCharge(), QwCombinedBCM< T >::GetCharge(), GetErrorCode(), GetEventcutErrorFlag(), GetExternalClockName(), GetNormClockValue(), QwCombinedBCM< T >::GetProjectedCharge(), GetValue(), GetValueError(), GetValueWidth(), IncrementErrorCounters(), InitializeChannel(), InitializeChannel(), InitializeChannel(), QwCombinedBCM< T >::InitializeChannel(), QwCombinedBCM< T >::InitializeChannel(), QwCombinedBCM< T >::InitializeChannel(), LoadChannelParameters(), LoadMockDataParameters(), QwCombinedBCM< T >::LoadMockDataParameters(), NeedsExternalClock(), operator+=(), operator+=(), operator-=(), operator-=(), operator=(), operator=(), QwCombinedBCM< T >::operator=(), QwCombinedBCM< T >::operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), QwCombinedBCM< T >::ProcessEvent(), QwBCM(), QwBCM(), QwBCM(), QwBCM(), QwBCM(), RandomizeEventData(), QwCombinedBCM< T >::RandomizeEventData(), Ratio(), Scale(), SetCalibrationFactor(), SetDefaultSampleSize(), SetEventCutMode(), SetExternalClockName(), SetExternalClockPtr(), SetExternalRandomVariable(), SetPedestal(), SetRandomEventAsymmetry(), SetRandomEventDriftParameters(), SetRandomEventParameters(), SetSingleEventCuts(), SetSingleEventCuts(), UpdateErrorFlag(), QwCombinedBCM< T >::UpdateErrorFlag(), and UseExternalRandomVariable().
|
private |
Definition at line 193 of file QwBCM.h.
Referenced by ApplyResolutionSmearing(), and SetResolution().