|
JAPAn
Just Another Parity Analyzer
|
Computes beam energy change from BPM information. More...
#include <QwEnergyCalculator.h>
Inheritance diagram for QwEnergyCalculator:
Collaboration diagram for QwEnergyCalculator:Public Member Functions | |
| QwEnergyCalculator () | |
| QwEnergyCalculator (TString name) | |
| QwEnergyCalculator (TString subsystem, TString name) | |
| QwEnergyCalculator (const QwEnergyCalculator &source) | |
| ~QwEnergyCalculator () override | |
| void | InitializeChannel (TString name, TString datatosave) |
| Initialize this energy calculator with a name and data-saving mode. | |
| void | InitializeChannel (TString subsystem, TString name, TString datatosave) |
| Initialize this energy calculator with subsystem and name. | |
| void | LoadChannelParameters (QwParameterFile ¶mfile) override |
| void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
| Configure Gaussian mock data parameters for the underlying channel. | |
| void | RandomizeEventData (int helicity=0, double time=0.0) |
| Generate mock event data for testing. | |
| void | GetProjectedPosition (VQwBPM *device) |
| Back-project a BPM position from the current dp/p estimate. | |
| size_t | GetNumberOfElements () |
| TString | GetSubElementName (Int_t index) |
| void | LoadMockDataParameters (QwParameterFile ¶mfile) override |
| Load mock-data configuration for the underlying channel from a file. | |
| void | ClearEventData () override |
| Clear event-scoped data of this calculator and underlying channel. | |
| Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t indexnumber) override |
| Process a configuration/event buffer (no-op for this calculator). | |
| void | ProcessEvent () |
| Compute per-event energy change by summing configured device terms. | |
| void | PrintValue () const override |
| Print a compact value summary for this calculator. | |
| void | PrintInfo () const override |
| Print detailed information for this calculator. | |
| void | SetRootSaveStatus (TString &prefix) |
| Determine whether to save full ROOT output based on the prefix. | |
| Bool_t | ApplyHWChecks () |
| Apply hardware checks (delegated to contributing channels if any). | |
| Bool_t | ApplySingleEventCuts () |
| Apply single-event cuts to the energy channel and contributing devices. | |
| Int_t | SetSingleEventCuts (Double_t mean, Double_t sigma) |
| Set single-event cut limits on the underlying energy channel. | |
| void | SetSingleEventCuts (UInt_t errorflag, Double_t min, Double_t max, Double_t stability, Double_t burplevel) |
| Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel. | |
| void | SetEventCutMode (Int_t bcuts) |
| Bool_t | CheckForBurpFail (const VQwDataElement *ev_error) |
| Check for burp failures by delegating to the energy channel. | |
| void | IncrementErrorCounters () |
| Increment error counters in the underlying energy channel. | |
| void | PrintErrorCounters () const override |
| Print accumulated error counters for diagnostic purposes. | |
| UInt_t | GetEventcutErrorFlag () override |
| return the error flag on this channel/device | |
| UInt_t | UpdateErrorFlag () override |
| Update and return the composite event-cut error flag. | |
| void | UpdateErrorFlag (const QwEnergyCalculator *ev_error) |
| Propagate error flags from a reference calculator into this one. | |
| void | Set (const VQwBPM *device, TString type, TString property, Double_t tmatrix_ratio) |
| Register a BPM-based device contributing to the energy calculation. | |
| void | Ratio (QwEnergyCalculator &numer, QwEnergyCalculator &denom) |
| Define the ratio for asymmetry formation (here acts as pass-through). | |
| void | Scale (Double_t factor) |
| Scale the underlying energy channel by a constant factor. | |
| QwEnergyCalculator & | operator= (const QwEnergyCalculator &value) |
| Copy-assign from another calculator (event-scoped data). | |
| QwEnergyCalculator & | operator+= (const QwEnergyCalculator &value) |
| Add-assign from another calculator (sum energy change). | |
| QwEnergyCalculator & | operator-= (const QwEnergyCalculator &value) |
| Subtract-assign from another calculator (difference energy change). | |
| void | Sum (const QwEnergyCalculator &value1, const QwEnergyCalculator &value2) |
| void | Difference (const QwEnergyCalculator &value1, const QwEnergyCalculator &value2) |
| void | AccumulateRunningSum (const QwEnergyCalculator &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) |
| Accumulate running sums from another calculator into this one. | |
| void | DeaccumulateRunningSum (QwEnergyCalculator &value, Int_t ErrorMask=0xFFFFFFF) |
| Remove a single entry from the running sums using a source value. | |
| void | CalculateRunningAverage () |
| Update running averages for the underlying energy channel. | |
| void | ConstructHistograms (TDirectory *folder, TString &prefix) override |
| Define histograms for this calculator (delegated to energy channel). | |
| void | FillHistograms () override |
| Fill histograms for this calculator if enabled. | |
| void | ConstructBranchAndVector (TTree *tree, TString &prefix, QwRootTreeBranchVector &values) |
| Construct ROOT branches and value vector entries. | |
| void | ConstructBranch (TTree *tree, TString &prefix) |
| Construct ROOT branches for this calculator (if enabled). | |
| void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &trim_file) |
| void | FillTreeVector (QwRootTreeBranchVector &values) const |
| VQwHardwareChannel * | GetEnergy () |
| const VQwHardwareChannel * | GetEnergy () 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) |
| virtual Bool_t | NeedsExternalClock () |
| virtual std::string | GetExternalClockName () |
| virtual void | SetExternalClockPtr (const VQwHardwareChannel *) |
| virtual void | SetExternalClockName (const std::string) |
| virtual Double_t | GetNormClockValue () |
| 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 Attributes | |
| QwMollerADC_Channel | fEnergyChange |
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 | |
| std::vector< const VQwBPM * > | fDevice |
| std::vector< Double_t > | fTMatrixRatio |
| std::vector< TString > | fProperty |
| std::vector< TString > | fType |
| Bool_t | bEVENTCUTMODE |
| Bool_t | bFullSave |
Additional Inherited Members | |
Public Types inherited from VQwDataElement | |
| enum | EDataToSave { kRaw = 0 , kDerived , kMoments } |
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. | |
Computes beam energy change from BPM information.
Uses measured angles and dispersive positions to estimate relative beam energy variations; exposes a single hardware-like channel.
Definition at line 43 of file QwEnergyCalculator.h.
|
inline |
Definition at line 55 of file QwEnergyCalculator.h.
Referenced by AccumulateRunningSum(), CheckForBurpFail(), DeaccumulateRunningSum(), Difference(), GetEnergy(), operator+=(), operator-=(), operator=(), QwEnergyCalculator(), Ratio(), Sum(), and UpdateErrorFlag().
Here is the caller graph for this function:
|
inline |
Definition at line 56 of file QwEnergyCalculator.h.
References InitializeChannel().
Here is the call graph for this function:
|
inline |
Definition at line 59 of file QwEnergyCalculator.h.
References InitializeChannel().
Here is the call graph for this function:
|
inline |
Definition at line 62 of file QwEnergyCalculator.h.
References fEnergyChange, QwEnergyCalculator(), and VQwDataElement::VQwDataElement().
Here is the call graph for this function:
|
inlineoverride |
Definition at line 65 of file QwEnergyCalculator.h.
| void QwEnergyCalculator::AccumulateRunningSum | ( | const QwEnergyCalculator & | value, |
| Int_t | count = 0, | ||
| Int_t | ErrorMask = 0xFFFFFFF ) |
Accumulate running sums from another calculator into this one.
| value | Source calculator to accumulate from. |
| count | Weight/count for accumulation; 0 implies use source count. |
| ErrorMask | Mask to control error propagation behavior. |
Definition at line 359 of file QwEnergyCalculator.cc.
References fEnergyChange, and QwEnergyCalculator().
Here is the call graph for this function:| Bool_t QwEnergyCalculator::ApplyHWChecks | ( | ) |
Apply hardware checks (delegated to contributing channels if any).
Definition at line 461 of file QwEnergyCalculator.cc.
| Bool_t QwEnergyCalculator::ApplySingleEventCuts | ( | ) |
Apply single-event cuts to the energy channel and contributing devices.
Definition at line 273 of file QwEnergyCalculator.cc.
References fDevice, fEnergyChange, fProperty, and VQwBPM::kXAxis.
| void QwEnergyCalculator::CalculateRunningAverage | ( | ) |
Update running averages for the underlying energy channel.
Definition at line 347 of file QwEnergyCalculator.cc.
References fEnergyChange.
| Bool_t QwEnergyCalculator::CheckForBurpFail | ( | const VQwDataElement * | ev_error | ) |
Check for burp failures by delegating to the energy channel.
| ev_error | Reference energy calculator to compare against. |
Definition at line 502 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), QwEnergyCalculator(), and VQwDataElement::VQwDataElement().
Here is the call graph for this function:
|
overridevirtual |
Clear event-scoped data of this calculator and underlying channel.
Reimplemented from VQwDataElement.
Definition at line 93 of file QwEnergyCalculator.cc.
References fEnergyChange.
Referenced by ProcessEvent().
Here is the caller graph for this function:| void QwEnergyCalculator::ConstructBranch | ( | TTree * | tree, |
| TString & | prefix ) |
Construct ROOT branches for this calculator (if enabled).
| tree | Output tree. |
| prefix | Branch name prefix. |
Definition at line 583 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), and SetRootSaveStatus().
Here is the call graph for this function:| void QwEnergyCalculator::ConstructBranch | ( | TTree * | tree, |
| TString & | prefix, | ||
| QwParameterFile & | trim_file ) |
Definition at line 598 of file QwEnergyCalculator.cc.
References QwLog::endl(), fEnergyChange, VQwDataElement::GetElementName(), QwParameterFile::HasValue(), QwMessage, and SetRootSaveStatus().
Here is the call graph for this function:| void QwEnergyCalculator::ConstructBranchAndVector | ( | TTree * | tree, |
| TString & | prefix, | ||
| QwRootTreeBranchVector & | values ) |
Construct ROOT branches and value vector entries.
| tree | Output tree. |
| prefix | Branch name prefix. |
| values | Output value vector to be appended. |
Definition at line 559 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), and SetRootSaveStatus().
Here is the call graph for this function:
|
overridevirtual |
Define histograms for this calculator (delegated to energy channel).
| folder | ROOT folder to contain histograms. |
| prefix | Histogram name prefix. |
Implements VQwDataElement.
Definition at line 528 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), and SetRootSaveStatus().
Here is the call graph for this function:| void QwEnergyCalculator::DeaccumulateRunningSum | ( | QwEnergyCalculator & | value, |
| Int_t | ErrorMask = 0xFFFFFFF ) |
Remove a single entry from the running sums using a source value.
| value | Source calculator to subtract. |
| ErrorMask | Mask to control error propagation behavior. |
Definition at line 368 of file QwEnergyCalculator.cc.
References fEnergyChange, and QwEnergyCalculator().
Here is the call graph for this function:| void QwEnergyCalculator::Difference | ( | const QwEnergyCalculator & | value1, |
| const QwEnergyCalculator & | value2 ) |
Definition at line 414 of file QwEnergyCalculator.cc.
References QwEnergyCalculator().
Here is the call graph for this function:
|
overridevirtual |
Fill histograms for this calculator if enabled.
Implements VQwDataElement.
Definition at line 543 of file QwEnergyCalculator.cc.
References fEnergyChange, and VQwDataElement::GetElementName().
Here is the call graph for this function:| void QwEnergyCalculator::FillTreeVector | ( | QwRootTreeBranchVector & | values | ) | const |
Definition at line 618 of file QwEnergyCalculator.cc.
References fEnergyChange, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
inline |
Definition at line 138 of file QwEnergyCalculator.h.
References fEnergyChange.
Referenced by GetEnergy().
Here is the caller graph for this function:
|
inline |
Definition at line 142 of file QwEnergyCalculator.h.
References GetEnergy(), and QwEnergyCalculator().
Here is the call graph for this function:
|
inlineoverridevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 103 of file QwEnergyCalculator.h.
References fEnergyChange.
|
inline |
| void QwEnergyCalculator::GetProjectedPosition | ( | VQwBPM * | device | ) |
Back-project a BPM position from the current dp/p estimate.
| device | BPM device whose X position is solved from energy and other terms. |
fProperty.size()=3, idevice=4
fDevice[i] = qwk_1c12 = device
i=0=idevice
idevice=0, fProperty.size()=3
qwk_1c12X changes only
idevice=0
Definition at line 174 of file QwEnergyCalculator.cc.
References VQwBPM::ApplyResolutionSmearing(), QwMollerADC_Channel::ArcTan(), QwMollerADC_Channel::AssignValueFrom(), QwMollerADC_Channel::ClearEventData(), fDevice, fEnergyChange, VQwBPM::FillRawEventData(), fProperty, fTMatrixRatio, VQwDataElement::GetElementName(), VQwBPM::GetPosition(), QwMollerADC_Channel::InitializeChannel(), VQwBPM::kXAxis, and QwMollerADC_Channel::Scale().
Here is the call graph for this function:
|
inline |
| void QwEnergyCalculator::IncrementErrorCounters | ( | ) |
Increment error counters in the underlying energy channel.
Definition at line 298 of file QwEnergyCalculator.cc.
References fEnergyChange.
| void QwEnergyCalculator::InitializeChannel | ( | TString | name, |
| TString | datatosave ) |
Initialize this energy calculator with a name and data-saving mode.
| name | Element name used for histogram and branch prefixes. |
| datatosave | Storage mode (e.g., "raw" or "derived"). |
Definition at line 34 of file QwEnergyCalculator.cc.
References fEnergyChange, and VQwDataElement::SetElementName().
Referenced by QwEnergyCalculator(), and QwEnergyCalculator().
Here is the call graph for this function:
Here is the caller graph for this function:| void QwEnergyCalculator::InitializeChannel | ( | TString | subsystem, |
| TString | name, | ||
| TString | datatosave ) |
Initialize this energy calculator with subsystem and name.
| subsystem | Subsystem identifier for tree/hist foldering. |
| name | Element name used for histogram and branch prefixes. |
| datatosave | Storage mode (e.g., "raw" or "derived"). |
Definition at line 48 of file QwEnergyCalculator.cc.
References fEnergyChange, and VQwDataElement::SetElementName().
Here is the call graph for this function:
|
inlineoverridevirtual |
|
overridevirtual |
Load mock-data configuration for the underlying channel from a file.
| paramfile | Parameter file reader positioned at channel section. |
Reimplemented from VQwDataElement.
Definition at line 245 of file QwEnergyCalculator.cc.
References fEnergyChange.
| QwEnergyCalculator & QwEnergyCalculator::operator+= | ( | const QwEnergyCalculator & | value | ) |
Add-assign from another calculator (sum energy change).
Definition at line 393 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), and QwEnergyCalculator().
Here is the call graph for this function:| QwEnergyCalculator & QwEnergyCalculator::operator-= | ( | const QwEnergyCalculator & | value | ) |
Subtract-assign from another calculator (difference energy change).
Definition at line 402 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), and QwEnergyCalculator().
Here is the call graph for this function:| QwEnergyCalculator & QwEnergyCalculator::operator= | ( | const QwEnergyCalculator & | value | ) |
Copy-assign from another calculator (event-scoped data).
Definition at line 384 of file QwEnergyCalculator.cc.
References fEnergyChange, VQwDataElement::GetElementName(), and QwEnergyCalculator().
Here is the call graph for this function:
|
overridevirtual |
Print accumulated error counters for diagnostic purposes.
Reimplemented from VQwDataElement.
Definition at line 307 of file QwEnergyCalculator.cc.
References fEnergyChange.
|
overridevirtual |
Print detailed information for this calculator.
Reimplemented from VQwDataElement.
Definition at line 445 of file QwEnergyCalculator.cc.
References fEnergyChange.
|
overridevirtual |
Print a compact value summary for this calculator.
Reimplemented from VQwDataElement.
Definition at line 452 of file QwEnergyCalculator.cc.
References fEnergyChange.
|
overridevirtual |
Process a configuration/event buffer (no-op for this calculator).
Implements VQwDataElement.
Definition at line 378 of file QwEnergyCalculator.cc.
References QwBPMStripline< T >::subelement.
| void QwEnergyCalculator::ProcessEvent | ( | ) |
Compute per-event energy change by summing configured device terms.
Definition at line 103 of file QwEnergyCalculator.cc.
References QwMollerADC_Channel::ArcTan(), QwMollerADC_Channel::AssignValueFrom(), ClearEventData(), QwMollerADC_Channel::ClearEventData(), fDevice, fEnergyChange, fProperty, fTMatrixRatio, QwMollerADC_Channel::InitializeChannel(), VQwBPM::kXAxis, and QwMollerADC_Channel::Scale().
Here is the call graph for this function:| void QwEnergyCalculator::RandomizeEventData | ( | int | helicity = 0, |
| double | time = 0.0 ) |
Generate mock event data for testing.
| helicity | Helicity state indicator. |
| time | Event time or timestamp proxy. |
Definition at line 151 of file QwEnergyCalculator.cc.
References fEnergyChange.
| void QwEnergyCalculator::Ratio | ( | QwEnergyCalculator & | numer, |
| QwEnergyCalculator & | denom ) |
Define the ratio for asymmetry formation (here acts as pass-through).
| numer | Numerator calculator. |
| denom | Denominator calculator. |
Definition at line 425 of file QwEnergyCalculator.cc.
References QwEnergyCalculator().
Here is the call graph for this function:| void QwEnergyCalculator::Scale | ( | Double_t | factor | ) |
Scale the underlying energy channel by a constant factor.
| factor | Multiplicative scale factor. |
Definition at line 438 of file QwEnergyCalculator.cc.
References fEnergyChange.
| void QwEnergyCalculator::Set | ( | const VQwBPM * | device, |
| TString | type, | ||
| TString | property, | ||
| Double_t | tmatrix_ratio ) |
Register a BPM-based device contributing to the energy calculation.
| device | Pointer to contributing BPM object. |
| type | Device type string (e.g., BPM, ComboBPM). |
| property | Property descriptor (e.g., targetbeamangle). |
| tmatrix_ratio | Transport matrix ratio coefficient for contribution. |
Definition at line 63 of file QwEnergyCalculator.cc.
References fDevice, fProperty, fTMatrixRatio, fType, and VQwDataElement::GetElementName().
Here is the call graph for this function:
|
inline |
Definition at line 95 of file QwEnergyCalculator.h.
References bEVENTCUTMODE, and fEnergyChange.
| void QwEnergyCalculator::SetRandomEventParameters | ( | Double_t | mean, |
| Double_t | sigma ) |
Configure Gaussian mock data parameters for the underlying channel.
| mean | Mean value for the distribution. |
| sigma | Standard deviation for the distribution. |
Definition at line 163 of file QwEnergyCalculator.cc.
References fEnergyChange.
| void QwEnergyCalculator::SetRootSaveStatus | ( | TString & | prefix | ) |
Determine whether to save full ROOT output based on the prefix.
| prefix | Branch/histogram prefix (may toggle full save for asym/diff). |
Definition at line 82 of file QwEnergyCalculator.cc.
References bFullSave.
Referenced by ConstructBranch(), ConstructBranch(), ConstructBranchAndVector(), and ConstructHistograms().
Here is the caller graph for this function:| Int_t QwEnergyCalculator::SetSingleEventCuts | ( | Double_t | minX, |
| Double_t | maxX ) |
Set single-event cut limits on the underlying energy channel.
| minX | Lower limit. |
| maxX | Upper limit. |
Definition at line 477 of file QwEnergyCalculator.cc.
References fEnergyChange.
| void QwEnergyCalculator::SetSingleEventCuts | ( | UInt_t | errorflag, |
| Double_t | LL = 0, | ||
| Double_t | UL = 0, | ||
| Double_t | stability = 0, | ||
| Double_t | burplevel = 0 ) |
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 the underlying channel.
| errorflag | Device-specific error flag mask to set. |
| LL | Lower limit. |
| UL | Upper limit. |
| stability | Stability threshold. |
| burplevel | Burp detection threshold. |
Definition at line 490 of file QwEnergyCalculator.cc.
References QwLog::endl(), fEnergyChange, kBCMErrorFlag, and QwMessage.
Here is the call graph for this function:| void QwEnergyCalculator::Sum | ( | const QwEnergyCalculator & | value1, |
| const QwEnergyCalculator & | value2 ) |
Definition at line 409 of file QwEnergyCalculator.cc.
References QwEnergyCalculator().
Here is the call graph for this function:
|
overridevirtual |
Update and return the composite event-cut error flag.
Reimplemented from VQwDataElement.
Definition at line 320 of file QwEnergyCalculator.cc.
References fDevice, fEnergyChange, fProperty, and VQwBPM::kXAxis.
| void QwEnergyCalculator::UpdateErrorFlag | ( | const QwEnergyCalculator * | ev_error | ) |
Propagate error flags from a reference calculator into this one.
| ev_error | Reference energy calculator containing error flags to merge. |
Definition at line 339 of file QwEnergyCalculator.cc.
References fEnergyChange, and QwEnergyCalculator().
Here is the call graph for this function:
|
private |
Definition at line 160 of file QwEnergyCalculator.h.
Referenced by SetEventCutMode().
|
private |
Definition at line 161 of file QwEnergyCalculator.h.
Referenced by SetRootSaveStatus().
|
private |
Definition at line 156 of file QwEnergyCalculator.h.
Referenced by ApplySingleEventCuts(), GetNumberOfElements(), GetProjectedPosition(), GetSubElementName(), ProcessEvent(), Set(), and UpdateErrorFlag().
|
protected |
Definition at line 152 of file QwEnergyCalculator.h.
Referenced by AccumulateRunningSum(), ApplySingleEventCuts(), CalculateRunningAverage(), CheckForBurpFail(), ClearEventData(), ConstructBranch(), ConstructBranch(), ConstructBranchAndVector(), ConstructHistograms(), DeaccumulateRunningSum(), FillHistograms(), FillTreeVector(), GetEnergy(), GetEventcutErrorFlag(), GetProjectedPosition(), IncrementErrorCounters(), InitializeChannel(), InitializeChannel(), LoadMockDataParameters(), operator+=(), operator-=(), operator=(), PrintErrorCounters(), PrintInfo(), PrintValue(), ProcessEvent(), QwEnergyCalculator(), RandomizeEventData(), Scale(), SetEventCutMode(), SetRandomEventParameters(), SetSingleEventCuts(), SetSingleEventCuts(), UpdateErrorFlag(), and UpdateErrorFlag().
|
private |
Definition at line 158 of file QwEnergyCalculator.h.
Referenced by ApplySingleEventCuts(), GetProjectedPosition(), ProcessEvent(), Set(), and UpdateErrorFlag().
|
private |
Definition at line 157 of file QwEnergyCalculator.h.
Referenced by GetProjectedPosition(), ProcessEvent(), and Set().
|
private |
Definition at line 159 of file QwEnergyCalculator.h.
Referenced by Set().