JAPAn
Just Another Parity Analyzer
|
Abstract base class for scaler channels. More...
#include <QwScaler_Channel.h>
Public Member Functions | |
VQwScaler_Channel () | |
VQwScaler_Channel (TString name, TString datatosave="raw") | |
VQwScaler_Channel (const VQwScaler_Channel &source) | |
VQwScaler_Channel (const VQwScaler_Channel &source, VQwDataElement::EDataToSave datatosave) | |
~VQwScaler_Channel () override | |
void | CopyFrom (const VQwScaler_Channel &value) |
void | InitializeChannel (TString name, TString datatosave="raw") override |
Initialize the fields in this object. | |
void | InitializeChannel (TString subsystem, TString instrumenttype, TString name, TString datatosave) override |
Initialize the fields in this object. | |
void | SetDefaultSampleSize (size_t) |
void | LoadChannelParameters (QwParameterFile ¶mfile) override |
void | ClearEventData () override |
Clear the event data in this element. | |
void | RandomizeEventData (int helicity=0, double time=0.0) override |
Internally generate random event data. | |
void | SetEventData (Double_t value) |
void | SetRawEventData () override |
void | EncodeEventData (std::vector< UInt_t > &buffer) override=0 |
Encode the event data into a CODA buffer. | |
Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t num_words_left, UInt_t index=0) override=0 |
Process the CODA event buffer for this element. | |
void | SmearByResolution (double resolution) override |
void | ProcessEvent () override |
Int_t | GetRawValue (size_t) const override |
Double_t | GetValue (size_t) const override |
Double_t | GetValueM2 (size_t) const override |
Double_t | GetValueError (size_t) const override |
VQwScaler_Channel & | operator= (const VQwScaler_Channel &value) |
void | AssignScaledValue (const VQwScaler_Channel &value, Double_t scale) |
void | AssignValueFrom (const VQwDataElement *valueptr) override |
void | AddValueFrom (const VQwHardwareChannel *valueptr) override |
void | SubtractValueFrom (const VQwHardwareChannel *valueptr) override |
void | MultiplyBy (const VQwHardwareChannel *valueptr) override |
void | DivideBy (const VQwHardwareChannel *valueptr) override |
VQwScaler_Channel & | operator+= (const VQwScaler_Channel &value) |
VQwScaler_Channel & | operator-= (const VQwScaler_Channel &value) |
VQwScaler_Channel & | operator*= (const VQwScaler_Channel &value) |
VQwHardwareChannel & | operator+= (const VQwHardwareChannel &input) override |
VQwHardwareChannel & | operator-= (const VQwHardwareChannel &input) override |
VQwHardwareChannel & | operator*= (const VQwHardwareChannel &input) override |
VQwHardwareChannel & | operator/= (const VQwHardwareChannel &input) override |
void | Sum (VQwScaler_Channel &value1, VQwScaler_Channel &value2) |
void | Difference (VQwScaler_Channel &value1, VQwScaler_Channel &value2) |
void | Ratio (const VQwScaler_Channel &numer, const VQwScaler_Channel &denom) |
void | Product (VQwScaler_Channel &numer, VQwScaler_Channel &denom) |
void | AddChannelOffset (Double_t Offset) |
void | Scale (Double_t Offset) override |
void | DivideBy (const VQwScaler_Channel &denom) |
Int_t | ApplyHWChecks () override |
Bool_t | ApplySingleEventCuts () override |
Bool_t | CheckForBurpFail (const VQwDataElement *) |
void | IncrementErrorCounters () override |
void | PrintErrorCounters () const override |
report number of events failed due to HW and event cut failure | |
void | ConstructHistograms (TDirectory *folder, TString &prefix) override |
Construct the histograms for this data element. | |
void | FillHistograms () override |
Fill the histograms for this data element. | |
void | ConstructBranchAndVector (TTree *tree, TString &prefix, QwRootTreeBranchVector &values) override=0 |
void | FillTreeVector (QwRootTreeBranchVector &values) const override=0 |
void | ConstructBranch (TTree *tree, TString &prefix) override |
void | AccumulateRunningSum (const VQwScaler_Channel &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) |
void | AccumulateRunningSum (const VQwHardwareChannel *value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) override |
void | DeaccumulateRunningSum (const VQwScaler_Channel &value, Int_t ErrorMask) |
void | PrintValue () const override |
Print single line of value and error of this data element. | |
void | PrintInfo () const override |
Print multiple lines of information about this data element. | |
void | CalculateRunningAverage () override |
Bool_t | NeedsExternalClock () override |
void | SetNeedsExternalClock (Bool_t needed) override |
std::string | GetExternalClockName () override |
void | SetExternalClockPtr (const VQwHardwareChannel *clock) override |
void | SetExternalClockName (const std::string name) override |
virtual Bool_t | IsDifferentialScaler () |
virtual void | SetDifferentialScaler (Bool_t diff) |
void | ScaledAdd (Double_t scale, const VQwHardwareChannel *value) override |
virtual void | LoadMockDataParameters (QwParameterFile ¶mfile) |
Load the mock data parameters from the current line in the param file. | |
Int_t | GetRawValue () const |
Double_t | GetValue () const |
Double_t | GetValueM2 () const |
Double_t | GetValueError () const |
Double_t | GetValueWidth () const |
Double_t | GetValueWidth (size_t element) const |
virtual void | DeaccumulateRunningSum (const VQwHardwareChannel *value, Int_t ErrorMask=0xFFFFFFF) |
![]() | |
VQwHardwareChannel () | |
VQwHardwareChannel (const VQwHardwareChannel &value) | |
VQwHardwareChannel (const VQwHardwareChannel &value, VQwDataElement::EDataToSave datatosave) | |
~VQwHardwareChannel () override | |
void | CopyFrom (const VQwHardwareChannel &value) |
void | ProcessOptions () |
virtual VQwHardwareChannel * | Clone () const |
virtual VQwHardwareChannel * | Clone (VQwDataElement::EDataToSave datatosave) const =0 |
size_t | GetNumberOfDataWords () |
Get the number of data words in this data element. | |
size_t | GetNumberOfSubelements () |
Get the number of subelements in this data element. | |
Int_t | GetRawValue () const |
Double_t | GetValue () const |
Double_t | GetValueM2 () const |
Double_t | GetValueError () const |
Double_t | GetValueWidth () const |
Double_t | GetValueWidth (size_t element) const |
void | InitializeChannel (TString name) |
Initialize the fields in this object. | |
void | SetEventCutMode (Int_t bcuts) |
virtual Bool_t | CheckForBurpFail (const VQwHardwareChannel *event) |
void | SetSingleEventCuts (Double_t min, Double_t max) |
Set the upper and lower limits (fULimit and fLLimit) for this channel. | |
void | SetSingleEventCuts (UInt_t errorflag, Double_t min, Double_t max, Double_t stability=-1.0, Double_t BurpLevel=-1.0) |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel. | |
Double_t | GetEventCutUpperLimit () const |
Double_t | GetEventCutLowerLimit () const |
Double_t | GetStabilityLimit () const |
UInt_t | UpdateErrorFlag () override |
Update the error flag based on the error flags of internally contained objects Return parameter is the "Eventcut Error Flag". | |
void | UpdateErrorFlag (const VQwHardwareChannel &elem) |
virtual UInt_t | GetErrorCode () const |
VQwHardwareChannel & | operator= (const VQwHardwareChannel &value) |
Arithmetic assignment operator: Should only copy event-based data. | |
void | AssignScaledValue (const VQwHardwareChannel &value, Double_t scale) |
virtual void | Ratio (const VQwHardwareChannel *numer, const VQwHardwareChannel *denom) |
void | SetPedestal (Double_t ped) |
Double_t | GetPedestal () const |
void | SetCalibrationFactor (Double_t factor) |
Double_t | GetCalibrationFactor () const |
void | AddEntriesToList (std::vector< QwDBInterface > &row_list) |
virtual void | AddErrEntriesToList (std::vector< QwErrDBInterface > &) |
void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist) |
virtual void | CopyParameters (const VQwHardwareChannel *) |
void | UpdateErrorFlag (const UInt_t &error) |
![]() | |
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 |
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 UInt_t | GetEventcutErrorFlag () |
return the error flag on this channel/device | |
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 | |
![]() | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. | |
![]() | |
MQwMockable () | |
virtual | ~MQwMockable () |
void | SetRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
Set a single set of harmonic drift parameters. | |
void | AddRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
Add drift parameters to the internal set. | |
void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
Set the normal random event parameters. | |
void | SetRandomEventAsymmetry (Double_t asymmetry) |
Set the helicity asymmetry. | |
Double_t | GetRandomValue () |
void | UseExternalRandomVariable () |
Set the flag to use an externally provided random variable. | |
void | SetExternalRandomVariable (Double_t random_variable) |
Set the externally provided random variable. | |
void | SetMockDataAsDiff () |
Static Public Member Functions | |
static Int_t | GetBufferOffset (Int_t scalerindex, Int_t wordindex, UInt_t header=1) |
static void | PrintErrorCounterHead () |
static void | PrintErrorCounterTail () |
static void | SetBurpHoldoff (Int_t holdoff) |
Protected Member Functions | |
VQwScaler_Channel & | operator/= (const VQwScaler_Channel &) |
![]() | |
void | SetNumberOfDataWords (const UInt_t &numwords) |
Set the number of data words in this data element. | |
void | SetNumberOfSubElements (const size_t elements) |
Set the number of data words in this data element. | |
void | SetDataToSave (TString datatosave) |
Set the flag indicating if raw or derived values are in this data element. | |
void | SetDataToSave (VQwDataElement::EDataToSave datatosave) |
Set the flag indicating if raw or derived values are in this data element. | |
void | SetDataToSaveByPrefix (const TString &prefix) |
Set the flag indicating if raw or derived values are in this data element based on prefix. | |
void | RangeCheck (size_t element) const |
Checks that the requested element is in range, to be used in accesses to subelements similar to std::vector::at(). | |
![]() | |
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) |
![]() | |
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 | |
UInt_t | fHeader |
UInt_t | fValue_Raw_Old |
UInt_t | fValue_Raw |
Double_t | fValue |
Double_t | fValueM2 |
Double_t | fValueError |
const VQwHardwareChannel * | fNormChannelPtr |
Double_t | fClockNormalization |
std::string | fNormChannelName |
Bool_t | fNeedsExternalClock |
Bool_t | fIsDifferentialScaler |
Int_t | fNumEvtsWithHWErrors |
Int_t | fNumEvtsWithEventCutsRejected |
![]() | |
UInt_t | fNumberOfDataWords |
Number of raw data words in this data element. | |
UInt_t | fNumberOfSubElements |
Number of subelements in this data element. | |
EDataToSave | fDataToSave |
size_t | fTreeArrayIndex |
size_t | fTreeArrayNumEntries |
Double_t | fPedestal |
Double_t | fCalibrationFactor |
Bool_t | kFoundPedestal |
Bool_t | kFoundGain |
Int_t | bEVENTCUTMODE |
Double_t | fULimit |
Double_t | fLLimit |
Double_t | fStability |
Double_t | fBurpThreshold |
Int_t | fBurpCountdown |
![]() | |
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 | |
![]() | |
std::vector< TH1_ptr > | fHistograms |
Histograms associated with this data element. | |
bool | fUseExternalRandomVariable |
Flag to use an externally provided normal random variable. | |
double | fExternalRandomVariable |
Externally provided normal random variable. | |
bool | fCalcMockDataAsDiff |
Double_t | fMockAsymmetry |
Helicity asymmetry. | |
Double_t | fMockGaussianMean |
Mean of normal distribution. | |
Double_t | fMockGaussianSigma |
Sigma of normal distribution. | |
std::vector< Double_t > | fMockDriftAmplitude |
Harmonic drift amplitude. | |
std::vector< Double_t > | fMockDriftFrequency |
Harmonic drift frequency. | |
std::vector< Double_t > | fMockDriftPhase |
Harmonic drift phase. | |
Static Protected Attributes | |
static const Bool_t | kDEBUG = kFALSE |
static Int_t | fBurpHoldoff = 10 |
static boost::mt19937 | fRandomnessGenerator |
Internal randomness generator. | |
static boost::normal_distribution< double > | fNormalDistribution |
Internal normal probability distribution. | |
static boost::variate_generator< boost::mt19937, boost::normal_distribution< double > > | fNormalRandomVariable |
Internal normal random variable. | |
Additional Inherited Members | |
![]() | |
enum | EDataToSave { kRaw = 0 , kDerived , kMoments } |
Abstract base class for scaler channels.
Provides common infrastructure for scaler-based hardware channels, including differential scaler support, external clock normalization, and mock data generation. Concrete implementations handle the hardware-specific details of scaler decoding.
Definition at line 34 of file QwScaler_Channel.h.
|
inline |
Definition at line 53 of file QwScaler_Channel.h.
References InitializeChannel(), and MQwMockable::MQwMockable().
Referenced by AccumulateRunningSum(), AccumulateRunningSum(), AddValueFrom(), AssignScaledValue(), AssignValueFrom(), CopyFrom(), DeaccumulateRunningSum(), Difference(), DivideBy(), DivideBy(), FillTreeVector(), MultiplyBy(), operator*=(), operator*=(), operator+=(), operator+=(), operator-=(), operator-=(), operator/=(), operator/=(), operator=(), Product(), QwScaler_Channel< data_mask, data_shift >::QwScaler_Channel(), QwScaler_Channel< data_mask, data_shift >::QwScaler_Channel(), QwScaler_Channel< data_mask, data_shift >::QwScaler_Channel(), QwScaler_Channel< data_mask, data_shift >::QwScaler_Channel(), Ratio(), ScaledAdd(), SubtractValueFrom(), Sum(), VQwScaler_Channel(), and VQwScaler_Channel().
|
inline |
Definition at line 57 of file QwScaler_Channel.h.
References InitializeChannel(), and MQwMockable::MQwMockable().
|
inline |
Definition at line 60 of file QwScaler_Channel.h.
References fClockNormalization, fIsDifferentialScaler, fNeedsExternalClock, fNormChannelName, fValue, fValue_Raw, fValue_Raw_Old, fValueError, fValueM2, MQwMockable::MQwMockable(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
|
inline |
Definition at line 74 of file QwScaler_Channel.h.
References fClockNormalization, fIsDifferentialScaler, fNeedsExternalClock, fNormChannelName, fValue, fValue_Raw, fValue_Raw_Old, fValueError, fValueM2, MQwMockable::MQwMockable(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
|
inlineoverride |
Definition at line 88 of file QwScaler_Channel.h.
|
inlineoverridevirtual |
Reimplemented from VQwHardwareChannel.
Definition at line 201 of file QwScaler_Channel.h.
References AccumulateRunningSum(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
void VQwScaler_Channel::AccumulateRunningSum | ( | const VQwScaler_Channel & | value, |
Int_t | count = 0, | ||
Int_t | ErrorMask = 0xFFFFFFF ) |
Definition at line 786 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue, fValueM2, VQwDataElement::GetElementName(), kPreserveError, QwWarning, and VQwScaler_Channel().
Referenced by AccumulateRunningSum(), and DeaccumulateRunningSum().
void VQwScaler_Channel::AddChannelOffset | ( | Double_t | Offset | ) |
Definition at line 695 of file QwScaler_Channel.cc.
References fValue, and VQwDataElement::IsNameEmpty().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 447 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 719 of file QwScaler_Channel.cc.
References VQwHardwareChannel::bEVENTCUTMODE, VQwDataElement::fErrorFlag, GetRawValue(), and kErrorFlag_ZeroHW.
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 732 of file QwScaler_Channel.cc.
References VQwHardwareChannel::bEVENTCUTMODE, VQwDataElement::fErrorFlag, VQwHardwareChannel::fLLimit, VQwHardwareChannel::fULimit, GetValue(), kErrorFlag_EventCut_L, and kErrorFlag_EventCut_U.
void VQwScaler_Channel::AssignScaledValue | ( | const VQwScaler_Channel & | value, |
Double_t | scale ) |
Definition at line 511 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue, fValueError, fValueM2, VQwDataElement::IsNameEmpty(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 436 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwDataElement::VQwDataElement(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 871 of file QwScaler_Channel.cc.
References VQwDataElement::fGoodEventCount, fValueError, and fValueM2.
|
inline |
Definition at line 177 of file QwScaler_Channel.h.
References VQwDataElement::VQwDataElement().
|
overridevirtual |
Clear the event data in this element.
Reimplemented from VQwHardwareChannel.
Definition at line 67 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fHeader, fValue, fValue_Raw, fValueError, and fValueM2.
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 293 of file QwScaler_Channel.cc.
References fValue, VQwDataElement::GetElementName(), and VQwDataElement::IsNameEmpty().
|
overridepure virtual |
Implements VQwHardwareChannel.
Implemented in QwScaler_Channel< data_mask, data_shift >, and QwScaler_Channel< 0x00ffffff, 0 >.
|
overridevirtual |
Construct the histograms for this data element.
Implements VQwDataElement.
Definition at line 231 of file QwScaler_Channel.cc.
References MQwHistograms::fHistograms, VQwDataElement::GetElementName(), and gQwHists.
|
inline |
Definition at line 90 of file QwScaler_Channel.h.
References VQwHardwareChannel::CopyFrom(), fClockNormalization, fIsDifferentialScaler, fNeedsExternalClock, fNormChannelName, fValue, fValue_Raw, fValue_Raw_Old, fValueError, fValueM2, and VQwScaler_Channel().
Referenced by QwScaler_Channel< 0x00ffffff, 0 >::CopyFrom().
|
inlinevirtual |
Reimplemented from VQwHardwareChannel.
Definition at line 255 of file VQwHardwareChannel.h.
|
inline |
Definition at line 209 of file QwScaler_Channel.h.
References AccumulateRunningSum(), and VQwScaler_Channel().
void VQwScaler_Channel::Difference | ( | VQwScaler_Channel & | value1, |
VQwScaler_Channel & | value2 ) |
Definition at line 620 of file QwScaler_Channel.cc.
References VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 484 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
void VQwScaler_Channel::DivideBy | ( | const VQwScaler_Channel & | denom | ) |
Definition at line 713 of file QwScaler_Channel.cc.
References VQwScaler_Channel().
|
overridepure virtual |
Encode the event data into a CODA buffer.
Implements MQwMockable.
Implemented in QwScaler_Channel< data_mask, data_shift >, and QwScaler_Channel< 0x00ffffff, 0 >.
|
overridevirtual |
Fill the histograms for this data element.
Implements VQwDataElement.
Definition at line 248 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, MQwHistograms::fHistograms, fValue, and VQwDataElement::IsNameEmpty().
|
overridepure virtual |
Implements VQwHardwareChannel.
Implemented in QwScaler_Channel< data_mask, data_shift >, and QwScaler_Channel< 0x00ffffff, 0 >.
References VQwScaler_Channel().
|
static |
Static member function to return the word offset within a data buffer given the module number index and the channel number index.
scalerindex | Scaler index within this buffer; counts from 1 |
wordindex | Word index within this scaler; counts from 1 |
header | Number of header words; normally is 1 |
Definition at line 111 of file QwScaler_Channel.cc.
References QwLog::endl(), and QwError.
Referenced by QwBeamDetectorID::QwBeamDetectorID(), and QwModChannelID::QwModChannelID().
|
inlineoverridevirtual |
Reimplemented from VQwDataElement.
Definition at line 221 of file QwScaler_Channel.h.
References fNormChannelName.
|
inline |
Definition at line 125 of file VQwHardwareChannel.h.
Referenced by ApplyHWChecks().
|
inlineoverridevirtual |
Implements VQwHardwareChannel.
Definition at line 142 of file QwScaler_Channel.h.
References fValue_Raw.
|
inline |
Definition at line 126 of file VQwHardwareChannel.h.
Referenced by ApplySingleEventCuts(), and PrintValue().
|
inlineoverridevirtual |
Implements VQwHardwareChannel.
Definition at line 143 of file QwScaler_Channel.h.
References fValue.
|
inline |
Definition at line 128 of file VQwHardwareChannel.h.
Referenced by PrintValue().
|
inlineoverridevirtual |
Implements VQwHardwareChannel.
Definition at line 145 of file QwScaler_Channel.h.
References fValueError.
|
inline |
Definition at line 127 of file VQwHardwareChannel.h.
|
inlineoverridevirtual |
Implements VQwHardwareChannel.
Definition at line 144 of file QwScaler_Channel.h.
References fValueM2.
|
inline |
Definition at line 129 of file VQwHardwareChannel.h.
Referenced by PrintValue().
|
inline |
Definition at line 134 of file VQwHardwareChannel.h.
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 774 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fNumEvtsWithEventCutsRejected, fNumEvtsWithHWErrors, kErrorFlag_EventCut_L, kErrorFlag_EventCut_U, and kErrorFlag_ZeroHW.
|
overridevirtual |
Initialize the fields in this object.
Implements VQwHardwareChannel.
Definition at line 22 of file QwScaler_Channel.cc.
References VQwHardwareChannel::fCalibrationFactor, fClockNormalization, VQwDataElement::fErrorConfigFlag, VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fHeader, fIsDifferentialScaler, fNeedsExternalClock, fNormChannelPtr, fNumEvtsWithEventCutsRejected, fNumEvtsWithHWErrors, VQwHardwareChannel::fPedestal, VQwHardwareChannel::fTreeArrayIndex, VQwHardwareChannel::fTreeArrayNumEntries, fValue, fValue_Raw, fValue_Raw_Old, fValueError, fValueM2, VQwHardwareChannel::SetDataToSave(), VQwDataElement::SetElementName(), VQwHardwareChannel::SetNumberOfDataWords(), VQwHardwareChannel::SetNumberOfSubElements(), and MQwMockable::SetRandomEventParameters().
Referenced by InitializeChannel(), VQwScaler_Channel(), and VQwScaler_Channel().
|
overridevirtual |
Initialize the fields in this object.
Implements VQwHardwareChannel.
Definition at line 61 of file QwScaler_Channel.cc.
References InitializeChannel(), VQwDataElement::SetModuleType(), and VQwDataElement::SetSubsystemName().
|
inlinevirtual |
Definition at line 226 of file QwScaler_Channel.h.
References fIsDifferentialScaler.
Referenced by QwScaler_Channel< data_mask, data_shift >::ProcessEvBuffer(), and SetRawEventData().
|
overridevirtual |
Reimplemented from VQwDataElement.
Definition at line 141 of file QwScaler_Channel.cc.
References fNeedsExternalClock, QwParameterFile::ReturnValue(), and SetExternalClockName().
|
virtual |
Load the mock data parameters from the current line in the param file.
Reimplemented from VQwDataElement.
Definition at line 60 of file MQwMockable.cc.
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 471 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
|
inlineoverridevirtual |
Reimplemented from VQwDataElement.
Definition at line 219 of file QwScaler_Channel.h.
References fNeedsExternalClock.
Referenced by ProcessEvent().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 585 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
VQwScaler_Channel & VQwScaler_Channel::operator*= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 545 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fHeader, fValue, fValue_Raw, fValueM2, VQwDataElement::IsNameEmpty(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 557 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
VQwScaler_Channel & VQwScaler_Channel::operator+= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 525 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValueM2, VQwDataElement::IsNameEmpty(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 571 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
VQwScaler_Channel & VQwScaler_Channel::operator-= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 535 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValueM2, VQwDataElement::IsNameEmpty(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 599 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
|
protected |
Definition at line 641 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::fErrorFlag, fValue, fValueM2, VQwDataElement::GetElementName(), VQwDataElement::IsNameEmpty(), QwVerbose, QwWarning, and VQwScaler_Channel().
VQwScaler_Channel & VQwScaler_Channel::operator= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 497 of file QwScaler_Channel.cc.
References fHeader, fValue, fValue_Raw, fValueError, fValueM2, VQwDataElement::IsNameEmpty(), VQwHardwareChannel::operator=(), and VQwScaler_Channel().
|
static |
|
overridevirtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
Definition at line 886 of file QwScaler_Channel.cc.
References QwLog::endl(), fNumEvtsWithEventCutsRejected, fNumEvtsWithHWErrors, VQwDataElement::GetElementName(), and QwMessage.
|
static |
References VQwHardwareChannel::AccumulateRunningSum(), VQwHardwareChannel::DeaccumulateRunningSum(), VQwHardwareChannel::GetRawValue(), VQwHardwareChannel::GetValue(), VQwHardwareChannel::GetValueError(), VQwHardwareChannel::GetValueM2(), VQwHardwareChannel::GetValueWidth(), and MQwMockable::LoadMockDataParameters().
|
overridevirtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
Definition at line 224 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::GetElementName(), and QwMessage.
|
overridevirtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
Definition at line 211 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::GetElementName(), VQwDataElement::GetGoodEventCount(), VQwDataElement::GetModuleType(), VQwDataElement::GetSubsystemName(), GetValue(), GetValueError(), GetValueWidth(), and QwMessage.
|
overridepure virtual |
Process the CODA event buffer for this element.
Implements VQwDataElement.
Implemented in QwScaler_Channel< data_mask, data_shift >, and QwScaler_Channel< 0x00ffffff, 0 >.
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 192 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwHardwareChannel::fCalibrationFactor, fNormChannelName, fNormChannelPtr, VQwHardwareChannel::fPedestal, fValue, fValue_Raw, VQwDataElement::GetElementName(), NeedsExternalClock(), and QwWarning.
void VQwScaler_Channel::Product | ( | VQwScaler_Channel & | numer, |
VQwScaler_Channel & | denom ) |
Definition at line 681 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fHeader, fValue, fValue_Raw, VQwDataElement::IsNameEmpty(), and VQwScaler_Channel().
|
overridevirtual |
Internally generate random event data.
Implements MQwMockable.
Definition at line 79 of file QwScaler_Channel.cc.
References VQwHardwareChannel::fCalibrationFactor, MQwMockable::fMockAsymmetry, MQwMockable::fMockDriftAmplitude, MQwMockable::fMockDriftFrequency, MQwMockable::fMockDriftPhase, MQwMockable::fMockGaussianMean, MQwMockable::fMockGaussianSigma, VQwHardwareChannel::fPedestal, fValue, fValue_Raw, MQwMockable::GetRandomValue(), and Qw::pi.
void VQwScaler_Channel::Ratio | ( | const VQwScaler_Channel & | numer, |
const VQwScaler_Channel & | denom ) |
Definition at line 625 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fHeader, fValue_Raw, VQwDataElement::IsNameEmpty(), and VQwScaler_Channel().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 704 of file QwScaler_Channel.cc.
References fValue, fValueM2, and VQwDataElement::IsNameEmpty().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 900 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValueM2, VQwDataElement::GetElementName(), VQwDataElement::IsNameEmpty(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
|
inline |
Definition at line 110 of file QwScaler_Channel.h.
|
inlinevirtual |
Definition at line 227 of file QwScaler_Channel.h.
References fIsDifferentialScaler.
Referenced by QwScaler::LoadChannelMap().
void VQwScaler_Channel::SetEventData | ( | Double_t | value | ) |
Definition at line 133 of file QwScaler_Channel.cc.
References fValue, and fValue_Raw.
|
inlineoverridevirtual |
Reimplemented from VQwDataElement.
Definition at line 223 of file QwScaler_Channel.h.
References fNormChannelName.
Referenced by LoadChannelParameters().
|
inlineoverridevirtual |
Reimplemented from VQwDataElement.
Definition at line 222 of file QwScaler_Channel.h.
References fNormChannelPtr, and VQwHardwareChannel::VQwHardwareChannel().
|
inlineoverridevirtual |
Reimplemented from VQwDataElement.
Definition at line 220 of file QwScaler_Channel.h.
References fNeedsExternalClock.
|
inlineoverridevirtual |
Implements MQwMockable.
Definition at line 121 of file QwScaler_Channel.h.
References VQwHardwareChannel::fCalibrationFactor, VQwHardwareChannel::fPedestal, fValue, fValue_Raw, fValue_Raw_Old, and IsDifferentialScaler().
Referenced by SmearByResolution().
|
overridevirtual |
Implements MQwMockable.
Definition at line 95 of file QwScaler_Channel.cc.
References fValue, fValueM2, MQwMockable::GetRandomValue(), and SetRawEventData().
|
overridevirtual |
Implements VQwHardwareChannel.
Definition at line 459 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName(), VQwHardwareChannel::VQwHardwareChannel(), and VQwScaler_Channel().
void VQwScaler_Channel::Sum | ( | VQwScaler_Channel & | value1, |
VQwScaler_Channel & | value2 ) |
Definition at line 614 of file QwScaler_Channel.cc.
References VQwScaler_Channel().
|
protected |
Definition at line 244 of file QwScaler_Channel.h.
Referenced by CopyFrom(), InitializeChannel(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 237 of file QwScaler_Channel.h.
Referenced by ClearEventData(), QwScaler_Channel< data_mask, data_shift >::FillTreeVector(), InitializeChannel(), operator*=(), operator=(), QwScaler_Channel< data_mask, data_shift >::ProcessEvBuffer(), Product(), and Ratio().
|
protected |
Definition at line 248 of file QwScaler_Channel.h.
Referenced by CopyFrom(), InitializeChannel(), IsDifferentialScaler(), SetDifferentialScaler(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 247 of file QwScaler_Channel.h.
Referenced by CopyFrom(), InitializeChannel(), LoadChannelParameters(), NeedsExternalClock(), SetNeedsExternalClock(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 245 of file QwScaler_Channel.h.
Referenced by CopyFrom(), GetExternalClockName(), ProcessEvent(), SetExternalClockName(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 243 of file QwScaler_Channel.h.
Referenced by InitializeChannel(), ProcessEvent(), and SetExternalClockPtr().
|
protected |
Definition at line 252 of file QwScaler_Channel.h.
Referenced by IncrementErrorCounters(), InitializeChannel(), and PrintErrorCounters().
|
protected |
Definition at line 251 of file QwScaler_Channel.h.
Referenced by IncrementErrorCounters(), InitializeChannel(), and PrintErrorCounters().
|
protected |
Definition at line 240 of file QwScaler_Channel.h.
Referenced by AccumulateRunningSum(), AddChannelOffset(), AssignScaledValue(), ClearEventData(), ConstructBranch(), CopyFrom(), FillHistograms(), QwScaler_Channel< data_mask, data_shift >::FillTreeVector(), GetValue(), InitializeChannel(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), QwScaler_Channel< data_mask, data_shift >::ProcessEvBuffer(), ProcessEvent(), Product(), RandomizeEventData(), Scale(), ScaledAdd(), SetEventData(), SetRawEventData(), SmearByResolution(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 239 of file QwScaler_Channel.h.
Referenced by ClearEventData(), CopyFrom(), QwScaler_Channel< data_mask, data_shift >::EncodeEventData(), QwScaler_Channel< data_mask, data_shift >::FillTreeVector(), GetRawValue(), InitializeChannel(), operator*=(), operator=(), QwScaler_Channel< data_mask, data_shift >::ProcessEvBuffer(), ProcessEvent(), Product(), RandomizeEventData(), Ratio(), SetEventData(), SetRawEventData(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 238 of file QwScaler_Channel.h.
Referenced by CopyFrom(), InitializeChannel(), QwScaler_Channel< data_mask, data_shift >::ProcessEvBuffer(), SetRawEventData(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 242 of file QwScaler_Channel.h.
Referenced by AssignScaledValue(), CalculateRunningAverage(), ClearEventData(), CopyFrom(), QwScaler_Channel< data_mask, data_shift >::FillTreeVector(), GetValueError(), InitializeChannel(), operator=(), VQwScaler_Channel(), and VQwScaler_Channel().
|
protected |
Definition at line 241 of file QwScaler_Channel.h.
Referenced by AccumulateRunningSum(), AssignScaledValue(), CalculateRunningAverage(), ClearEventData(), CopyFrom(), QwScaler_Channel< data_mask, data_shift >::FillTreeVector(), GetValueM2(), InitializeChannel(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), Scale(), ScaledAdd(), SmearByResolution(), VQwScaler_Channel(), and VQwScaler_Channel().
|
staticprotected |
Definition at line 235 of file QwScaler_Channel.h.