QwAnalysis
|
#include <QwClock.h>
Public Member Functions | |
QwClock () | |
QwClock (TString subsystemname, TString name, TString type="") | |
QwClock (const QwClock &source) | |
virtual | ~QwClock () |
void | LoadChannelParameters (QwParameterFile ¶mfile) |
Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0) |
Process the CODA event buffer for this element. More... | |
void | InitializeChannel (TString subsystem, TString name, TString datatosave, TString type="") |
void | ClearEventData () |
Clear the event data in this element. More... | |
void | EncodeEventData (std::vector< UInt_t > &buffer) |
void | ProcessEvent () |
Bool_t | ApplyHWChecks () |
Bool_t | ApplySingleEventCuts () |
void | IncrementErrorCounters () |
void | PrintErrorCounters () const |
report number of events failed due to HW and event cut failure More... | |
UInt_t | GetEventcutErrorFlag () |
return the error flag on this channel/device More... | |
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 QwClock *ev_error) |
void | SetSingleEventCuts (UInt_t errorflag, Double_t min=0, Double_t max=0, Double_t stability=0) |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel. More... | |
void | SetDefaultSampleSize (Int_t sample_size) |
void | SetEventCutMode (Int_t bcuts) |
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... | |
VQwClock & | operator= (const VQwClock &value) |
VQwClock & | operator+= (const VQwClock &value) |
VQwClock & | operator-= (const VQwClock &value) |
QwClock & | operator= (const QwClock &value) |
QwClock & | operator+= (const QwClock &value) |
QwClock & | operator-= (const QwClock &value) |
void | Sum (QwClock &value1, QwClock &value2) |
void | Difference (QwClock &value1, QwClock &value2) |
void | Ratio (const VQwClock &numer, const VQwClock &denom) |
void | Ratio (const QwClock &numer, const QwClock &denom) |
void | Scale (Double_t factor) |
void | AccumulateRunningSum (const VQwClock &value) |
void | CalculateRunningAverage () |
void | SetPedestal (Double_t ped) |
void | SetCalibrationFactor (Double_t calib) |
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 | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist) |
void | FillTreeVector (std::vector< Double_t > &values) const |
std::vector< QwDBInterface > | GetDBEntry () |
Double_t | GetNormClockValue () |
Double_t | GetStandardClockValue () |
const VQwHardwareChannel * | GetTime () const |
![]() | |
VQwClock () | |
VQwClock (const VQwClock &source) | |
virtual | ~VQwClock () |
![]() | |
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 void | AssignValueFrom (const VQwDataElement *valueptr) |
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 void | SetNeedsExternalClock (Bool_t needed) |
virtual Bool_t | NeedsExternalClock () |
virtual std::string | GetExternalClockName () |
virtual void | SetExternalClockPtr (const VQwHardwareChannel *clock) |
virtual void | SetExternalClockName (const std::string name) |
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... | |
Private Attributes | |
Double_t | fPedestal |
Double_t | fCalibration |
Double_t | fULimit |
Double_t | fLLimit |
T | fClock |
Int_t | fDeviceErrorCode |
Bool_t | bEVENTCUTMODE |
Double_t | fNormalizationValue |
Static Private Attributes | |
static const Bool_t | bDEBUG =kFALSE |
Additional Inherited Members | |
![]() | |
enum | EDataToSave { kRaw = 0, kDerived } |
![]() | |
static VQwClock * | Create (TString subsystemname, TString type, TString name) |
A fast way of creating a Clock of specified type. More... | |
static VQwClock * | Create (const VQwClock &source) |
![]() | |
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... | |
![]() | |
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... | |
|
inline |
Definition at line 39 of file QwClock.h.
References QwClock< T >::InitializeChannel(), and VQwDataElement::SetSubsystemName().
|
virtual |
Bool_t QwClock< T >::ApplyHWChecks | ( | ) |
Definition at line 83 of file QwClock.cc.
|
virtual |
|
virtual |
Implements VQwClock.
Definition at line 311 of file QwClock.cc.
|
virtual |
Clear the event data in this element.
Implements VQwClock.
Definition at line 50 of file QwClock.cc.
|
virtual |
Implements VQwClock.
Definition at line 378 of file QwClock.cc.
|
virtual |
Implements VQwClock.
Definition at line 391 of file QwClock.cc.
References QwLog::endl(), QwParameterFile::HasValue(), and QwMessage.
|
virtual |
Implements VQwClock.
Definition at line 366 of file QwClock.cc.
|
virtual |
Construct the histograms for this data element.
Implements VQwClock.
Definition at line 336 of file QwClock.cc.
void QwClock< T >::Difference | ( | QwClock< T > & | value1, |
QwClock< T > & | value2 | ||
) |
Definition at line 277 of file QwClock.cc.
void QwClock< T >::EncodeEventData | ( | std::vector< UInt_t > & | buffer | ) |
Definition at line 71 of file QwClock.cc.
|
virtual |
Fill the histograms for this data element.
Implements VQwClock.
Definition at line 350 of file QwClock.cc.
|
virtual |
Implements VQwClock.
Definition at line 413 of file QwClock.cc.
|
virtual |
|
inlinevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 69 of file QwClock.h.
References QwClock< T >::fClock.
Referenced by QwClock< T >::UpdateErrorFlag().
|
inlinevirtual |
Implements VQwClock.
Definition at line 123 of file QwClock.h.
References QwClock< T >::fNormalizationValue.
|
inlinevirtual |
Implements VQwClock.
Definition at line 124 of file QwClock.h.
References QwClock< T >::fCalibration.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements VQwClock.
Definition at line 36 of file QwClock.cc.
References fLLimit, and fULimit.
Referenced by QwClock< T >::QwClock().
|
inlinevirtual |
Implements VQwClock.
Definition at line 205 of file QwClock.cc.
References Qw::e, QwClock< T >::fCalibration, QwClock< T >::fClock, QwClock< T >::fPedestal, and VQwDataElement::GetElementName().
Definition at line 193 of file QwClock.cc.
References QwClock< T >::fClock, and QwClock< T >::fPedestal.
Implements VQwClock.
Definition at line 231 of file QwClock.cc.
References QwClock< T >::fCalibration, QwClock< T >::fClock, and QwClock< T >::fPedestal.
Definition at line 245 of file QwClock.cc.
References Qw::e, QwClock< T >::fCalibration, QwClock< T >::fClock, QwClock< T >::fPedestal, and VQwDataElement::GetElementName().
Implements VQwClock.
Definition at line 162 of file QwClock.cc.
References Qw::e, QwClock< T >::fCalibration, QwClock< T >::fClock, QwClock< T >::fPedestal, and VQwDataElement::GetElementName().
Definition at line 144 of file QwClock.cc.
References QwClock< T >::fCalibration, QwClock< T >::fClock, and QwClock< T >::fPedestal.
|
virtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
Definition at line 129 of file QwClock.cc.
|
virtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
Definition at line 328 of file QwClock.cc.
|
virtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
Definition at line 322 of file QwClock.cc.
|
virtual |
Process the CODA event buffer for this element.
Implements VQwClock.
Definition at line 136 of file QwClock.cc.
|
virtual |
|
virtual |
void QwClock< T >::Ratio | ( | const QwClock< T > & | numer, |
const QwClock< T > & | denom | ||
) |
Definition at line 290 of file QwClock.cc.
References QwClock< T >::fClock.
|
virtual |
Implements VQwClock.
Definition at line 304 of file QwClock.cc.
|
virtual |
void QwClock< T >::SetDefaultSampleSize | ( | Int_t | sample_size | ) |
Definition at line 104 of file QwClock.cc.
|
inlinevirtual |
Implements VQwClock.
Definition at line 81 of file QwClock.h.
References QwClock< T >::bEVENTCUTMODE, and QwClock< T >::fClock.
|
virtual |
|
virtual |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
Implements VQwClock.
Definition at line 95 of file QwClock.cc.
References QwLog::endl(), kBCMErrorFlag, and QwMessage.
Definition at line 271 of file QwClock.cc.
|
inlinevirtual |
Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag".
Reimplemented from VQwDataElement.
Definition at line 72 of file QwClock.h.
References QwClock< T >::GetEventcutErrorFlag().
|
staticprivate |
|
private |
Definition at line 145 of file QwClock.h.
Referenced by QwClock< T >::SetEventCutMode().
|
private |
Definition at line 137 of file QwClock.h.
Referenced by QwClock< T >::GetStandardClockValue(), QwClock< T >::operator+=(), QwClock< T >::operator-=(), and QwClock< T >::operator=().
|
private |
Definition at line 140 of file QwClock.h.
Referenced by QwClock< T >::GetEventcutErrorFlag(), QwClock< T >::GetTime(), QwClock< T >::IncrementErrorCounters(), QwClock< T >::LoadChannelParameters(), QwClock< T >::operator+=(), QwClock< T >::operator-=(), QwClock< T >::operator=(), QwClock< T >::Ratio(), QwClock< T >::SetEventCutMode(), and QwClock< T >::UpdateErrorFlag().
|
private |
|
private |
|
private |
Definition at line 147 of file QwClock.h.
Referenced by QwClock< T >::GetNormClockValue().
|
private |
Definition at line 128 of file QwClock.h.
Referenced by QwClock< T >::operator+=(), QwClock< T >::operator-=(), and QwClock< T >::operator=().
|
private |