QwAnalysis
QwHaloMonitor Class Reference

#include <QwHaloMonitor.h>

+ Inheritance diagram for QwHaloMonitor:
+ Collaboration diagram for QwHaloMonitor:

Public Member Functions

 QwHaloMonitor ()
 
 QwHaloMonitor (TString name)
 
 QwHaloMonitor (TString subsystemname, TString name)
 
 QwHaloMonitor (const QwHaloMonitor &source)
 
virtual ~QwHaloMonitor ()
 
void InitializeChannel (TString name)
 
void InitializeChannel (TString subsystem, TString name)
 
void ClearEventData ()
 Clear the event data in this element. More...
 
void LoadChannelParameters (QwParameterFile &paramfile)
 
std::string GetExternalClockName ()
 
Bool_t NeedsExternalClock ()
 
void SetExternalClockPtr (const VQwHardwareChannel *clock)
 
void SetExternalClockName (const std::string name)
 
Double_t GetNormClockValue ()
 
void PrintErrorCounters ()
 
void UpdateHWErrorCount ()
 
Int_t ProcessEvBuffer (UInt_t *buffer, UInt_t num_words_left, UInt_t index=0)
 Process the CODA event buffer for this element. More...
 
void ProcessEvent ()
 
QwHaloMonitoroperator= (const QwHaloMonitor &value)
 
QwHaloMonitoroperator+= (const QwHaloMonitor &value)
 
QwHaloMonitoroperator-= (const QwHaloMonitor &value)
 
void Sum (QwHaloMonitor &value1, QwHaloMonitor &value2)
 
void Difference (QwHaloMonitor &value1, QwHaloMonitor &value2)
 
void Ratio (QwHaloMonitor &numer, QwHaloMonitor &denom)
 
void Offset (Double_t Offset)
 
void Scale (Double_t Offset)
 
void SetPedestal (Double_t ped)
 
void SetCalibrationFactor (Double_t factor)
 
void AccumulateRunningSum (const QwHaloMonitor &value)
 
void DeaccumulateRunningSum (QwHaloMonitor &value)
 
void CalculateRunningAverage ()
 
Bool_t ApplySingleEventCuts ()
 
void IncrementErrorCounters ()
 
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 QwHaloMonitor *ev_error)
 
void PrintErrorCounters () const
 report number of events failed due to HW and event cut failure More...
 
Bool_t ApplyHWChecks ()
 
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...
 
void SetEventCutMode (Int_t bcuts)
 
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
 
VQwHardwareChannelGetScaler ()
 
const VQwHardwareChannelGetScaler () const
 
Double_t GetValue ()
 
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...
 
std::vector< QwDBInterfaceGetDBEntry ()
 
std::vector< QwErrDBInterfaceGetErrDBEntry ()
 
- Public Member Functions inherited from VQwDataElement
 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 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 SetNeedsExternalClock (Bool_t needed)
 
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...
 

Private Attributes

QwSIS3801D24_Channel fHalo_Counter
 
Int_t fDeviceErrorCode
 
Bool_t bEVENTCUTMODE
 

Static Private Attributes

static const Bool_t kDEBUG
 

Additional Inherited Members

- Public Types inherited from VQwDataElement
enum  EDataToSave { kRaw = 0, kDerived }
 
- Protected Member Functions inherited from VQwDataElement
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 inherited from VQwDataElement
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...
 
- Protected Attributes inherited from MQwHistograms
std::vector< TH1_ptrfHistograms
 Histograms associated with this data element. More...
 

Detailed Description

Definition at line 31 of file QwHaloMonitor.h.

Constructor & Destructor Documentation

QwHaloMonitor::QwHaloMonitor ( )
inline

Definition at line 35 of file QwHaloMonitor.h.

35 { };
QwHaloMonitor::QwHaloMonitor ( TString  name)
inline

Definition at line 36 of file QwHaloMonitor.h.

References InitializeChannel().

36  {
37  InitializeChannel(name);
38  };
void InitializeChannel(TString name)

