QwAnalysis
VQwDataElement Class Referenceabstract

The pure virtual base class of all data elements. More...

#include <VQwDataElement.h>

+ Inheritance diagram for VQwDataElement:
+ Collaboration diagram for VQwDataElement:

Public Types

enum  EDataToSave { kRaw = 0, kDerived }
 

Public Member Functions

 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 &paramfile)
 
virtual void ClearEventData ()
 Clear the event data in this element. More...
 
virtual Int_t ProcessEvBuffer (UInt_t *buffer, UInt_t num_words_left, UInt_t subelement=0)=0
 Process the CODA event buffer for 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 VQwDataElementoperator+= (const VQwDataElement &value)
 Addition-assignment operator. More...
 
virtual VQwDataElementoperator-= (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 ConstructHistograms (TDirectory *folder, TString &prefix)=0
 Construct the histograms for this data element. More...
 
virtual void FillHistograms ()=0
 Fill the histograms for this data element. More...
 
virtual void PrintValue () const
 Print single line of value and error of this data element. More...
 
virtual void PrintInfo () const
 Print multiple lines of information about this data element. More...
 
virtual void SetSingleEventCuts (UInt_t errorflag, Double_t min, Double_t max, Double_t stability)
 set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel More...
 
virtual void PrintErrorCounters () const
 report number of events failed due to HW and event cut failure More...
 
virtual UInt_t GetEventcutErrorFlag ()
 return the error flag on this channel/device More...
 
virtual UInt_t UpdateErrorFlag ()
 Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag". 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...
 
- Public Member Functions inherited from MQwHistograms
void ShareHistograms (const MQwHistograms *source)
 Share histogram pointers between objects. More...
 

Protected Member Functions

void SetNumberOfDataWords (const UInt_t &numwords)
 Set the number of data words in this data element. More...
 
virtual VQwDataElementoperator= (const VQwDataElement &value)
 Arithmetic assignment operator: Should only copy event-based data. More...
 
virtual void UpdateErrorFlag (const UInt_t &error)
 
- Protected Member Functions inherited from MQwHistograms
 MQwHistograms ()
 Default constructor. More...
 
 MQwHistograms (const MQwHistograms &source)
 Copy constructor. More...
 
virtual ~MQwHistograms ()
 Virtual destructor. More...
 
virtual MQwHistogramsoperator= (const MQwHistograms &value)
 
void Fill_Pointer (TH1_ptr hist_ptr, Double_t value)
 
void AddHistogram (TH1 *h)
 Register a histogram. More...
 

Protected Attributes

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
 
Event error flag
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...
 
- Protected Attributes inherited from MQwHistograms
std::vector< TH1_ptrfHistograms
 Histograms associated with this data element. More...
 

Detailed Description

The pure virtual base class of all data elements.

Each stream of data inherits from this virtual base class, which requires some standard operations on it such as ratios, summing, subtraction. The specific implementation of those operation is left to be implemented by the implemented inherited classes, but this class sets up the structure.

As an example, all individual VQWK channels inherit from this class and implement the pure virtual functions of VQwDataElement.

Definition at line 51 of file VQwDataElement.h.

Member Enumeration Documentation

Flag to be used to decide which data needs to be histogrammed and entered in the tree

Enumerator
kRaw 
kDerived 

Definition at line 55 of file VQwDataElement.h.

Constructor & Destructor Documentation

VQwDataElement::VQwDataElement ( )
inline

Default constructor.

Definition at line 61 of file VQwDataElement.h.

62  : MQwHistograms(),
63  fElementName(""),
65  fGoodEventCount(0),
66  fSubsystemName(""),
67  fModuleType(""),
68  fErrorFlag(0),
70  { };
UInt_t fErrorFlag
This the standard error code generated for the channel that contains the global/local/stability flags...
MQwHistograms()
Default constructor.
Definition: MQwHistograms.h:25
UInt_t fErrorConfigFlag
contains the global/local/stability flags
UInt_t fNumberOfDataWords
Number of raw data words in this data element.
Int_t fGoodEventCount
Number of good events accumulated in this element.
TString fElementName
Name of this data element.
TString fSubsystemName
VQwDataElement::VQwDataElement ( const VQwDataElement value)
inline

Copy constructor.

Definition at line 72 of file VQwDataElement.h.

73  : MQwHistograms(value),
78  fModuleType(value.fModuleType),
79  fErrorFlag(value.fErrorFlag),
81  { };
UInt_t fErrorFlag
This the standard error code generated for the channel that contains the global/local/stability flags...
MQwHistograms()
Default constructor.
Definition: MQwHistograms.h:25
UInt_t fErrorConfigFlag
contains the global/local/stability flags
UInt_t fNumberOfDataWords
Number of raw data words in this data element.
Int_t fGoodEventCount
Number of good events accumulated in this element.
TString fElementName
Name of this data element.
TString fSubsystemName
virtual VQwDataElement::~VQwDataElement ( )
inlinevirtual

Virtual destructor.

Definition at line 83 of file VQwDataElement.h.

83 { };

Member Function Documentation

virtual void VQwDataElement::AssignValueFrom ( const VQwDataElement valueptr)
inlinevirtual

Reimplemented in QwVQWK_Channel, VQwHardwareChannel, and VQwScaler_Channel.

Definition at line 107 of file VQwDataElement.h.

107  {
108  std::cerr << "Operation AssignValueFrom not defined!" << std::endl;
109  };
virtual void VQwDataElement::ClearEventData ( )
inlinevirtual

Clear the event data in this element.

Reimplemented in QwVQWK_Channel, QwSIS3320_Channel, VQwScaler_Channel, QwBPMStripline< T >, QwIntegrationPMT, VQwHardwareChannel, QwCombinedBPM< T >, QwQPD, QwBCM< T >, QwLinearDiodeArray, QwBPMCavity, QwSIS3320_Accumulator, QwClock< T >, QwEnergyCalculator, QwCombinedPMT, VQwBCM, VQwClock, QwPMT_Channel, QwHaloMonitor, QwIntegratedRasterChannel< T >, and QwIntegratedRasterChannel< QwVQWK_Channel >.

Definition at line 95 of file VQwDataElement.h.

References fErrorFlag.

Referenced by VQwHardwareChannel::ClearEventData().

95  {
96  fErrorFlag=0;
97  };
UInt_t fErrorFlag
This the standard error code generated for the channel that contains the global/local/stability flags...

+ Here is the caller graph for this function:

virtual void VQwDataElement::ConstructHistograms ( TDirectory *  folder,
TString &  prefix 
)
pure virtual
virtual void VQwDataElement::Difference ( const VQwDataElement value1,
const VQwDataElement value2 
)
inlinevirtual

Difference operator.

Definition at line 122 of file VQwDataElement.h.

123  { std::cerr << "Difference not defined!" << std::endl; }
virtual const TString& VQwDataElement::GetElementName ( ) const
inlinevirtual

Get the name of this element.

Definition at line 90 of file VQwDataElement.h.

References fElementName.

Referenced by VQwBPM::AccumulateRunningSum(), QwVQWK_Channel::AccumulateRunningSum(), VQwScaler_Channel::AccumulateRunningSum(), VQwHardwareChannel::AddEntriesToList(), QwVQWK_Channel::AddErrEntriesToList(), QwSIS3320_Channel::AddLogicalAccumulator(), VQwScaler_Channel::AddValueFrom(), QwVQWK_Channel::AddValueFrom(), QwVQWK_Channel::ApplyHWChecks(), QwQPD::ApplySingleEventCuts(), VQwScaler_Channel::AssignValueFrom(), QwVQWK_Channel::AssignValueFrom(), QwCombinedPMT::CalculateSumAndAverage(), QwRegression::ConnectChannels(), QwEnergyCalculator::ConstructBranch(), QwHaloMonitor::ConstructBranch(), QwCombinedPMT::ConstructBranch(), QwQPD::ConstructBranch(), QwBPMCavity::ConstructBranch(), QwLinearDiodeArray::ConstructBranch(), VQwScaler_Channel::ConstructBranch(), QwBPMStripline< T >::ConstructBranch(), VQwHardwareChannel::ConstructBranch(), QwIntegrationPMT::ConstructBranch(), QwVQWK_Channel::ConstructBranch(), QwPMT_Channel::ConstructBranchAndVector(), QwSIS3320_Accumulator::ConstructBranchAndVector(), QwEnergyCalculator::ConstructBranchAndVector(), QwHaloMonitor::ConstructBranchAndVector(), QwSIS3320_Channel::ConstructBranchAndVector(), QwCombinedPMT::ConstructBranchAndVector(), QwQPD::ConstructBranchAndVector(), QwBPMCavity::ConstructBranchAndVector(), QwLinearDiodeArray::ConstructBranchAndVector(), VQwScaler_Channel::ConstructBranchAndVector(), QwBPMStripline< T >::ConstructBranchAndVector(), QwIntegrationPMT::ConstructBranchAndVector(), QwVQWK_Channel::ConstructBranchAndVector(), QwPMT_Channel::ConstructHistograms(), QwSIS3320_Accumulator::ConstructHistograms(), QwEnergyCalculator::ConstructHistograms(), QwHaloMonitor::ConstructHistograms(), QwSIS3320_Channel::ConstructHistograms(), QwCombinedPMT::ConstructHistograms(), QwQPD::ConstructHistograms(), QwBPMCavity::ConstructHistograms(), QwLinearDiodeArray::ConstructHistograms(), VQwScaler_Channel::ConstructHistograms(), QwBPMStripline< T >::ConstructHistograms(), QwIntegrationPMT::ConstructHistograms(), QwVQWK_Channel::ConstructHistograms(), VQwScaler_Channel::DivideBy(), QwVQWK_Channel::DivideBy(), QwPMT_Channel::FillHistograms(), QwEnergyCalculator::FillHistograms(), QwHaloMonitor::FillHistograms(), QwCombinedPMT::FillHistograms(), QwQPD::FillHistograms(), QwBPMCavity::FillHistograms(), QwLinearDiodeArray::FillHistograms(), QwBPMStripline< T >::FillHistograms(), QwIntegrationPMT::FillHistograms(), QwPMT_Channel::FillTreeVector(), QwEnergyCalculator::FillTreeVector(), QwHaloMonitor::FillTreeVector(), QwCombinedPMT::FillTreeVector(), QwBPMCavity::FillTreeVector(), QwQPD::FillTreeVector(), QwLinearDiodeArray::FillTreeVector(), VQwScaler_Channel::FillTreeVector(), QwBPMStripline< T >::FillTreeVector(), QwIntegrationPMT::FillTreeVector(), QwQPD::GetCalibrationFactors(), QwCombinedPMT::GetChannel(), QwIntegrationPMT::GetChannel(), VQwBPM::GetElectronicFactors(), QwQPD::GetPosition(), QwBPMCavity::GetPosition(), QwLinearDiodeArray::GetPosition(), QwCombinedBPM< T >::GetPosition(), QwBPMStripline< T >::GetPosition(), QwCombinedBPM< T >::GetSlope(), QwBPMCavity::GetSubelementByName(), QwQPD::GetSubelementByName(), QwLinearDiodeArray::GetSubelementByName(), QwBPMStripline< T >::GetSubelementByName(), QwQPD::GetSubElementName(), QwBPMCavity::GetSubElementName(), QwLinearDiodeArray::GetSubElementName(), QwBPMStripline< T >::GetSubElementName(), QwQPD::InitializeChannel(), QwBPMCavity::InitializeChannel(), QwLinearDiodeArray::InitializeChannel(), QwSIS3320_Channel::InitializeChannel(), QwCombinedPMT::LinkChannel(), QwBeamLine::LoadChannelMap(), QwVQWK_Channel::LoadChannelParameters(), QwVQWK_Channel::MatchNumberOfSamples(), VQwScaler_Channel::MultiplyBy(), QwVQWK_Channel::MultiplyBy(), VQwScaler_Channel::operator*=(), QwVQWK_Channel::operator*=(), QwHaloMonitor::operator+=(), QwEnergyCalculator::operator+=(), QwClock< T >::operator+=(), QwCombinedPMT::operator+=(), VQwScaler_Channel::operator+=(), QwQPD::operator+=(), QwBPMCavity::operator+=(), QwLinearDiodeArray::operator+=(), QwBCM< T >::operator+=(), QwVQWK_Channel::operator+=(), QwIntegrationPMT::operator+=(), QwBPMStripline< T >::operator+=(), QwHaloMonitor::operator-=(), QwEnergyCalculator::operator-=(), QwClock< T >::operator-=(), QwCombinedPMT::operator-=(), VQwScaler_Channel::operator-=(), QwQPD::operator-=(), QwBPMCavity::operator-=(), QwLinearDiodeArray::operator-=(), QwVQWK_Channel::operator-=(), QwIntegrationPMT::operator-=(), QwBPMStripline< T >::operator-=(), QwBCM< T >::operator-=(), VQwScaler_Channel::operator/=(), QwVQWK_Channel::operator/=(), QwPMT_Channel::operator=(), QwHaloMonitor::operator=(), QwEnergyCalculator::operator=(), QwClock< T >::operator=(), VQwBPM::operator=(), QwCombinedPMT::operator=(), QwQPD::operator=(), QwBPMCavity::operator=(), QwLinearDiodeArray::operator=(), QwBCM< T >::operator=(), QwIntegrationPMT::operator=(), QwBPMStripline< T >::operator=(), VQwScaler_Channel::PrintErrorCounters(), QwVQWK_Channel::PrintErrorCounters(), PrintInfo(), QwSIS3320_Channel::PrintInfo(), VQwScaler_Channel::PrintInfo(), QwVQWK_Channel::PrintInfo(), QwPMT_Channel::PrintValue(), QwSIS3320_Channel::PrintValue(), VQwScaler_Channel::PrintValue(), QwVQWK_Channel::PrintValue(), VQwScaler_Channel::ProcessEvent(), QwVQWK_Channel::ProcessEvent(), VQwHardwareChannel::RangeCheck(), QwHaloMonitor::Ratio(), QwIntegrationPMT::Ratio(), VQwBPM::Ratio(), QwEnergyCalculator::Set(), VQwBPM::SetRotation(), VQwBPM::SetSingleEventCuts(), VQwHardwareChannel::SetSingleEventCuts(), VQwScaler_Channel::SubtractValueFrom(), QwVQWK_Channel::SubtractValueFrom(), QwCombinedPMT::UpdateErrorFlag(), QwBCM< T >::UpdateErrorFlag(), QwQPD::UpdateErrorFlag(), QwBPMCavity::UpdateErrorFlag(), QwLinearDiodeArray::UpdateErrorFlag(), QwIntegrationPMT::UpdateErrorFlag(), QwCombinedBPM< T >::UpdateErrorFlag(), and QwBPMStripline< T >::UpdateErrorFlag().

90 { return fElementName; }
TString fElementName
Name of this data element.
virtual UInt_t VQwDataElement::GetEventcutErrorFlag ( )
inlinevirtual

return the error flag on this channel/device

Reimplemented in QwBPMStripline< T >, QwCombinedBPM< T >, QwIntegrationPMT, QwLinearDiodeArray, QwBPMCavity, QwQPD, QwBCM< T >, QwHaloMonitor, QwCombinedPMT, QwEnergyCalculator, QwClock< T >, QwIntegratedRasterChannel< T >, and QwIntegratedRasterChannel< QwVQWK_Channel >.

Definition at line 145 of file VQwDataElement.h.

References fErrorConfigFlag, fErrorFlag, and kGlobalCut.

Referenced by QwEnergyCalculator::GetEventcutErrorFlag(), QwQPD::GetEventcutErrorFlag(), QwBPMCavity::GetEventcutErrorFlag(), QwLinearDiodeArray::GetEventcutErrorFlag(), QwIntegrationPMT::GetEventcutErrorFlag(), VQwBCM::UpdateErrorFlag(), QwEnergyCalculator::UpdateErrorFlag(), QwQPD::UpdateErrorFlag(), QwBPMCavity::UpdateErrorFlag(), QwLinearDiodeArray::UpdateErrorFlag(), VQwHardwareChannel::UpdateErrorFlag(), and UpdateErrorFlag().

145  {
146  //first condition check for global/local status and second condition check to see non-zero HW error codes
147  if (((fErrorConfigFlag & kGlobalCut) == kGlobalCut) && (fErrorFlag)>0){
148  // we care only about global cuts
149  //std::cout<<"fErrorFlag "<<(fErrorFlag & kGlobalCut)<<std::endl;
150  return fErrorFlag+fErrorConfigFlag;//pass the error codes and configuration codes
151  }
152  return 0;
153  }
UInt_t fErrorFlag
This the standard error code generated for the channel that contains the global/local/stability flags...
UInt_t fErrorConfigFlag
contains the global/local/stability flags
static const UInt_t kGlobalCut
Definition: QwTypes.h:176

+ Here is the caller graph for this function:

virtual std::string VQwDataElement::GetExternalClockName ( )
inlinevirtual

Reimplemented in VQwScaler_Channel, QwBCM< T >, and QwHaloMonitor.

Definition at line 164 of file VQwDataElement.h.

Referenced by QwBeamLine::LoadChannelMap().

164 { return ""; }; // Default is none

+ Here is the caller graph for this function:

UInt_t VQwDataElement::GetGoodEventCount ( ) const
inline

Definition at line 104 of file VQwDataElement.h.

References fGoodEventCount.

Referenced by VQwHardwareChannel::AddEntriesToList(), and QwVQWK_Channel::PrintValue().

104 { return fGoodEventCount; };
Int_t fGoodEventCount
Number of good events accumulated in this element.

+ Here is the caller graph for this function:

TString VQwDataElement::GetModuleType ( ) const
inline

Return the type of the beam instrument.

Definition at line 182 of file VQwDataElement.h.

References fModuleType.

Referenced by QwVQWK_Channel::ConstructBranchAndVector(), VQwClock::Create(), VQwBCM::Create(), VQwBCM::CreateCombo(), VQwBPM::CreateCombo(), VQwBPM::CreateStripline(), QwVQWK_Channel::PrintInfo(), and QwVQWK_Channel::PrintValue().

182  {
183  return fModuleType;
184  }

+ Here is the caller graph for this function:

virtual Double_t VQwDataElement::GetNormClockValue ( )
inlinevirtual

Reimplemented in QwClock< T >, QwBCM< T >, VQwClock, VQwBCM, and QwHaloMonitor.

Definition at line 167 of file VQwDataElement.h.

167 { return 1.;}
size_t VQwDataElement::GetNumberOfDataWords ( )
inline

Get the number of data words in this data element.

Definition at line 102 of file VQwDataElement.h.

References fNumberOfDataWords.

102 {return fNumberOfDataWords;}
UInt_t fNumberOfDataWords
Number of raw data words in this data element.
TString VQwDataElement::GetSubsystemName ( ) const
inline

Return the name of the inheriting subsystem name.

Definition at line 172 of file VQwDataElement.h.

References fSubsystemName.

Referenced by QwVQWK_Channel::ConstructBranchAndVector(), QwVQWK_Channel::PrintInfo(), and QwVQWK_Channel::PrintValue().

172  {
173  return fSubsystemName;
174  }
TString fSubsystemName

+ Here is the caller graph for this function:

Bool_t VQwDataElement::IsNameEmpty ( ) const
inline

Is the name of this element empty?

Definition at line 86 of file VQwDataElement.h.

References fElementName.

Referenced by VQwScaler_Channel::AddChannelOffset(), QwVQWK_Channel::AddChannelOffset(), VQwScaler_Channel::AssignScaledValue(), QwVQWK_Channel::AssignScaledValue(), QwVQWK_Channel::Blind(), VQwScaler_Channel::ConstructBranch(), QwVQWK_Channel::ConstructBranch(), QwSIS3320_Accumulator::ConstructBranchAndVector(), VQwScaler_Channel::ConstructBranchAndVector(), QwVQWK_Channel::ConstructBranchAndVector(), QwSIS3320_Accumulator::ConstructHistograms(), QwSIS3320_Channel::ConstructHistograms(), QwVQWK_Channel::ConstructHistograms(), QwPMT_Channel::EncodeEventData(), QwSIS3320_Channel::EncodeEventData(), QwVQWK_Channel::EncodeEventData(), QwSIS3320_Accumulator::FillHistograms(), QwSIS3320_Channel::FillHistograms(), VQwScaler_Channel::FillHistograms(), QwVQWK_Channel::FillHistograms(), QwSIS3320_Accumulator::FillTreeVector(), VQwScaler_Channel::FillTreeVector(), QwVQWK_Channel::FillTreeVector(), QwVQWK_Channel::MatchNumberOfSamples(), QwVQWK_Channel::MatchSequenceNumber(), QwSIS3320_Channel::Offset(), QwSIS3320_Accumulator::operator*=(), VQwScaler_Channel::operator*=(), QwVQWK_Channel::operator*=(), QwSIS3320_Accumulator::operator+=(), QwSIS3320_Channel::operator+=(), VQwScaler_Channel::operator+=(), QwVQWK_Channel::operator+=(), QwSIS3320_Accumulator::operator-=(), QwSIS3320_Channel::operator-=(), VQwScaler_Channel::operator-=(), QwVQWK_Channel::operator-=(), QwSIS3320_Accumulator::operator/=(), VQwScaler_Channel::operator/=(), QwVQWK_Channel::operator/=(), QwSIS3320_Accumulator::operator=(), VQwScaler_Channel::operator=(), QwSIS3320_Channel::operator=(), QwVQWK_Channel::operator=(), QwSIS3320_Channel::ProcessEvBuffer(), QwVQWK_Channel::ProcessEvBuffer(), VQwScaler_Channel::Product(), QwVQWK_Channel::Product(), QwSIS3320_Accumulator::Ratio(), QwSIS3320_Channel::Ratio(), VQwScaler_Channel::Ratio(), QwVQWK_Channel::Ratio(), QwSIS3320_Channel::Scale(), VQwScaler_Channel::Scale(), QwVQWK_Channel::Scale(), VQwScaler_Channel::ScaledAdd(), and QwVQWK_Channel::ScaledAdd().

86 { return fElementName.IsNull(); }
TString fElementName
Name of this data element.
virtual void VQwDataElement::LoadChannelParameters ( QwParameterFile paramfile)
inlinevirtual
virtual Bool_t VQwDataElement::NeedsExternalClock ( )
inlinevirtual

Reimplemented in VQwScaler_Channel, QwBCM< T >, VQwBCM, and QwHaloMonitor.

Definition at line 163 of file VQwDataElement.h.

Referenced by QwBeamLine::LoadChannelMap().

163 { return kFALSE; }; // Default is No!

+ Here is the caller graph for this function:

virtual VQwDataElement& VQwDataElement::operator+= ( const VQwDataElement value)
inlinevirtual

Addition-assignment operator.

Definition at line 112 of file VQwDataElement.h.

113  { std::cerr << "Operation += not defined!" << std::endl; return *this; }
virtual VQwDataElement& VQwDataElement::operator-= ( const VQwDataElement value)
inlinevirtual

Subtraction-assignment operator.

Definition at line 115 of file VQwDataElement.h.

116  { std::cerr << "Operation -= not defined!" << std::endl; return *this; }
virtual VQwDataElement& VQwDataElement::operator= ( const VQwDataElement value)
inlineprotectedvirtual

Arithmetic assignment operator: Should only copy event-based data.

Definition at line 196 of file VQwDataElement.h.

References fErrorFlag, fGoodEventCount, and MQwHistograms::operator=().

Referenced by VQwHardwareChannel::operator=().

196  {
197  if(this != &value){
200  fErrorFlag = value.fErrorFlag;
201  }
202  return *this;
203  }
UInt_t fErrorFlag
This the standard error code generated for the channel that contains the global/local/stability flags...
Int_t fGoodEventCount
Number of good events accumulated in this element.
virtual MQwHistograms & operator=(const MQwHistograms &value)
Definition: MQwHistograms.h:34

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void VQwDataElement::PrintErrorCounters ( ) const
inlinevirtual
virtual void VQwDataElement::PrintInfo ( ) const
inlinevirtual

Print multiple lines of information about this data element.

Reimplemented in QwVQWK_Channel, VQwBPM, VQwScaler_Channel, QwSIS3320_Channel, QwHaloMonitor, QwIntegrationPMT, QwBCM< T >, QwCombinedPMT, QwIntegratedRasterChannel< T >, QwIntegratedRasterChannel< QwVQWK_Channel >, QwClock< T >, QwBPMStripline< T >, QwCombinedBPM< T >, QwPMT_Channel, QwLinearDiodeArray, QwBPMCavity, and QwEnergyCalculator.

Definition at line 136 of file VQwDataElement.h.

References GetElementName().

136 { std::cout << GetElementName() << std::endl; }
virtual const TString & GetElementName() const
Get the name of this element.

+ Here is the call graph for this function:

virtual void VQwDataElement::PrintValue ( ) const
inlinevirtual
virtual void VQwDataElement::Ratio ( const VQwDataElement numer,
const VQwDataElement denom 
)
inlinevirtual

Ratio operator.

Definition at line 125 of file VQwDataElement.h.

126  { std::cerr << "Ratio not defined!" << std::endl; }
virtual void VQwDataElement::SetExternalClockName ( const std::string  name)
inlinevirtual

Reimplemented in VQwScaler_Channel, QwBCM< T >, VQwBCM, and QwHaloMonitor.

Definition at line 166 of file VQwDataElement.h.

166 {};
virtual void VQwDataElement::SetExternalClockPtr ( const VQwHardwareChannel clock)
inlinevirtual

Reimplemented in VQwScaler_Channel, QwBCM< T >, VQwBCM, and QwHaloMonitor.

Definition at line 165 of file VQwDataElement.h.

Referenced by QwBeamLine::LoadChannelMap().

165 {};

+ Here is the caller graph for this function:

void VQwDataElement::SetModuleType ( TString  ModuleType)
inline

set the type of the beam instrument

Definition at line 187 of file VQwDataElement.h.

References fModuleType.

Referenced by QwCombinedBPM< T >::InitializeChannel(), QwBPMStripline< T >::InitializeChannel(), VQwScaler_Channel::InitializeChannel(), and QwVQWK_Channel::InitializeChannel().

187  {
188  fModuleType=ModuleType;
189  }

+ Here is the caller graph for this function:

virtual void VQwDataElement::SetNeedsExternalClock ( Bool_t  needed)
inlinevirtual

Reimplemented in VQwScaler_Channel.

Definition at line 162 of file VQwDataElement.h.

162 {}; // Default is No!
void VQwDataElement::SetNumberOfDataWords ( const UInt_t &  numwords)
inlineprotected

Set the number of data words in this data element.

Definition at line 193 of file VQwDataElement.h.

References fNumberOfDataWords.

Referenced by QwSIS3320_Channel::InitializeChannel(), and QwSIS3320_Accumulator::QwSIS3320_Accumulator().

193 {fNumberOfDataWords = numwords;}
UInt_t fNumberOfDataWords
Number of raw data words in this data element.

+ Here is the caller graph for this function:

virtual void VQwDataElement::SetSingleEventCuts ( UInt_t  errorflag,
Double_t  min,
Double_t  max,
Double_t  stability 
)
inlinevirtual

set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel

Reimplemented in QwIntegrationPMT, QwBCM< T >, VQwHardwareChannel, QwHaloMonitor, QwIntegratedRasterChannel< T >, QwIntegratedRasterChannel< QwVQWK_Channel >, QwClock< T >, QwCombinedPMT, QwEnergyCalculator, VQwBCM, and VQwClock.

Definition at line 140 of file VQwDataElement.h.

140 {std::cerr << "SetSingleEventCuts not defined!" << std::endl; };
virtual void VQwDataElement::Sum ( const VQwDataElement value1,
const VQwDataElement value2 
)
inlinevirtual

Sum operator.

Definition at line 119 of file VQwDataElement.h.

120  { std::cerr << "Sum not defined!" << std::endl; }
virtual UInt_t VQwDataElement::UpdateErrorFlag ( )
inlinevirtual

Update the error flag based on the error flags of internally contained objects Return paramter is the "Eventcut Error Flag".

Reimplemented in QwBPMStripline< T >, QwCombinedBPM< T >, QwIntegrationPMT, VQwHardwareChannel, QwLinearDiodeArray, QwBPMCavity, QwQPD, QwCombinedPMT, QwHaloMonitor, VQwBPM, QwEnergyCalculator, QwCombinedBCM< T >, QwClock< T >, QwIntegratedRasterChannel< T >, QwIntegratedRasterChannel< QwVQWK_Channel >, and VQwBCM.

Definition at line 158 of file VQwDataElement.h.

References GetEventcutErrorFlag().

158 {return GetEventcutErrorFlag();};
virtual UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device

+ Here is the call graph for this function:

virtual void VQwDataElement::UpdateErrorFlag ( const UInt_t &  error)
inlineprotectedvirtual

Definition at line 207 of file VQwDataElement.h.

References fErrorFlag.

207 {fErrorFlag |= (error);};
UInt_t fErrorFlag
This the standard error code generated for the channel that contains the global/local/stability flags...

Field Documentation

UInt_t VQwDataElement::fErrorFlag
protected

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)

