Belle II Software  release-08-01-10
SVDGlobalConfigParameters.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 #include <framework/database/DBObjPtr.h>
11 #include "TObject.h"
12 #include "TString.h"
13 
14 namespace Belle2 {
26  class SVDGlobalConfigParameters: public TObject {
27  public:
31  SVDGlobalConfigParameters(const TString& uniqueID = "")
32  : m_uniqueID(uniqueID),
34  m_latency(0),
35  m_maskFilter(7)
36  {};
37 
38 
47  float getZeroSuppression(void) const { return m_zeroSuppression; };
48 
55  int getLatency(void) const { return m_latency; };
56 
62  int getMaskFilter(void) const { return m_maskFilter; };
63 
69  float getAPVClockInRFCUnits(void) const
70  {
71 
72  TString aux(m_APVClockInRFCUnits);
73  aux = aux.Remove(aux.First(" "), aux.Sizeof());
74  // std::cout << "aux = " << aux <<endl;
75  std::string auxString(aux);
76  int APVClockUnitsCoeff = std::atoi(auxString.c_str());
77  // std::cout<<"time units coefficient = " << timeUnitsCoeff<<endl;
78 
79  return APVClockUnitsCoeff;
80  }
81 
87  float getHV(void) const { return m_hv; };
88 
94  int getRelativeTimeShift(void) const { return m_relativeTimeShift; };
95 
102  int getNrFrames(void) const { return m_nrFrames; };
103 
104 
111  void setZeroSuppression(float zeroSuppression)
112  {
113  m_zeroSuppression = zeroSuppression;
114  }
115 
122  void setLatency(float latency)
123  {
124  m_latency = latency;
125  }
126 
127 
134  void setMaskFilter(int maskFilter)
135  {
136  m_maskFilter = maskFilter;
137  }
138 
145  void setAPVClockInRFCUnits(const std::string& APVClockUnits)
146  {
147  m_APVClockInRFCUnits = APVClockUnits;
148  }
149 
156  void setHV(float hv)
157  {
158  m_hv = hv;
159  }
166  void setRelativeTimeShift(float relativeTimeShift)
167  {
168  m_relativeTimeShift = relativeTimeShift;
169  }
170 
177  void setNrFrames(int nrFrames)
178  {
179  m_nrFrames = nrFrames;
180  };
181 
182 
186  TString get_uniqueID() const {return m_uniqueID;}
187 
188  private:
189 
190  TString m_uniqueID;
195 
199 
203 
206  float m_hv = 0;
207 
211 
217  float m_nrFrames = 0;
218 
221  std::string m_APVClockInRFCUnits;
222 
225  };
226 
228 }
This class defines the payload which stores to the central DB the SVD global configuring parameters,...
TString m_uniqueID
Add a string as unique identifier for a given local run configuration)
float getZeroSuppression(void) const
Returns the zero suppression threshold for global data taking in ZS acquisition mode.
void setAPVClockInRFCUnits(const std::string &APVClockUnits)
Set the APV Clock units Input:
float m_relativeTimeShift
relative time shift between the 3-sample and 6-sample acquired events in units of APV clock/4 [0,...
int getMaskFilter(void) const
Returns the masking bitmap used to mask the strips at FADC level (only for CM-section)
void setMaskFilter(int maskFilter)
Set the masking bitmap Input:
void setZeroSuppression(float zeroSuppression)
Set the zero suppression Input:
float m_zeroSuppression
zero suppression value which defines the S/N threshold of data mode acquisition during global run in ...
int getLatency(void) const
Returns the latency set for global data taking.
float getAPVClockInRFCUnits(void) const
Returns the APV clock.
int getNrFrames(void) const
Returns the number of frames 3 -> 3-sample only DAQ mode 6 -> 6-sample only DAQ mode 9 -> 3-mixed-6 s...
void setHV(float hv)
Set the HV (in V) Input:
TString get_uniqueID() const
Get the unique ID of the calibration.
void setNrFrames(int nrFrames)
Set the number of frames 3 -> 3-sample only DAQ mode 6 -> 6-sample only DAQ mode 9 -> 3-mixed-6 sampl...
float getHV(void) const
Returns the HV = Vbias/2.
float m_nrFrames
number of frames 3 -> 3-sample only DAQ mode 6 -> 6-sample only DAQ mode 9 -> 3-mixed-6 sample DAQ mo...
ClassDef(SVDGlobalConfigParameters, 3)
needed by root
int m_latency
integer number of buffer cells to go back in the buffer ring to correctly sampling the signal pulse w...
void setRelativeTimeShift(float relativeTimeShift)
Set the Relative time shift between 3- and 6- sample acquired events in units of APV clock / 4 Input:
int getRelativeTimeShift(void) const
Returns the relative time shift between the 3-sample and 6-sample acquired events in units of APV clo...
SVDGlobalConfigParameters(const TString &uniqueID="")
Default constructor.
void setLatency(float latency)
Set the latency Input:
Abstract base class for different kinds of events.