Belle II Software development
SVDLocalConfigParameters.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
15namespace Belle2 {
26 class SVDLocalConfigParameters : public TObject {
27 public:
28
32 SVDLocalConfigParameters(const TString& uniqueID = "")
33 : m_uniqueID(uniqueID),
34 m_injectedCharge(22500)
35 {};
40 float getInjectedCharge(void) const { return m_injectedCharge; };
41
48 {
49 TString aux(m_calibrationTimeUnits);
50 aux = aux.Remove(aux.First(" "), aux.Sizeof());
51
52 std::string auxString(aux);
53 int calibrationTimeCoeff = std::atoi(auxString.c_str());
54 return calibrationTimeCoeff;
55 }
56
61 std::string getCalibDate(void) const { return m_calibDate; };
62
69 void setInjectedCharge(float injectedCharge)
70 {
71 m_injectedCharge = injectedCharge;
72 }
73
74
81 void setCalibrationTimeInRFCUnits(const std::string& calibrationTimeUnits)
82 {
83 m_calibrationTimeUnits = calibrationTimeUnits;
84 }
85
92 void setCalibDate(const std::string& date)
93 {
94 m_calibDate = date;
95 }
96
97
101 TString get_uniqueID() const {return m_uniqueID;}
102
103 private:
104
105 TString m_uniqueID;
111
112
116
119 std::string m_calibDate;
120
123 };
124
126}
This class defines the payload which stores to the central DB the SVD local configuring parameters,...
void setCalibDate(const std::string &date)
Set the date (yyyy-mm-dd) of the current NOISE calibration Input:
std::string m_calibDate
time stamp with date and hour(yyyymmdd_hhmm) of when the local runs for the current calibration have ...
TString m_uniqueID
The unique identifier is a private member of SVDLocalConfigParameter, whose value is assigned in the ...
std::string m_calibrationTimeUnits
Time units of the measured pulse shape peak time expressed in accelerator RFC.
void setCalibrationTimeInRFCUnits(const std::string &calibrationTimeUnits)
Set the time units Input:
ClassDef(SVDLocalConfigParameters, 1)
needed by root
SVDLocalConfigParameters(const TString &uniqueID="")
Default constructor.
float getCalibrationTimeInRFCUnits(void) const
Returns the time units in which the peak time of the pulse shape is provided.
float getInjectedCharge(void) const
Returns the injected charge during the calibration run.
TString get_uniqueID() const
Get the unique ID of the calibration.
float m_injectedCharge
charge in electrons injected in each strip to calibrate the pulse gain during the calibration run
void setInjectedCharge(float injectedCharge)
Set the injected charge Input:
std::string getCalibDate(void) const
Returns the time stamp date_hour (yyyymmdd_hhmm) of the current calibration.
Abstract base class for different kinds of events.