+ Here is the call graph for this function:

QwHaloMonitor::QwHaloMonitor ( TString  subsystemname,
TString  name 
)
inline

Definition at line 39 of file QwHaloMonitor.h.

References InitializeChannel().

39  {
40  InitializeChannel(subsystemname, name);
41  };
void InitializeChannel(TString name)

+ Here is the call graph for this function:

QwHaloMonitor::QwHaloMonitor ( const QwHaloMonitor source)
inline

Definition at line 42 of file QwHaloMonitor.h.

43  : VQwDataElement(source),
45  { }
VQwDataElement()
Default constructor.
QwSIS3801D24_Channel fHalo_Counter
virtual QwHaloMonitor::~QwHaloMonitor ( )
inlinevirtual

Definition at line 46 of file QwHaloMonitor.h.

46 { };

Member Function Documentation

void QwHaloMonitor::AccumulateRunningSum ( const QwHaloMonitor value)

Definition at line 110 of file QwHaloMonitor.cc.

References fHalo_Counter.

110  {
111  fHalo_Counter.AccumulateRunningSum(value.fHalo_Counter);
112 }
QwSIS3801D24_Channel fHalo_Counter
Bool_t QwHaloMonitor::ApplyHWChecks ( )

Definition at line 43 of file QwHaloMonitor.cc.

44 {
45  Bool_t eventokay=kTRUE;
46  return eventokay;
47 }
Bool_t QwHaloMonitor::ApplySingleEventCuts ( )

Definition at line 50 of file QwHaloMonitor.cc.

References fHalo_Counter.

