Belle II Software development
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
14namespace Belle2 {
26 class SVDGlobalConfigParameters: public TObject {
27 public:
31 SVDGlobalConfigParameters(const TString& uniqueID = "")
32 : m_uniqueID(uniqueID),
34 m_latency(0),
36 {};
37
38
46 float getZeroSuppression(void) const { return m_zeroSuppression; };
47
52 int getLatency(void) const { return m_latency; };
53
58 int getMaskFilter(void) const { return m_maskFilter; };
59
64 float getAPVClockInRFCUnits(void) const
65 {
66
67 TString aux(m_APVClockInRFCUnits);
68 aux = aux.Remove(aux.First(" "), aux.Sizeof());
69 // std::cout << "aux = " << aux <<endl;
70 std::string auxString(aux);
71 int APVClockUnitsCoeff = std::atoi(auxString.c_str());
72 // std::cout<<"time units coefficient = " << timeUnitsCoeff<<endl;
73
74 return APVClockUnitsCoeff;
75 }
76
81 float getHV(void) const { return m_hv; };
82
87 int getRelativeTimeShift(void) const { return m_relativeTimeShift; };
88
95 int getNrFrames(void) const { return m_nrFrames; };
96
97
104 void setZeroSuppression(float zeroSuppression)
105 {
106 m_zeroSuppression = zeroSuppression;
107 }
108
115 void setLatency(float latency)
116 {
117 m_latency = latency;
118 }
119
120
127 void setMaskFilter(int maskFilter)
128 {
129 m_maskFilter = maskFilter;
130 }
131
138 void setAPVClockInRFCUnits(const std::string& APVClockUnits)
139 {
140 m_APVClockInRFCUnits = APVClockUnits;
141 }
142
149 void setHV(float hv)
150 {
151 m_hv = hv;
152 }
159 void setRelativeTimeShift(float relativeTimeShift)
160 {
161 m_relativeTimeShift = relativeTimeShift;
162 }
163
170 void setNrFrames(int nrFrames)
171 {
172 m_nrFrames = nrFrames;
173 };
174
175
179 TString get_uniqueID() const {return m_uniqueID;}
180
181 private:
182
183 TString m_uniqueID;
188
192
196
199 float m_hv = 0;
200
204
210 float m_nrFrames = 0;
211
215
218 };
219
221}
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.