|
JAPAn
Just Another Parity Analyzer
|
Abstract base for beam clocks used to normalize rates and yields. More...
#include <VQwClock.h>
Inheritance diagram for VQwClock:
Collaboration diagram for VQwClock:Public Member Functions | |
| VQwClock () | |
| VQwClock (const VQwClock &source) | |
| ~VQwClock () override | |
| Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0) override=0 |
| Process the CODA event buffer for this element. | |
| void | ConstructHistograms (TDirectory *folder, TString &prefix) override=0 |
| Construct the histograms for this data element. | |
| void | FillHistograms () override=0 |
| Fill the histograms for this data element. | |
| virtual void | SetSingleEventCuts (UInt_t errorflag, Double_t min, Double_t max, Double_t stability, 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. | |
| virtual void | Ratio (const VQwClock &, const VQwClock &) |
| void | ClearEventData () override=0 |
| Clear the event data in this element. | |
| virtual void | InitializeChannel (TString subsystem, TString name, TString datatosave, TString type="")=0 |
| void | LoadChannelParameters (QwParameterFile ¶mfile) override=0 |
| virtual void | SetEventCutMode (Int_t bcuts)=0 |
| virtual void | SetPedestal (Double_t ped)=0 |
| virtual void | SetCalibrationFactor (Double_t calib)=0 |
| virtual Bool_t | ApplySingleEventCuts ()=0 |
| virtual void | IncrementErrorCounters ()=0 |
| virtual void | ProcessEvent ()=0 |
| virtual void | Scale (Double_t factor)=0 |
| virtual void | CalculateRunningAverage ()=0 |
| virtual void | AccumulateRunningSum (const VQwClock &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF)=0 |
| virtual void | DeaccumulateRunningSum (VQwClock &value, Int_t ErrorMask=0xFFFFFFF)=0 |
| virtual void | ConstructBranchAndVector (TTree *tree, TString &prefix, QwRootTreeBranchVector &values)=0 |
| virtual void | ConstructBranch (TTree *tree, TString &prefix)=0 |
| virtual void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist)=0 |
| virtual void | FillTreeVector (QwRootTreeBranchVector &values) const =0 |
| virtual VQwClock & | operator= (const VQwClock &value)=0 |
| virtual VQwClock & | operator+= (const VQwClock &value)=0 |
| virtual VQwClock & | operator-= (const VQwClock &value)=0 |
| Double_t | GetNormClockValue () override=0 |
| virtual Double_t | GetStandardClockValue ()=0 |
| virtual const VQwHardwareChannel * | GetTime () const =0 |
| virtual Bool_t | CheckForBurpFail (const VQwClock *ev_error)=0 |
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. | |
| virtual void | LoadMockDataParameters (QwParameterFile &) |
| 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) | |
| virtual void | PrintValue () const |
| Print single line of value and error of this data element. | |
| virtual void | PrintInfo () const |
| Print multiple lines of information about this data element. | |
| 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 | |
| virtual void | PrintErrorCounters () const |
| report number of events failed due to HW and event cut failure | |
| Bool_t | CheckForBurpFail (const VQwDataElement *) |
| virtual UInt_t | GetEventcutErrorFlag () |
| return the error flag on this channel/device | |
| virtual UInt_t | UpdateErrorFlag () |
| Update the error flag based on the error flags of internally contained objects Return parameter is the "Eventcut Error Flag". | |
| virtual void | SetNeedsExternalClock (Bool_t) |
| virtual Bool_t | NeedsExternalClock () |
| virtual std::string | GetExternalClockName () |
| virtual void | SetExternalClockPtr (const VQwHardwareChannel *) |
| virtual void | SetExternalClockName (const std::string) |
| 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. | |
Static Public Member Functions | |
| static VQwClock * | Create (TString subsystemname, TString type, TString name) |
| static VQwClock * | Create (const VQwClock &source) |
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. | |
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. | |
Abstract base for beam clocks used to normalize rates and yields.
VQwClock provides the interface for clock-like data elements that can be used to normalize other channels. Concrete clocks are provided by the templated QwClock<T> factory. The class exposes hooks for event decoding, tree/histogram output, accumulation, and single-event cuts.
Specialized note: containers may hold pointers of type VQwClock* and invoke virtual hooks such as CheckForBurpFail; derived implementations must ensure proper overrides are provided to enable polymorphic dispatch.
Definition at line 47 of file VQwClock.h.
|
inline |
Definition at line 56 of file VQwClock.h.
Referenced by QwClock< T >::AccumulateRunningSum(), AccumulateRunningSum(), QwClock< T >::CheckForBurpFail(), CheckForBurpFail(), Create(), Create(), QwClock< T >::DeaccumulateRunningSum(), DeaccumulateRunningSum(), QwClock< T >::operator+=(), operator+=(), QwClock< T >::operator-=(), operator-=(), QwClock< T >::operator=(), operator=(), QwClock< T >::QwClock(), QwClock< T >::Ratio(), Ratio(), and VQwClock().
Here is the caller graph for this function:
|
inline |
Definition at line 57 of file VQwClock.h.
References VQwClock(), and VQwDataElement::VQwDataElement().
Here is the call graph for this function:
|
inlineoverride |
Definition at line 60 of file VQwClock.h.
|
pure virtual |
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
|
overridepure virtual |
Clear the event data in this element.
Reimplemented from VQwDataElement.
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
overridepure virtual |
Construct the histograms for this data element.
Implements VQwDataElement.
Implemented in QwClock< T >.
Copy-construct a concrete Clock based on the source module type.
Definition at line 52 of file VQwClock.cc.
References QwLog::endl(), VQwDataElement::GetModuleType(), QwMessage, QwWarning, and VQwClock().
Here is the call graph for this function:
|
static |
Create a concrete Clock instance for the requested module type. Supported: VQWK, SIS3801, SIS3801D24/SCALER.
Definition at line 30 of file VQwClock.cc.
References QwMessage, QwWarning, and VQwClock().
Referenced by QwBeamLine::AddToElementList(), and QwBeamLine::CopyTemplatedDataElements().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
|
overridepure virtual |
|
pure virtual |
Implemented in QwClock< T >.
|
overridepure virtual |
Reimplemented from VQwDataElement.
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
overridepure virtual |
Reimplemented from VQwDataElement.
Implemented in QwClock< T >.
|
overridepure virtual |
Process the CODA event buffer for this element.
Implements VQwDataElement.
Implemented in QwClock< T >.
References QwBPMStripline< T >::subelement.
|
pure virtual |
Implemented in QwClock< T >.
Reimplemented in QwClock< T >.
Definition at line 68 of file VQwClock.h.
References VQwClock().
Here is the call graph for this function:
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Implemented in QwClock< T >.
|
pure virtual |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
Implemented in QwClock< T >.