QwAnalysis
|
#include <QwScaler_Channel.h>
Public Member Functions | |
VQwScaler_Channel () | |
VQwScaler_Channel (TString name, TString datatosave="raw") | |
VQwScaler_Channel (const VQwScaler_Channel &source) | |
virtual | ~VQwScaler_Channel () |
void | InitializeChannel (TString name, TString datatosave="raw") |
Initialize the fields in this object. More... | |
void | InitializeChannel (TString subsystem, TString instrumenttype, TString name, TString datatosave) |
Initialize the fields in this object. More... | |
void | SetDefaultSampleSize (size_t NumberOfSamples_map) |
void | LoadChannelParameters (QwParameterFile ¶mfile) |
void | ClearEventData () |
Clear the event data in this element. More... | |
void | RandomizeEventData (int helicity=0, double time=0.0) |
Internally generate random event data. More... | |
void | SetEventData (Double_t value) |
virtual void | EncodeEventData (std::vector< UInt_t > &buffer)=0 |
Encode the event data into a CODA buffer. More... | |
virtual Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t num_words_left, UInt_t index=0)=0 |
Process the CODA event buffer for this element. More... | |
void | ProcessEvent () |
Int_t | GetRawValue (size_t element) const |
Double_t | GetValue (size_t element) const |
Double_t | GetValueM2 (size_t element) const |
Double_t | GetValueError (size_t element) const |
VQwScaler_Channel & | operator= (const VQwScaler_Channel &value) |
void | AssignScaledValue (const VQwScaler_Channel &value, Double_t scale) |
void | AssignValueFrom (const VQwDataElement *valueptr) |
void | AddValueFrom (const VQwHardwareChannel *valueptr) |
void | SubtractValueFrom (const VQwHardwareChannel *valueptr) |
void | MultiplyBy (const VQwHardwareChannel *valueptr) |
void | DivideBy (const VQwHardwareChannel *valueptr) |
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) |
VQwHardwareChannel & | operator-= (const VQwHardwareChannel *input) |
VQwHardwareChannel & | operator*= (const VQwHardwareChannel *input) |
VQwHardwareChannel & | operator/= (const VQwHardwareChannel *input) |
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) |
void | DivideBy (const VQwScaler_Channel &denom) |
Int_t | ApplyHWChecks () |
Bool_t | ApplySingleEventCuts () |
void | IncrementErrorCounters () |
void | PrintErrorCounters () const |
report number of events failed due to HW and event cut failure More... | |
void | ConstructHistograms (TDirectory *folder, TString &prefix) |
Construct the histograms for this data element. More... | |
void | FillHistograms () |
Fill the histograms for this data element. More... | |
void | ConstructBranchAndVector (TTree *tree, TString &prefix, std::vector< Double_t > &values) |
void | ConstructBranch (TTree *tree, TString &prefix) |
void | FillTreeVector (std::vector< Double_t > &values) const |
void | AccumulateRunningSum (const VQwScaler_Channel &value) |
void | AccumulateRunningSum (const VQwScaler_Channel &value, Int_t count) |
void | AccumulateRunningSum (const VQwHardwareChannel *value, Int_t count) |
void | DeaccumulateRunningSum (const VQwScaler_Channel &value) |
void | PrintValue () const |
Print single line of value and error of this data element. More... | |
void | PrintInfo () const |
Print multiple lines of information about this data element. More... | |
void | CalculateRunningAverage () |
virtual Bool_t | NeedsExternalClock () |
virtual void | SetNeedsExternalClock (Bool_t needed) |
virtual std::string | GetExternalClockName () |
virtual void | SetExternalClockPtr (const VQwHardwareChannel *clock) |
virtual void | SetExternalClockName (const std::string name) |
virtual Bool_t | IsDifferentialScaler () |
virtual void | SetDifferentialScaler (Bool_t diff) |
void | ScaledAdd (Double_t scale, const VQwHardwareChannel *value) |
![]() | |
VQwHardwareChannel () | |
VQwHardwareChannel (const VQwHardwareChannel &value) | |
VQwHardwareChannel (const VQwHardwareChannel &value, VQwDataElement::EDataToSave datatosave) | |
virtual | ~VQwHardwareChannel () |
size_t | GetNumberOfDataWords () |
Get the number of data words in this data element. More... | |
size_t | GetNumberOfSubelements () |
Get the number of subelements in this data element. More... | |
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. More... | |
void | SetEventCutMode (Int_t bcuts) |
void | SetSingleEventCuts (Double_t min, Double_t max) |
Set the upper and lower limits (fULimit and fLLimit) for this channel. More... | |
void | SetSingleEventCuts (UInt_t errorflag, Double_t min, Double_t max, Double_t stability) |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel. More... | |
Double_t | GetEventCutUpperLimit () const |
Double_t | GetEventCutLowerLimit () const |
Double_t | GetStabilityLimit () const |
UInt_t | UpdateErrorFlag () |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag". More... | |
void | UpdateErrorFlag (const VQwHardwareChannel &elem) |
virtual UInt_t | GetErrorCode () const |
virtual VQwHardwareChannel & | operator= (const VQwHardwareChannel &value) |
Arithmetic assignment operator: Should only copy event-based data. More... | |
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 > &row_list) |
virtual void | AccumulateRunningSum (const VQwHardwareChannel *value) |
virtual void | DeaccumulateRunningSum (const VQwHardwareChannel *value) |
void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist) |
![]() | |
VQwDataElement () | |
Default constructor. More... | |
VQwDataElement (const VQwDataElement &value) | |
Copy constructor. More... | |
virtual | ~VQwDataElement () |
Virtual destructor. More... | |
Bool_t | IsNameEmpty () const |
Is the name of this element empty? More... | |
void | SetElementName (const TString &name) |
Set the name of this element. More... | |
virtual const TString & | GetElementName () const |
Get the name of this element. More... | |
size_t | GetNumberOfDataWords () |
Get the number of data words in this data element. More... | |
UInt_t | GetGoodEventCount () const |
virtual VQwDataElement & | operator+= (const VQwDataElement &value) |
Addition-assignment operator. More... | |
virtual VQwDataElement & | operator-= (const VQwDataElement &value) |
Subtraction-assignment operator. More... | |
virtual void | Sum (const VQwDataElement &value1, const VQwDataElement &value2) |
Sum operator. More... | |
virtual void | Difference (const VQwDataElement &value1, const VQwDataElement &value2) |
Difference operator. More... | |
virtual void | Ratio (const VQwDataElement &numer, const VQwDataElement &denom) |
Ratio operator. More... | |
virtual UInt_t | GetEventcutErrorFlag () |
return the error flag on this channel/device More... | |
virtual Double_t | GetNormClockValue () |
TString | GetSubsystemName () const |
Return the name of the inheriting subsystem name. More... | |
void | SetSubsystemName (TString sysname) |
Set the name of the inheriting subsystem name. More... | |
TString | GetModuleType () const |
Return the type of the beam instrument. More... | |
void | SetModuleType (TString ModuleType) |
set the type of the beam instrument More... | |
![]() | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. More... | |
![]() | |
MQwMockable () | |
virtual | ~MQwMockable () |
void | SetRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
Set a single set of harmonic drift parameters. More... | |
void | AddRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
Add drift parameters to the internal set. More... | |
void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
Set the normal random event parameters. More... | |
void | SetRandomEventAsymmetry (Double_t asymmetry) |
Set the helicity asymmetry. More... | |
Double_t | GetRandomValue () |
void | UseExternalRandomVariable () |
Set the flag to use an externally provided random variable. More... | |
void | SetExternalRandomVariable (Double_t random_variable) |
Set the externally provided random variable. More... | |
Static Public Member Functions | |
static Int_t | GetBufferOffset (Int_t scalerindex, Int_t wordindex, UInt_t header=1) |
static void | PrintErrorCounterHead () |
static void | PrintErrorCounterTail () |
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. More... | |
void | SetNumberOfSubElements (const size_t elements) |
Set the number of data words in this data element. More... | |
void | SetDataToSave (TString datatosave) |
Set the flag indicating if raw or derived values are in this data element. More... | |
void | SetDataToSave (VQwDataElement::EDataToSave datatosave) |
Set the flag indicating if raw or derived values are in this data element. More... | |
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(). More... | |
![]() | |
void | SetNumberOfDataWords (const UInt_t &numwords) |
Set the number of data words in this data element. More... | |
virtual VQwDataElement & | operator= (const VQwDataElement &value) |
Arithmetic assignment operator: Should only copy event-based data. More... | |
virtual void | UpdateErrorFlag (const UInt_t &error) |
![]() | |
MQwHistograms () | |
Default constructor. More... | |
MQwHistograms (const MQwHistograms &source) | |
Copy constructor. More... | |
virtual | ~MQwHistograms () |
Virtual destructor. More... | |
virtual MQwHistograms & | operator= (const MQwHistograms &value) |
void | Fill_Pointer (TH1_ptr hist_ptr, Double_t value) |
void | AddHistogram (TH1 *h) |
Register a histogram. More... | |
Protected Attributes | |
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. More... | |
UInt_t | fNumberOfSubElements |
Number of subelements in this data element. More... | |
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 |
![]() | |
TString | fElementName |
Name of this data element. More... | |
UInt_t | fNumberOfDataWords |
Number of raw data words in this data element. More... | |
Int_t | fGoodEventCount |
Number of good events accumulated in this element. More... | |
TString | fSubsystemName |
TString | fModuleType |
UInt_t | fErrorFlag |
This the standard error code generated for the channel that contains the global/local/stability flags and the Device error code (Unique error code for HW failures) More... | |
UInt_t | fErrorConfigFlag |
contains the global/local/stability flags More... | |
![]() | |
std::vector< TH1_ptr > | fHistograms |
Histograms associated with this data element. More... | |
![]() | |
bool | fUseExternalRandomVariable |
Flag to use an externally provided normal random variable. More... | |
double | fExternalRandomVariable |
Externally provided normal random variable. More... | |
Double_t | fMockAsymmetry |
Helicity asymmetry. More... | |
Double_t | fMockGaussianMean |
Mean of normal distribution. More... | |
Double_t | fMockGaussianSigma |
Sigma of normal distribution. More... | |
std::vector< Double_t > | fMockDriftAmplitude |
Harmonic drift amplitude. More... | |
std::vector< Double_t > | fMockDriftFrequency |
Harmonic drift frequency. More... | |
std::vector< Double_t > | fMockDriftPhase |
Harmonic drift phase. More... | |
Static Protected Attributes | |
static const Bool_t | kDEBUG = kFALSE |
![]() | |
static boost::mt19937 | fRandomnessGenerator |
Internal randomness generator. More... | |
static boost::normal_distribution < double > | fNormalDistribution |
Internal normal probability distribution. More... | |
static boost::variate_generator < boost::mt19937, boost::normal_distribution < double > > | fNormalRandomVariable |
Internal normal random variable. More... | |
Additional Inherited Members | |
![]() | |
enum | EDataToSave { kRaw = 0, kDerived } |
Definition at line 28 of file QwScaler_Channel.h.
|
inline |
Definition at line 45 of file QwScaler_Channel.h.
References InitializeChannel().
|
inline |
Definition at line 49 of file QwScaler_Channel.h.
References InitializeChannel().
|
inline |
Definition at line 52 of file QwScaler_Channel.h.
|
inlinevirtual |
Definition at line 66 of file QwScaler_Channel.h.
|
inline |
Definition at line 144 of file QwScaler_Channel.h.
References VQwDataElement::fGoodEventCount.
Referenced by AccumulateRunningSum(), and DeaccumulateRunningSum().
void VQwScaler_Channel::AccumulateRunningSum | ( | const VQwScaler_Channel & | value, |
Int_t | count | ||
) |
Definition at line 658 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue, fValueM2, VQwDataElement::GetElementName(), and QwWarning.
|
inlinevirtual |
Implements VQwHardwareChannel.
Definition at line 148 of file QwScaler_Channel.h.
References AccumulateRunningSum().
void VQwScaler_Channel::AddChannelOffset | ( | Double_t | Offset | ) |
Definition at line 571 of file QwScaler_Channel.cc.
References fValue, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 327 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 595 of file QwScaler_Channel.cc.
References VQwHardwareChannel::bEVENTCUTMODE, VQwDataElement::fErrorFlag, VQwHardwareChannel::GetRawValue(), and kErrorFlag_ZeroHW.
|
virtual |
Implements VQwHardwareChannel.
Definition at line 608 of file QwScaler_Channel.cc.
References VQwHardwareChannel::bEVENTCUTMODE, VQwDataElement::fErrorFlag, VQwHardwareChannel::fLLimit, VQwHardwareChannel::fULimit, VQwHardwareChannel::GetValue(), kErrorFlag_EventCut_L, and kErrorFlag_EventCut_U.
void VQwScaler_Channel::AssignScaledValue | ( | const VQwScaler_Channel & | value, |
Double_t | scale | ||
) |
Definition at line 390 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue, fValueError, fValueM2, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 316 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 694 of file QwScaler_Channel.cc.
References VQwDataElement::fGoodEventCount, fValueError, and fValueM2.
|
virtual |
Clear the event data in this element.
Reimplemented from VQwHardwareChannel.
Definition at line 65 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue, fValue_Raw, fValueError, and fValueM2.
|
virtual |
Implements VQwHardwareChannel.
Definition at line 272 of file QwScaler_Channel.cc.
References fValue, VQwDataElement::GetElementName(), and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 248 of file QwScaler_Channel.cc.
References VQwHardwareChannel::fDataToSave, VQwHardwareChannel::fTreeArrayIndex, VQwHardwareChannel::fTreeArrayNumEntries, VQwDataElement::GetElementName(), gQwHists, VQwDataElement::IsNameEmpty(), VQwDataElement::kRaw, and QwHistogramHelper::MatchDeviceParamsFromList().
|
virtual |
Construct the histograms for this data element.
Implements VQwDataElement.
Definition at line 218 of file QwScaler_Channel.cc.
References QwHistogramHelper::Construct1DHist(), MQwHistograms::fHistograms, VQwDataElement::GetElementName(), and gQwHists.
|
inline |
Definition at line 152 of file QwScaler_Channel.h.
References AccumulateRunningSum().
void VQwScaler_Channel::Difference | ( | VQwScaler_Channel & | value1, |
VQwScaler_Channel & | value2 | ||
) |
Definition at line 498 of file QwScaler_Channel.cc.
|
virtual |
Implements VQwHardwareChannel.
Definition at line 364 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
void VQwScaler_Channel::DivideBy | ( | const VQwScaler_Channel & | denom | ) |
Definition at line 589 of file QwScaler_Channel.cc.
|
pure virtual |
Encode the event data into a CODA buffer.
Implements MQwMockable.
Implemented in QwScaler_Channel< data_mask, data_shift >, and QwScaler_Channel< 0x00ffffff, 0 >.
|
virtual |
Fill the histograms for this data element.
Implements VQwDataElement.
Definition at line 236 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, MQwHistograms::fHistograms, fValue, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 283 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwHardwareChannel::fDataToSave, VQwDataElement::fElementName, VQwDataElement::fErrorFlag, VQwHardwareChannel::fTreeArrayIndex, VQwHardwareChannel::fTreeArrayNumEntries, fValue, fValue_Raw, VQwDataElement::GetElementName(), VQwDataElement::IsNameEmpty(), VQwDataElement::kRaw, and QwError.
|
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 103 of file QwScaler_Channel.cc.
References QwLog::endl(), and QwError.
Referenced by QwBeamDetectorID::QwBeamDetectorID().
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 164 of file QwScaler_Channel.h.
References fNormChannelName.
|
inlinevirtual |
Implements VQwHardwareChannel.
Definition at line 91 of file QwScaler_Channel.h.
References fValue_Raw.
|
inlinevirtual |
|
inlinevirtual |
Implements VQwHardwareChannel.
Definition at line 94 of file QwScaler_Channel.h.
References fValueError.
|
inlinevirtual |
Implements VQwHardwareChannel.
Definition at line 93 of file QwScaler_Channel.h.
References fValueM2.
void VQwScaler_Channel::IncrementErrorCounters | ( | ) |
Definition at line 646 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fNumEvtsWithEventCutsRejected, fNumEvtsWithHWErrors, kErrorFlag_EventCut_L, kErrorFlag_EventCut_U, and kErrorFlag_ZeroHW.
|
virtual |
Initialize the fields in this object.
Implements VQwHardwareChannel.
Definition at line 21 of file QwScaler_Channel.cc.
References VQwHardwareChannel::fCalibrationFactor, fClockNormalization, VQwDataElement::fErrorConfigFlag, VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, 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(), and VQwScaler_Channel().
|
virtual |
Initialize the fields in this object.
Implements VQwHardwareChannel.
Definition at line 59 of file QwScaler_Channel.cc.
References InitializeChannel(), VQwDataElement::SetModuleType(), and VQwDataElement::SetSubsystemName().
|
inlinevirtual |
Definition at line 169 of file QwScaler_Channel.h.
References fIsDifferentialScaler.
|
virtual |
Reimplemented from VQwDataElement.
Definition at line 133 of file QwScaler_Channel.cc.
References fNeedsExternalClock, QwParameterFile::ReturnValue(), and SetExternalClockName().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 351 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 162 of file QwScaler_Channel.h.
References fNeedsExternalClock.
Referenced by ProcessEvent().
VQwScaler_Channel & VQwScaler_Channel::operator*= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 424 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValue_Raw, fValueM2, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 463 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
VQwScaler_Channel & VQwScaler_Channel::operator+= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 404 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValueM2, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 435 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
VQwScaler_Channel & VQwScaler_Channel::operator-= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 414 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValueM2, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 449 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 477 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
|
protected |
Definition at line 518 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::fErrorFlag, fValue, fValueM2, VQwDataElement::GetElementName(), VQwDataElement::IsNameEmpty(), QwVerbose, and QwWarning.
VQwScaler_Channel & VQwScaler_Channel::operator= | ( | const VQwScaler_Channel & | value | ) |
Definition at line 377 of file QwScaler_Channel.cc.
References fValue, fValue_Raw, fValueError, fValueM2, VQwDataElement::IsNameEmpty(), and VQwHardwareChannel::operator=().
|
static |
|
virtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
Definition at line 709 of file QwScaler_Channel.cc.
References QwLog::endl(), fNumEvtsWithEventCutsRejected, fNumEvtsWithHWErrors, VQwDataElement::GetElementName(), and QwMessage.
|
static |
|
virtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
Definition at line 211 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::GetElementName(), and QwMessage.
|
virtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
Definition at line 202 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwDataElement::GetElementName(), VQwHardwareChannel::GetValue(), VQwHardwareChannel::GetValueError(), VQwHardwareChannel::GetValueWidth(), and QwMessage.
|
pure virtual |
Process the CODA event buffer for this element.
Implements VQwDataElement.
Implemented in QwScaler_Channel< data_mask, data_shift >, and QwScaler_Channel< 0x00ffffff, 0 >.
void VQwScaler_Channel::ProcessEvent | ( | ) |
Definition at line 183 of file QwScaler_Channel.cc.
References QwLog::endl(), VQwHardwareChannel::fCalibrationFactor, fNormChannelName, fNormChannelPtr, VQwHardwareChannel::fPedestal, fValue, fValue_Raw, VQwDataElement::GetElementName(), VQwHardwareChannel::GetValue(), NeedsExternalClock(), and QwWarning.
void VQwScaler_Channel::Product | ( | VQwScaler_Channel & | numer, |
VQwScaler_Channel & | denom | ||
) |
Definition at line 558 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue, fValue_Raw, and VQwDataElement::IsNameEmpty().
|
virtual |
Internally generate random event data.
Implements MQwMockable.
Definition at line 76 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 503 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, VQwDataElement::fGoodEventCount, fValue_Raw, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 580 of file QwScaler_Channel.cc.
References fValue, fValueM2, and VQwDataElement::IsNameEmpty().
|
virtual |
Implements VQwHardwareChannel.
Definition at line 723 of file QwScaler_Channel.cc.
References VQwDataElement::fErrorFlag, fValue, fValueM2, and VQwDataElement::IsNameEmpty().
|
inline |
Definition at line 74 of file QwScaler_Channel.h.
|
inlinevirtual |
Definition at line 170 of file QwScaler_Channel.h.
References fIsDifferentialScaler.
Referenced by QwScaler::LoadChannelMap().
void VQwScaler_Channel::SetEventData | ( | Double_t | value | ) |
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 166 of file QwScaler_Channel.h.
References fNormChannelName.
Referenced by LoadChannelParameters().
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 165 of file QwScaler_Channel.h.
References fNormChannelPtr.
|
inlinevirtual |
Reimplemented from VQwDataElement.
Definition at line 163 of file QwScaler_Channel.h.
References fNeedsExternalClock.
|
virtual |
Implements VQwHardwareChannel.
Definition at line 339 of file QwScaler_Channel.cc.
References VQwDataElement::GetElementName().
void VQwScaler_Channel::Sum | ( | VQwScaler_Channel & | value1, |
VQwScaler_Channel & | value2 | ||
) |
Definition at line 492 of file QwScaler_Channel.cc.
|
protected |
Definition at line 186 of file QwScaler_Channel.h.
Referenced by InitializeChannel().
|
protected |
Definition at line 190 of file QwScaler_Channel.h.
Referenced by InitializeChannel(), IsDifferentialScaler(), and SetDifferentialScaler().
|
protected |
Definition at line 189 of file QwScaler_Channel.h.
Referenced by InitializeChannel(), LoadChannelParameters(), NeedsExternalClock(), and SetNeedsExternalClock().
|
protected |
Definition at line 187 of file QwScaler_Channel.h.
Referenced by GetExternalClockName(), ProcessEvent(), and SetExternalClockName().
|
protected |
Definition at line 185 of file QwScaler_Channel.h.
Referenced by InitializeChannel(), ProcessEvent(), and SetExternalClockPtr().
|
protected |
Definition at line 194 of file QwScaler_Channel.h.
Referenced by IncrementErrorCounters(), InitializeChannel(), and PrintErrorCounters().
|
protected |
Definition at line 193 of file QwScaler_Channel.h.
Referenced by IncrementErrorCounters(), InitializeChannel(), and PrintErrorCounters().
|
protected |
Definition at line 182 of file QwScaler_Channel.h.
Referenced by AccumulateRunningSum(), AddChannelOffset(), AssignScaledValue(), ClearEventData(), ConstructBranch(), FillHistograms(), FillTreeVector(), GetValue(), InitializeChannel(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), ProcessEvent(), Product(), RandomizeEventData(), Scale(), ScaledAdd(), and SetEventData().
|
protected |
Definition at line 181 of file QwScaler_Channel.h.
Referenced by ClearEventData(), FillTreeVector(), GetRawValue(), InitializeChannel(), operator*=(), operator=(), ProcessEvent(), Product(), RandomizeEventData(), Ratio(), and SetEventData().
|
protected |
Definition at line 180 of file QwScaler_Channel.h.
Referenced by InitializeChannel().
|
protected |
Definition at line 184 of file QwScaler_Channel.h.
Referenced by AssignScaledValue(), CalculateRunningAverage(), ClearEventData(), GetValueError(), InitializeChannel(), and operator=().
|
protected |
Definition at line 183 of file QwScaler_Channel.h.
Referenced by AccumulateRunningSum(), AssignScaledValue(), CalculateRunningAverage(), ClearEventData(), GetValueM2(), InitializeChannel(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), Scale(), and ScaledAdd().
|
staticprotected |
Definition at line 178 of file QwScaler_Channel.h.