Belle II Software  release-05-01-25
SVDGlobalConfigParameters.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Laura Zani, Eugenio Paoloni *
7  * *
8  * This software is provided "as is" without any warranty. *
9  * WARNING, ALBEIT INTENSE COHERENT LIGHT IS NOT USED AT ALL HERE: *
10  * PLEASE, PLEASE, PLEASE WEAR ALWAYS PROTECTIVE GLASSES *
11  * WHEN LOOKING AT THIS FILE *
12  **************************************************************************/
13 
14 #pragma once
15 #include "TObject.h"
16 
17 namespace Belle2 {
29  class SVDGlobalConfigParameters: public TObject {
30  public:
34  SVDGlobalConfigParameters(const TString& uniqueID = "")
35  : m_uniqueID(uniqueID),
37  m_latency(0),
38  m_maskFilter(7)
39  {};
40 
41 
50  float getZeroSuppression(void) const { return m_zeroSuppression; };
51 
58  int getLatency(void) const { return m_latency; };
59 
65  int getMaskFilter(void) const { return m_maskFilter; };
66 
72  float getAPVClockInRFCUnits(void) const
73  {
74 
75  TString aux(m_APVClockInRFCUnits);
76  aux = aux.Remove(aux.First(" "), aux.Sizeof());
77  // std::cout << "aux = " << aux <<endl;
78  std::string auxString(aux);
79  int APVClockUnitsCoeff = std::atoi(auxString.c_str());
80  // std::cout<<"time units coefficient = " << timeUnitsCoeff<<endl;
81 
82  return APVClockUnitsCoeff;
83  }
84 
90  float getHV(void) const { return m_hv; };
91 
97  int getRelativeTimeShift(void) const { return m_relativeTimeShift; };
98 
105  int getNrFrames(void) const { return m_nrFrames; };
106 
107 
114  void setZeroSuppression(float zeroSuppression)
115  {
116  m_zeroSuppression = zeroSuppression;
117  }
118 
125  void setLatency(float latency)
126  {
127  m_latency = latency;
128  }
129 
130 
137  void setMaskFilter(int maskFilter)
138  {
139  m_maskFilter = maskFilter;
140  }
141 
148  void setAPVClockInRFCUnits(const std::string& APVClockUnits)
149  {
150  m_APVClockInRFCUnits = APVClockUnits;
151  }
152 
159  void setHV(float hv)
160  {
161  m_hv = hv;
162  }
163 
170  void setRelativeTimeShift(float relativeTimeShift)
171  {
172  m_relativeTimeShift = relativeTimeShift;
173  }
174 
181  void setNrFrames(int nrFrames)
182  {
183  m_nrFrames = nrFrames;
184  };
185 
186 
190  TString get_uniqueID() const {return m_uniqueID;}
191 
192  private:
193 
194  TString m_uniqueID;
198  float m_zeroSuppression;
199 
202  int m_latency;
203 
206  int m_maskFilter;
207 
210  float m_hv = 0;
211 
214  float m_relativeTimeShift = 0;
215 
221  float m_nrFrames = 0;
222 
225  std::string m_APVClockInRFCUnits;
226 
228  };
229 
231 }
Belle2::SVDGlobalConfigParameters::m_uniqueID
TString m_uniqueID
Add a string as unique identifier for a given local run configuration)
Definition: SVDGlobalConfigParameters.h:205
Belle2::SVDGlobalConfigParameters::getZeroSuppression
float getZeroSuppression(void) const
Returns the zero suppression threshold for global data taking in ZS acquisition mode.
Definition: SVDGlobalConfigParameters.h:61
Belle2::SVDGlobalConfigParameters::m_nrFrames
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...
Definition: SVDGlobalConfigParameters.h:232
Belle2::SVDGlobalConfigParameters::m_hv
float m_hv
HV = Vbias/2 in V.
Definition: SVDGlobalConfigParameters.h:221
Belle2::SVDGlobalConfigParameters::setLatency
void setLatency(float latency)
Set the latency Input:
Definition: SVDGlobalConfigParameters.h:136
Belle2::SVDGlobalConfigParameters::ClassDef
ClassDef(SVDGlobalConfigParameters, 3)
needed by root
Belle2::SVDGlobalConfigParameters::setZeroSuppression
void setZeroSuppression(float zeroSuppression)
Set the zero suppression Input:
Definition: SVDGlobalConfigParameters.h:125
Belle2::SVDGlobalConfigParameters::getAPVClockInRFCUnits
float getAPVClockInRFCUnits(void) const
Returns the APV clock.
Definition: SVDGlobalConfigParameters.h:83
Belle2::SVDGlobalConfigParameters::m_maskFilter
int m_maskFilter
masking bitmap
Definition: SVDGlobalConfigParameters.h:217
Belle2::SVDGlobalConfigParameters::getNrFrames
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...
Definition: SVDGlobalConfigParameters.h:116
Belle2::SVDGlobalConfigParameters::m_relativeTimeShift
float m_relativeTimeShift
relative time shift between the 3-sample and 6-sample acquired events in units of APV clock/4 [0,...
Definition: SVDGlobalConfigParameters.h:225
Belle2::SVDGlobalConfigParameters::setAPVClockInRFCUnits
void setAPVClockInRFCUnits(const std::string &APVClockUnits)
Set the APV Clock units Input:
Definition: SVDGlobalConfigParameters.h:159
Belle2::SVDGlobalConfigParameters::SVDGlobalConfigParameters
SVDGlobalConfigParameters(const TString &uniqueID="")
Default constructor.
Definition: SVDGlobalConfigParameters.h:45
Belle2::SVDGlobalConfigParameters
This class defines the payload which stores to the central DB the SVD global configuring parameters,...
Definition: SVDGlobalConfigParameters.h:40
Belle2::SVDGlobalConfigParameters::setHV
void setHV(float hv)
Set the HV (in V) Input:
Definition: SVDGlobalConfigParameters.h:170
Belle2::SVDGlobalConfigParameters::setRelativeTimeShift
void setRelativeTimeShift(float relativeTimeShift)
Set the Relative time shift between 3- and 6- sample acquired events in units of APV clock / 4 Input:
Definition: SVDGlobalConfigParameters.h:181
Belle2::SVDGlobalConfigParameters::getMaskFilter
int getMaskFilter(void) const
Returns the masking bitmap used to mask the strips at FADC level (only for CM-section)
Definition: SVDGlobalConfigParameters.h:76
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDGlobalConfigParameters::setMaskFilter
void setMaskFilter(int maskFilter)
Set the masking bitmap Input:
Definition: SVDGlobalConfigParameters.h:148
Belle2::SVDGlobalConfigParameters::m_zeroSuppression
float m_zeroSuppression
zero suppression value which defines the S/N threshold of data mode acquisition during global run in ...
Definition: SVDGlobalConfigParameters.h:209
Belle2::SVDGlobalConfigParameters::getRelativeTimeShift
int getRelativeTimeShift(void) const
Returns the relative time shift between the 3-sample and 6-sample acquired events in units of APV clo...
Definition: SVDGlobalConfigParameters.h:108
Belle2::SVDGlobalConfigParameters::setNrFrames
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...
Definition: SVDGlobalConfigParameters.h:192
Belle2::SVDGlobalConfigParameters::get_uniqueID
TString get_uniqueID() const
Get the unique ID of the calibration.
Definition: SVDGlobalConfigParameters.h:201
Belle2::SVDGlobalConfigParameters::getHV
float getHV(void) const
Returns the HV = Vbias/2.
Definition: SVDGlobalConfigParameters.h:101
Belle2::SVDGlobalConfigParameters::getLatency
int getLatency(void) const
Returns the latency set for global data taking.
Definition: SVDGlobalConfigParameters.h:69
Belle2::SVDGlobalConfigParameters::m_latency
int m_latency
integer number of buffer cells to go back in the buffer ring to correctly sampling the signal pulse w...
Definition: SVDGlobalConfigParameters.h:213
Belle2::SVDGlobalConfigParameters::m_APVClockInRFCUnits
std::string m_APVClockInRFCUnits
APVclock.
Definition: SVDGlobalConfigParameters.h:236