JAPAn
Just Another Parity Analyzer
|
Template for integrated raster readout channel. More...
#include <QwIntegratedRasterChannel.h>
Public Member Functions | |
QwIntegratedRasterChannel () | |
QwIntegratedRasterChannel (TString name) | |
QwIntegratedRasterChannel (TString subsystemname, TString name) | |
~QwIntegratedRasterChannel () override | |
Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t subelement=0) override |
Process the CODA event buffer for this element. | |
void | InitializeChannel (TString name, TString datatosave) |
void | InitializeChannel (TString subsystem, TString name, TString datatosave) |
void | ClearEventData () override |
Clear the event data in this element. | |
void | SetRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
void | AddRandomEventDriftParameters (Double_t amplitude, Double_t phase, Double_t frequency) |
void | SetRandomEventParameters (Double_t mean, Double_t sigma) |
void | SetRandomEventAsymmetry (Double_t asymmetry) |
void | RandomizeEventData (int helicity=0, double time=0) |
void | SetHardwareSum (Double_t hwsum, UInt_t sequencenumber=0) |
void | SetEventData (Double_t *block, UInt_t sequencenumber) |
void | EncodeEventData (std::vector< UInt_t > &buffer) |
void | UseExternalRandomVariable () |
void | SetExternalRandomVariable (Double_t random_variable) |
void | ProcessEvent () |
Bool_t | ApplyHWChecks () |
Bool_t | ApplySingleEventCuts () |
void | IncrementErrorCounters () |
void | PrintErrorCounters () const override |
report number of events failed due to HW and event cut failure | |
UInt_t | GetEventcutErrorFlag () override |
return the error flag on this channel/device | |
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 QwIntegratedRasterChannel *ev_error) |
Int_t | SetSingleEventCuts (Double_t mean=0, Double_t sigma=0) |
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. | |
void | SetDefaultSampleSize (Int_t sample_size) |
void | SetEventCutMode (Int_t bcuts) |
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. | |
QwIntegratedRasterChannel & | operator= (const QwIntegratedRasterChannel &value) |
QwIntegratedRasterChannel & | operator+= (const QwIntegratedRasterChannel &value) |
QwIntegratedRasterChannel & | operator-= (const QwIntegratedRasterChannel &value) |
void | Sum (QwIntegratedRasterChannel &value1, QwIntegratedRasterChannel &value2) |
void | Difference (QwIntegratedRasterChannel &value1, QwIntegratedRasterChannel &value2) |
void | Ratio (QwIntegratedRasterChannel &numer, QwIntegratedRasterChannel &denom) |
void | Scale (Double_t factor) |
void | AccumulateRunningSum (const QwIntegratedRasterChannel &value) |
void | CalculateRunningAverage () |
void | SetPedestal (Double_t ped) |
void | SetCalibrationFactor (Double_t calib) |
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) |
void | ConstructBranch (TTree *tree, TString &prefix) |
void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &modulelist) |
void | FillTreeVector (QwRootTreeBranchVector &values) const |
std::vector< QwDBInterface > | GetDBEntry () |
std::vector< QwErrDBInterface > | GetErrDBEntry () |
const VQwDataElement * | GetElement () const |
![]() | |
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 | LoadChannelParameters (QwParameterFile &) |
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) | |
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 | |
![]() | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. | |
Private Attributes | |
Double_t | fPedestal |
Double_t | fCalibration |
Double_t | fULimit |
Double_t | fLLimit |
Bool_t | fGoodEvent |
T | fTriumf_ADC |
Int_t | fDeviceErrorCode |
Bool_t | bEVENTCUTMODE |
Static Private Attributes | |
static const Bool_t | bDEBUG =kFALSE |
Additional Inherited Members | |
![]() | |
enum | EDataToSave { kRaw = 0 , kDerived , kMoments } |
![]() | |
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. | |
![]() | |
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. | |
Template for integrated raster readout channel.
Provides accumulation and processing of fast raster signals into per-window integrated values. The template parameter T is the underlying hardware channel type (e.g. QwVQWK_Channel).
Definition at line 32 of file QwIntegratedRasterChannel.h.
|
inline |
Definition at line 35 of file QwIntegratedRasterChannel.h.
Referenced by AccumulateRunningSum(), Difference(), GetElement(), operator+=(), operator-=(), operator=(), Ratio(), Sum(), and UpdateErrorFlag().
|
inline |
Definition at line 36 of file QwIntegratedRasterChannel.h.
References InitializeChannel().
|
inline |
Definition at line 39 of file QwIntegratedRasterChannel.h.
References InitializeChannel(), and VQwDataElement::SetSubsystemName().
|
inlineoverride |
Definition at line 43 of file QwIntegratedRasterChannel.h.
void QwIntegratedRasterChannel< T >::AccumulateRunningSum | ( | const QwIntegratedRasterChannel< T > & | value | ) |
void QwIntegratedRasterChannel< T >::AddRandomEventDriftParameters | ( | Double_t | amplitude, |
Double_t | phase, | ||
Double_t | frequency ) |
Bool_t QwIntegratedRasterChannel< T >::ApplyHWChecks | ( | ) |
Bool_t QwIntegratedRasterChannel< T >::ApplySingleEventCuts | ( | ) |
void QwIntegratedRasterChannel< T >::CalculateRunningAverage | ( | ) |
|
overridevirtual |
Clear the event data in this element.
Reimplemented from VQwDataElement.
void QwIntegratedRasterChannel< T >::ConstructBranch | ( | TTree * | tree, |
TString & | prefix ) |
void QwIntegratedRasterChannel< T >::ConstructBranch | ( | TTree * | tree, |
TString & | prefix, | ||
QwParameterFile & | modulelist ) |
void QwIntegratedRasterChannel< T >::ConstructBranchAndVector | ( | TTree * | tree, |
TString & | prefix, | ||
QwRootTreeBranchVector & | values ) |
|
overridevirtual |
Construct the histograms for this data element.
Implements VQwDataElement.
void QwIntegratedRasterChannel< T >::Difference | ( | QwIntegratedRasterChannel< T > & | value1, |
QwIntegratedRasterChannel< T > & | value2 ) |
void QwIntegratedRasterChannel< T >::EncodeEventData | ( | std::vector< UInt_t > & | buffer | ) |
|
overridevirtual |
Fill the histograms for this data element.
Implements VQwDataElement.
void QwIntegratedRasterChannel< T >::FillTreeVector | ( | QwRootTreeBranchVector & | values | ) | const |
std::vector< QwDBInterface > QwIntegratedRasterChannel< T >::GetDBEntry | ( | ) |
|
inline |
Definition at line 117 of file QwIntegratedRasterChannel.h.
References GetElement(), QwIntegratedRasterChannel(), and VQwDataElement::VQwDataElement().
Referenced by GetElement().
std::vector< QwErrDBInterface > QwIntegratedRasterChannel< T >::GetErrDBEntry | ( | ) |
|
inlineoverridevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 70 of file QwIntegratedRasterChannel.h.
References fTriumf_ADC.
Referenced by UpdateErrorFlag().
|
inline |
Definition at line 68 of file QwIntegratedRasterChannel.h.
References fTriumf_ADC.
void QwIntegratedRasterChannel< T >::InitializeChannel | ( | TString | name, |
TString | datatosave ) |
Referenced by QwIntegratedRasterChannel(), and QwIntegratedRasterChannel().
void QwIntegratedRasterChannel< T >::InitializeChannel | ( | TString | subsystem, |
TString | name, | ||
TString | datatosave ) |
QwIntegratedRasterChannel & QwIntegratedRasterChannel< T >::operator+= | ( | const QwIntegratedRasterChannel< T > & | value | ) |
QwIntegratedRasterChannel & QwIntegratedRasterChannel< T >::operator-= | ( | const QwIntegratedRasterChannel< T > & | value | ) |
QwIntegratedRasterChannel & QwIntegratedRasterChannel< T >::operator= | ( | const QwIntegratedRasterChannel< T > & | value | ) |
|
overridevirtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
|
overridevirtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
|
overridevirtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
|
overridevirtual |
Process the CODA event buffer for this element.
Implements VQwDataElement.
References QwBPMStripline< T >::subelement.
void QwIntegratedRasterChannel< T >::ProcessEvent | ( | ) |
void QwIntegratedRasterChannel< T >::RandomizeEventData | ( | int | helicity = 0, |
double | time = 0 ) |
void QwIntegratedRasterChannel< T >::Ratio | ( | QwIntegratedRasterChannel< T > & | numer, |
QwIntegratedRasterChannel< T > & | denom ) |
void QwIntegratedRasterChannel< T >::Scale | ( | Double_t | factor | ) |
void QwIntegratedRasterChannel< T >::SetCalibrationFactor | ( | Double_t | calib | ) |
void QwIntegratedRasterChannel< T >::SetDefaultSampleSize | ( | Int_t | sample_size | ) |
|
inline |
Definition at line 83 of file QwIntegratedRasterChannel.h.
References bEVENTCUTMODE, and fTriumf_ADC.
void QwIntegratedRasterChannel< T >::SetEventData | ( | Double_t * | block, |
UInt_t | sequencenumber ) |
void QwIntegratedRasterChannel< T >::SetExternalRandomVariable | ( | Double_t | random_variable | ) |
void QwIntegratedRasterChannel< T >::SetHardwareSum | ( | Double_t | hwsum, |
UInt_t | sequencenumber = 0 ) |
void QwIntegratedRasterChannel< T >::SetPedestal | ( | Double_t | ped | ) |
void QwIntegratedRasterChannel< T >::SetRandomEventAsymmetry | ( | Double_t | asymmetry | ) |
void QwIntegratedRasterChannel< T >::SetRandomEventDriftParameters | ( | Double_t | amplitude, |
Double_t | phase, | ||
Double_t | frequency ) |
void QwIntegratedRasterChannel< T >::SetRandomEventParameters | ( | Double_t | mean, |
Double_t | sigma ) |
Int_t QwIntegratedRasterChannel< T >::SetSingleEventCuts | ( | Double_t | mean = 0, |
Double_t | sigma = 0 ) |
void QwIntegratedRasterChannel< T >::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.
void QwIntegratedRasterChannel< T >::Sum | ( | QwIntegratedRasterChannel< T > & | value1, |
QwIntegratedRasterChannel< T > & | value2 ) |
|
inlineoverridevirtual |
Update the error flag based on the error flags of internally contained objects Return parameter is the "Eventcut Error Flag".
Reimplemented from VQwDataElement.
Definition at line 73 of file QwIntegratedRasterChannel.h.
References GetEventcutErrorFlag().
|
inline |
Definition at line 74 of file QwIntegratedRasterChannel.h.
References fTriumf_ADC, and QwIntegratedRasterChannel().
void QwIntegratedRasterChannel< T >::UseExternalRandomVariable | ( | ) |
|
staticprivate |
Definition at line 140 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 141 of file QwIntegratedRasterChannel.h.
Referenced by SetEventCutMode().
|
private |
Definition at line 129 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 138 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 131 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 130 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 128 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 136 of file QwIntegratedRasterChannel.h.
Referenced by GetEventcutErrorFlag(), IncrementErrorCounters(), SetEventCutMode(), and UpdateErrorFlag().
|
private |
Definition at line 130 of file QwIntegratedRasterChannel.h.