Definition at line 223 of file VQwDataElement.h.

Referenced by QwVQWK_Channel::AccumulateRunningSum(), VQwScaler_Channel::AccumulateRunningSum(), VQwScaler_Channel::ApplyHWChecks(), QwVQWK_Channel::ApplyHWChecks(), VQwScaler_Channel::ApplySingleEventCuts(), QwVQWK_Channel::ApplySingleEventCuts(), VQwScaler_Channel::AssignScaledValue(), QwVQWK_Channel::AssignScaledValue(), QwVQWK_Channel::Blind(), QwVQWK_Channel::CalculateRunningAverage(), VQwScaler_Channel::ClearEventData(), QwVQWK_Channel::ClearEventData(), ClearEventData(), VQwScaler_Channel::FillHistograms(), QwVQWK_Channel::FillHistograms(), VQwScaler_Channel::FillTreeVector(), QwVQWK_Channel::FillTreeVector(), VQwHardwareChannel::GetErrorCode(), GetEventcutErrorFlag(), VQwScaler_Channel::IncrementErrorCounters(), QwVQWK_Channel::IncrementErrorCounters(), VQwScaler_Channel::InitializeChannel(), QwVQWK_Channel::InitializeChannel(), VQwScaler_Channel::operator*=(), QwVQWK_Channel::operator*=(), VQwScaler_Channel::operator+=(), QwVQWK_Channel::operator+=(), VQwScaler_Channel::operator-=(), QwVQWK_Channel::operator-=(), VQwScaler_Channel::operator/=(), QwVQWK_Channel::operator/=(), operator=(), QwVQWK_Channel::ProcessEvent(), VQwScaler_Channel::Product(), QwVQWK_Channel::Product(), VQwScaler_Channel::Ratio(), QwVQWK_Channel::Ratio(), VQwScaler_Channel::ScaledAdd(), QwVQWK_Channel::ScaledAdd(), VQwHardwareChannel::UpdateErrorFlag(), UpdateErrorFlag(), and VQwHardwareChannel::VQwHardwareChannel().

TString VQwDataElement::fModuleType
protected

Definition at line 218 of file VQwDataElement.h.

Referenced by GetModuleType(), and SetModuleType().

UInt_t VQwDataElement::fNumberOfDataWords
protected

Number of raw data words in this data element.

Definition at line 211 of file VQwDataElement.h.

Referenced by GetNumberOfDataWords(), QwSIS3320_Accumulator::ProcessEvBuffer(), QwSIS3320_Channel::ProcessEvBuffer(), and SetNumberOfDataWords().

TString VQwDataElement::fSubsystemName
protected

Definition at line 216 of file VQwDataElement.h.

Referenced by GetSubsystemName(), and SetSubsystemName().


The documentation for this class was generated from the following file: