QwAnalysis
|
#include <QwIntegratedRasterChannel.h>
Public Member Functions | |
QwIntegratedRasterChannel () | |
QwIntegratedRasterChannel (TString name) | |
QwIntegratedRasterChannel (TString subsystemname, TString name) | |
virtual | ~QwIntegratedRasterChannel () |
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 name, TString datatosave) |
void | InitializeChannel (TString subsystem, TString name, TString datatosave) |
void | ClearEventData () |
Clear the event data in this element. More... | |
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 |
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 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. 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... | |
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) |
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 () |
std::vector< QwErrDBInterface > | GetErrDBEntry () |
const VQwDataElement * | GetElement () const |
![]() | |
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... | |
virtual void | LoadChannelParameters (QwParameterFile ¶mfile) |
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) |
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... | |
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 } |
![]() | |
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... | |
Definition at line 31 of file QwIntegratedRasterChannel.h.
|
inline |
Definition at line 34 of file QwIntegratedRasterChannel.h.
|
inline |
Definition at line 35 of file QwIntegratedRasterChannel.h.
|
inline |
Definition at line 38 of file QwIntegratedRasterChannel.h.
|
inlinevirtual |
Definition at line 42 of file QwIntegratedRasterChannel.h.
void QwIntegratedRasterChannel< T >::AccumulateRunningSum | ( | const QwIntegratedRasterChannel< T > & | value | ) |
Definition at line 298 of file QwIntegratedRasterChannel.cc.
References QwIntegratedRasterChannel< T >::fTriumf_ADC.
void QwIntegratedRasterChannel< T >::AddRandomEventDriftParameters | ( | Double_t | amplitude, |
Double_t | phase, | ||
Double_t | frequency | ||
) |
Definition at line 93 of file QwIntegratedRasterChannel.cc.
Bool_t QwIntegratedRasterChannel< T >::ApplyHWChecks | ( | ) |
Definition at line 149 of file QwIntegratedRasterChannel.cc.
Bool_t QwIntegratedRasterChannel< T >::ApplySingleEventCuts | ( | ) |
Definition at line 186 of file QwIntegratedRasterChannel.cc.
References fULimit.
void QwIntegratedRasterChannel< T >::CalculateRunningAverage | ( | ) |
Definition at line 293 of file QwIntegratedRasterChannel.cc.
|
virtual |
Clear the event data in this element.
Reimplemented from VQwDataElement.
Definition at line 63 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::ConstructBranch | ( | TTree * | tree, |
TString & | prefix | ||
) |
Definition at line 364 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::ConstructBranch | ( | TTree * | tree, |
TString & | prefix, | ||
QwParameterFile & | modulelist | ||
) |
Definition at line 377 of file QwIntegratedRasterChannel.cc.
References QwLog::endl(), QwParameterFile::HasValue(), and QwMessage.
void QwIntegratedRasterChannel< T >::ConstructBranchAndVector | ( | TTree * | tree, |
TString & | prefix, | ||
std::vector< Double_t > & | values | ||
) |
Definition at line 348 of file QwIntegratedRasterChannel.cc.
|
virtual |
Construct the histograms for this data element.
Implements VQwDataElement.
Definition at line 318 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::Difference | ( | QwIntegratedRasterChannel< T > & | value1, |
QwIntegratedRasterChannel< T > & | value2 | ||
) |
Definition at line 273 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::EncodeEventData | ( | std::vector< UInt_t > & | buffer | ) |
Definition at line 135 of file QwIntegratedRasterChannel.cc.
|
virtual |
Fill the histograms for this data element.
Implements VQwDataElement.
Definition at line 332 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::FillTreeVector | ( | std::vector< Double_t > & | values | ) | const |
Definition at line 399 of file QwIntegratedRasterChannel.cc.
std::vector< QwDBInterface > QwIntegratedRasterChannel< T >::GetDBEntry | ( | ) |
Definition at line 412 of file QwIntegratedRasterChannel.cc.
|
inline |
Definition at line 116 of file QwIntegratedRasterChannel.h.
Referenced by QwIntegratedRasterChannel< QwVQWK_Channel >::GetElement().
std::vector< QwErrDBInterface > QwIntegratedRasterChannel< T >::GetErrDBEntry | ( | ) |
Definition at line 421 of file QwIntegratedRasterChannel.cc.
|
inlinevirtual |
return the error flag on this channel/device
Reimplemented from VQwDataElement.
Definition at line 69 of file QwIntegratedRasterChannel.h.
Referenced by QwIntegratedRasterChannel< QwVQWK_Channel >::UpdateErrorFlag().
|
inline |
Definition at line 67 of file QwIntegratedRasterChannel.h.
void QwIntegratedRasterChannel< T >::InitializeChannel | ( | TString | name, |
TString | datatosave | ||
) |
Definition at line 38 of file QwIntegratedRasterChannel.cc.
References fLLimit, and fULimit.
Referenced by QwIntegratedRasterChannel< QwVQWK_Channel >::QwIntegratedRasterChannel().
void QwIntegratedRasterChannel< T >::InitializeChannel | ( | TString | subsystem, |
TString | name, | ||
TString | datatosave | ||
) |
Definition at line 51 of file QwIntegratedRasterChannel.cc.
References fLLimit, and fULimit.
QwIntegratedRasterChannel< T > & QwIntegratedRasterChannel< T >::operator+= | ( | const QwIntegratedRasterChannel< T > & | value | ) |
Definition at line 242 of file QwIntegratedRasterChannel.cc.
References QwIntegratedRasterChannel< T >::fPedestal, and QwIntegratedRasterChannel< T >::fTriumf_ADC.
QwIntegratedRasterChannel< T > & QwIntegratedRasterChannel< T >::operator-= | ( | const QwIntegratedRasterChannel< T > & | value | ) |
Definition at line 254 of file QwIntegratedRasterChannel.cc.
References QwIntegratedRasterChannel< T >::fPedestal, and QwIntegratedRasterChannel< T >::fTriumf_ADC.
QwIntegratedRasterChannel< T > & QwIntegratedRasterChannel< T >::operator= | ( | const QwIntegratedRasterChannel< T > & | value | ) |
Definition at line 224 of file QwIntegratedRasterChannel.cc.
References QwIntegratedRasterChannel< T >::fCalibration, QwIntegratedRasterChannel< T >::fPedestal, and QwIntegratedRasterChannel< T >::fTriumf_ADC.
|
virtual |
report number of events failed due to HW and event cut failure
Reimplemented from VQwDataElement.
Definition at line 209 of file QwIntegratedRasterChannel.cc.
|
virtual |
Print multiple lines of information about this data element.
Reimplemented from VQwDataElement.
Definition at line 310 of file QwIntegratedRasterChannel.cc.
|
virtual |
Print single line of value and error of this data element.
Reimplemented from VQwDataElement.
Definition at line 304 of file QwIntegratedRasterChannel.cc.
|
virtual |
Process the CODA event buffer for this element.
Implements VQwDataElement.
Definition at line 216 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::ProcessEvent | ( | ) |
Definition at line 141 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::RandomizeEventData | ( | int | helicity = 0 , |
double | time = 0 |
||
) |
Definition at line 114 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::Ratio | ( | QwIntegratedRasterChannel< T > & | numer, |
QwIntegratedRasterChannel< T > & | denom | ||
) |
Definition at line 279 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::Scale | ( | Double_t | factor | ) |
Definition at line 286 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetCalibrationFactor | ( | Double_t | calib | ) |
Definition at line 30 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetDefaultSampleSize | ( | Int_t | sample_size | ) |
Definition at line 179 of file QwIntegratedRasterChannel.cc.
|
inline |
Definition at line 82 of file QwIntegratedRasterChannel.h.
void QwIntegratedRasterChannel< T >::SetEventData | ( | Double_t * | block, |
UInt_t | sequencenumber | ||
) |
Definition at line 128 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetExternalRandomVariable | ( | Double_t | random_variable | ) |
Definition at line 79 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetHardwareSum | ( | Double_t | hwsum, |
UInt_t | sequencenumber = 0 |
||
) |
Definition at line 121 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetPedestal | ( | Double_t | ped | ) |
Definition at line 22 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetRandomEventAsymmetry | ( | Double_t | asymmetry | ) |
Definition at line 107 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetRandomEventDriftParameters | ( | Double_t | amplitude, |
Double_t | phase, | ||
Double_t | frequency | ||
) |
Definition at line 86 of file QwIntegratedRasterChannel.cc.
void QwIntegratedRasterChannel< T >::SetRandomEventParameters | ( | Double_t | mean, |
Double_t | sigma | ||
) |
Definition at line 100 of file QwIntegratedRasterChannel.cc.
Int_t QwIntegratedRasterChannel< T >::SetSingleEventCuts | ( | Double_t | mean = 0 , |
Double_t | sigma = 0 |
||
) |
Definition at line 162 of file QwIntegratedRasterChannel.cc.
|
virtual |
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
Reimplemented from VQwDataElement.
Definition at line 170 of file QwIntegratedRasterChannel.cc.
References QwLog::endl(), and QwMessage.
void QwIntegratedRasterChannel< T >::Sum | ( | QwIntegratedRasterChannel< T > & | value1, |
QwIntegratedRasterChannel< T > & | value2 | ||
) |
Definition at line 267 of file QwIntegratedRasterChannel.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 QwIntegratedRasterChannel.h.
|
inline |
Definition at line 73 of file QwIntegratedRasterChannel.h.
void QwIntegratedRasterChannel< T >::UseExternalRandomVariable | ( | ) |
Definition at line 72 of file QwIntegratedRasterChannel.cc.
|
staticprivate |
Definition at line 139 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 140 of file QwIntegratedRasterChannel.h.
Referenced by QwIntegratedRasterChannel< QwVQWK_Channel >::SetEventCutMode().
|
private |
Definition at line 128 of file QwIntegratedRasterChannel.h.
Referenced by QwIntegratedRasterChannel< T >::operator=().
|
private |
Definition at line 137 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 130 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 129 of file QwIntegratedRasterChannel.h.
|
private |
Definition at line 118 of file QwIntegratedRasterChannel.h.
Referenced by QwIntegratedRasterChannel< T >::operator+=(), QwIntegratedRasterChannel< T >::operator-=(), and QwIntegratedRasterChannel< T >::operator=().
|
private |
Definition at line 135 of file QwIntegratedRasterChannel.h.
Referenced by QwIntegratedRasterChannel< T >::AccumulateRunningSum(), QwIntegratedRasterChannel< QwVQWK_Channel >::GetEventcutErrorFlag(), QwIntegratedRasterChannel< QwVQWK_Channel >::IncrementErrorCounters(), QwIntegratedRasterChannel< T >::operator+=(), QwIntegratedRasterChannel< T >::operator-=(), QwIntegratedRasterChannel< T >::operator=(), QwIntegratedRasterChannel< QwVQWK_Channel >::SetEventCutMode(), and QwIntegratedRasterChannel< QwVQWK_Channel >::UpdateErrorFlag().
|
private |
Definition at line 129 of file QwIntegratedRasterChannel.h.