51 {
52  return fHalo_Counter.ApplySingleEventCuts();
53 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::CalculateRunningAverage ( )

Definition at line 118 of file QwHaloMonitor.cc.

References fHalo_Counter.

118  {
119  fHalo_Counter.CalculateRunningAverage();
120 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::ClearEventData ( )
virtual

Clear the event data in this element.

Reimplemented from VQwDataElement.

Definition at line 26 of file QwHaloMonitor.cc.

References fHalo_Counter.

27 {
28  fHalo_Counter.ClearEventData();
29 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::ConstructBranch ( TTree *  tree,
TString &  prefix 
)

Definition at line 165 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

166 {
167  if (GetElementName()==""){
168  // This channel is not used, so skip filling the histograms.
169  }
170  else{
171  fHalo_Counter.ConstructBranch(tree, prefix);
172  // this functions doesn't do anything yet
173  }
174 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::ConstructBranch ( TTree *  tree,
TString &  prefix,
QwParameterFile modulelist 
)

Definition at line 178 of file QwHaloMonitor.cc.

References QwLog::endl(), fHalo_Counter, VQwDataElement::GetElementName(), QwParameterFile::HasValue(), and QwMessage.

179 {
180  TString devicename;
181 
182  devicename=GetElementName();
183  devicename.ToLower();
184  if (GetElementName()==""){
185  // This channel is not used, so skip filling the histograms.
186  } else {
187 
188  //QwMessage <<" QwHaloMonitor "<<devicename<<QwLog::endl;
189  if (modulelist.HasValue(devicename)){
190  fHalo_Counter.ConstructBranch(tree, prefix);
191  QwMessage <<" Tree leaf added to "<<devicename<<QwLog::endl;
192  }
193  // this functions doesn't do anything yet
194  }
195 }
#define QwMessage
Predefined log drain for regular messages.
Definition: QwLog.h:50
Bool_t HasValue(TString &vname)
static std::ostream & endl(std::ostream &)
End of the line.
Definition: QwLog.cc:299
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::ConstructBranchAndVector ( TTree *  tree,
TString &  prefix,
std::vector< Double_t > &  values 
)

Definition at line 154 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

155 {
156  if (GetElementName()==""){
157  // This channel is not used, so skip filling the histograms.
158  }
159  else{
160  fHalo_Counter.ConstructBranchAndVector(tree, prefix,values);
161  // this functions doesn't do anything yet
162  }
163 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::ConstructHistograms ( TDirectory *  folder,
TString &  prefix 
)
virtual

Construct the histograms for this data element.

Implements VQwDataElement.

Definition at line 134 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

135 {
136  if (GetElementName()==""){
137  // This channel is not used, so skip filling the histograms.
138  }
139  else{
140  fHalo_Counter.ConstructHistograms(folder, prefix);
141  }
142 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::DeaccumulateRunningSum ( QwHaloMonitor value)

Definition at line 114 of file QwHaloMonitor.cc.

114  {
115  //fHalo_Counter.DeccumulateRunningSum(value.fHalo_Counter);
116 }
void QwHaloMonitor::Difference ( QwHaloMonitor value1,
QwHaloMonitor value2 
)

Definition at line 92 of file QwHaloMonitor.cc.

92  {
93  *this = value1;
94  *this -= value2;
95 }
void QwHaloMonitor::FillHistograms ( )
virtual

Fill the histograms for this data element.

Implements VQwDataElement.

Definition at line 144 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

145 {
146  if (GetElementName()==""){
147  // This channel is not used, so skip filling the histograms.
148  }
149  else{
150  fHalo_Counter.FillHistograms();
151  }
152 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::FillTreeVector ( std::vector< Double_t > &  values) const

Definition at line 200 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

201 {
202  if (GetElementName()==""){
203  // This channel is not used, so skip filling the histograms.
204  }
205  else{
206  fHalo_Counter.FillTreeVector(values);
207  // this functions doesn't do anything yet
208  }
209 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

std::vector< QwDBInterface > QwHaloMonitor::GetDBEntry ( )

Definition at line 212 of file QwHaloMonitor.cc.

References fHalo_Counter.

213 {
214  std::vector <QwDBInterface> row_list;
215  row_list.clear();
216  fHalo_Counter.AddEntriesToList(row_list);
217  return row_list;
218 }
QwSIS3801D24_Channel fHalo_Counter
std::vector< QwErrDBInterface > QwHaloMonitor::GetErrDBEntry ( )

Definition at line 221 of file QwHaloMonitor.cc.

References fHalo_Counter.

222 {
223  std::vector <QwErrDBInterface> row_list;
224  row_list.clear();
225  fHalo_Counter.AddErrEntriesToList(row_list);
226  return row_list;
227 }
QwSIS3801D24_Channel fHalo_Counter
UInt_t QwHaloMonitor::GetEventcutErrorFlag ( )
inlinevirtual

return the error flag on this channel/device

Reimplemented from VQwDataElement.

Definition at line 87 of file QwHaloMonitor.h.

References fHalo_Counter.

Referenced by UpdateErrorFlag().

87 {return fHalo_Counter.GetEventcutErrorFlag();};
QwSIS3801D24_Channel fHalo_Counter

+ Here is the caller graph for this function:

std::string QwHaloMonitor::GetExternalClockName ( )
inlinevirtual

Reimplemented from VQwDataElement.

Definition at line 56 of file QwHaloMonitor.h.

References fHalo_Counter.

56 { return fHalo_Counter.GetExternalClockName(); };
QwSIS3801D24_Channel fHalo_Counter
Double_t QwHaloMonitor::GetNormClockValue ( )
inlinevirtual

Reimplemented from VQwDataElement.

Definition at line 60 of file QwHaloMonitor.h.

References fHalo_Counter.

60 { return fHalo_Counter.GetNormClockValue();}
QwSIS3801D24_Channel fHalo_Counter
VQwHardwareChannel* QwHaloMonitor::GetScaler ( )
inline

Definition at line 112 of file QwHaloMonitor.h.

References fHalo_Counter.

Referenced by GetScaler().

112  {
113  return &fHalo_Counter;
114  };
QwSIS3801D24_Channel fHalo_Counter

+ Here is the caller graph for this function:

const VQwHardwareChannel* QwHaloMonitor::GetScaler ( ) const
inline

Definition at line 116 of file QwHaloMonitor.h.

References GetScaler().

116  {
117  return const_cast<QwHaloMonitor*>(this)->GetScaler();
118  };
VQwHardwareChannel * GetScaler()

+ Here is the call graph for this function:

Double_t QwHaloMonitor::GetValue ( )
inline

Definition at line 120 of file QwHaloMonitor.h.

References fHalo_Counter.

120  {
121  return fHalo_Counter.GetValue();
122  }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::IncrementErrorCounters ( )
inline

Definition at line 86 of file QwHaloMonitor.h.

References fHalo_Counter.

86 {fHalo_Counter.IncrementErrorCounters();};
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::InitializeChannel ( TString  name)

Definition at line 21 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::SetElementName().

Referenced by QwHaloMonitor().

21  {
22  fHalo_Counter.InitializeChannel(name);
23  SetElementName(name);
24 }
void SetElementName(const TString &name)
Set the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void QwHaloMonitor::InitializeChannel ( TString  subsystem,
TString  name 
)

Definition at line 16 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::SetElementName().

16  {
17  fHalo_Counter.InitializeChannel(name);
18  SetElementName(name);
19 }
void SetElementName(const TString &name)
Set the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::LoadChannelParameters ( QwParameterFile paramfile)
inlinevirtual

Reimplemented from VQwDataElement.

Definition at line 53 of file QwHaloMonitor.h.

References fHalo_Counter.

53  {
54  fHalo_Counter.LoadChannelParameters(paramfile);
55  }
QwSIS3801D24_Channel fHalo_Counter
Bool_t QwHaloMonitor::NeedsExternalClock ( )
inlinevirtual

Reimplemented from VQwDataElement.

Definition at line 57 of file QwHaloMonitor.h.

References fHalo_Counter.

57 { return fHalo_Counter.NeedsExternalClock(); };
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::Offset ( Double_t  Offset)
QwHaloMonitor & QwHaloMonitor::operator+= ( const QwHaloMonitor value)

Definition at line 70 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

71 {
72  if (GetElementName()!=""){
73  this->fHalo_Counter+=value.fHalo_Counter;
74  }
75  return *this;
76 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

QwHaloMonitor & QwHaloMonitor::operator-= ( const QwHaloMonitor value)

Definition at line 78 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

79 {
80  if (GetElementName()!=""){
81  this->fHalo_Counter-=value.fHalo_Counter;
82  }
83  return *this;
84 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

QwHaloMonitor & QwHaloMonitor::operator= ( const QwHaloMonitor value)

Definition at line 62 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

63 {
64  if (GetElementName()!=""){
65  this->fHalo_Counter=value.fHalo_Counter;
66  }
67  return *this;
68 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::PrintErrorCounters ( )
void QwHaloMonitor::PrintErrorCounters ( ) const
virtual

report number of events failed due to HW and event cut failure

Reimplemented from VQwDataElement.

Definition at line 56 of file QwHaloMonitor.cc.

References fHalo_Counter.

57 {
58  fHalo_Counter.PrintErrorCounters();
59 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::PrintInfo ( ) const
virtual

Print multiple lines of information about this data element.

Reimplemented from VQwDataElement.

Definition at line 128 of file QwHaloMonitor.cc.

References fHalo_Counter.

129 {
130  std::cout << "QwVQWK_Channel Info " << std::endl;
131  fHalo_Counter.PrintInfo();
132 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::PrintValue ( ) const
virtual

Print single line of value and error of this data element.

Reimplemented from VQwDataElement.

Definition at line 123 of file QwHaloMonitor.cc.

References fHalo_Counter.

124 {
125  fHalo_Counter.PrintValue();
126 }
QwSIS3801D24_Channel fHalo_Counter
Int_t QwHaloMonitor::ProcessEvBuffer ( UInt_t *  buffer,
UInt_t  num_words_left,
UInt_t  subelement = 0 
)
virtual

Process the CODA event buffer for this element.

Implements VQwDataElement.

Definition at line 37 of file QwHaloMonitor.cc.

References fHalo_Counter.

38 {
39  return fHalo_Counter.ProcessEvBuffer(buffer,num_words_left);
40 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::ProcessEvent ( )

Definition at line 31 of file QwHaloMonitor.cc.

References fHalo_Counter.

32 {
33  // no processing required for the halos as they are just counters(?).
34  fHalo_Counter.ProcessEvent();
35 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::Ratio ( QwHaloMonitor numer,
QwHaloMonitor denom 
)

Definition at line 97 of file QwHaloMonitor.cc.

References fHalo_Counter, and VQwDataElement::GetElementName().

98 {
99  if (GetElementName()!=""){
100  this->fHalo_Counter.Ratio(numer.fHalo_Counter,denom.fHalo_Counter);
101  }
102  return;
103 }
virtual const TString & GetElementName() const
Get the name of this element.
QwSIS3801D24_Channel fHalo_Counter

+ Here is the call graph for this function:

void QwHaloMonitor::Scale ( Double_t  Offset)

Definition at line 105 of file QwHaloMonitor.cc.

References fHalo_Counter.

106 {
107  fHalo_Counter.Scale(factor);
108 }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::SetCalibrationFactor ( Double_t  factor)
inline

Definition at line 80 of file QwHaloMonitor.h.

References fHalo_Counter.

80 { fHalo_Counter.SetCalibrationFactor(factor); };
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::SetEventCutMode ( Int_t  bcuts)
inline

Definition at line 99 of file QwHaloMonitor.h.

References fHalo_Counter.

99  {
100  fHalo_Counter.SetEventCutMode(bcuts);
101  }
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::SetExternalClockName ( const std::string  name)
inlinevirtual

Reimplemented from VQwDataElement.

Definition at line 59 of file QwHaloMonitor.h.

References fHalo_Counter.

59 { fHalo_Counter.SetExternalClockName(name);};
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::SetExternalClockPtr ( const VQwHardwareChannel clock)
inlinevirtual

Reimplemented from VQwDataElement.

Definition at line 58 of file QwHaloMonitor.h.

References fHalo_Counter.

58 {fHalo_Counter.SetExternalClockPtr(clock);};
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::SetPedestal ( Double_t  ped)
inline

Definition at line 79 of file QwHaloMonitor.h.

References fHalo_Counter.

79 { fHalo_Counter.SetPedestal(ped); };
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::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 from VQwDataElement.

Definition at line 96 of file QwHaloMonitor.h.

References fHalo_Counter.

96  {
97  fHalo_Counter.SetSingleEventCuts(errorflag,min,max,stability);
98  };
static const double min
Definition: QwUnits.h:76
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::Sum ( QwHaloMonitor value1,
QwHaloMonitor value2 
)

Definition at line 87 of file QwHaloMonitor.cc.

87  {
88  *this = value1;
89  *this += value2;
90 }
UInt_t QwHaloMonitor::UpdateErrorFlag ( )
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 89 of file QwHaloMonitor.h.

References GetEventcutErrorFlag().

89 {return GetEventcutErrorFlag();};
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
Definition: QwHaloMonitor.h:87

+ Here is the call graph for this function:

void QwHaloMonitor::UpdateErrorFlag ( const QwHaloMonitor ev_error)
inline

Definition at line 90 of file QwHaloMonitor.h.

References fHalo_Counter.

90  {
91  fHalo_Counter.UpdateErrorFlag(ev_error->fHalo_Counter);
92  };
QwSIS3801D24_Channel fHalo_Counter
void QwHaloMonitor::UpdateHWErrorCount ( )

Field Documentation

Bool_t QwHaloMonitor::bEVENTCUTMODE
private

Definition at line 138 of file QwHaloMonitor.h.

Int_t QwHaloMonitor::fDeviceErrorCode
private

Definition at line 137 of file QwHaloMonitor.h.

const Bool_t QwHaloMonitor::kDEBUG
staticprivate

Definition at line 133 of file QwHaloMonitor.h.


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