Belle II Software  release-05-02-19
SVDLocalConfigParameters.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 
16 #include <TObject.h>
17 #include <TString.h>
18 
19 namespace Belle2 {
30  class SVDLocalConfigParameters : public TObject {
31  public:
32 
36  SVDLocalConfigParameters(const TString& uniqueID = "")
37  : m_uniqueID(uniqueID),
38  m_injectedCharge(22500)
39  {};
45  float getInjectedCharge(void) const { return m_injectedCharge; };
46 
53  float getCalibrationTimeInRFCUnits(void) const
54  {
55  TString aux(m_calibrationTimeUnits);
56  aux = aux.Remove(aux.First(" "), aux.Sizeof());
57 
58  std::string auxString(aux);
59  int calibrationTimeCoeff = std::atoi(auxString.c_str());
60  return calibrationTimeCoeff;
61  }
62 
67  std::string getCalibDate(void) const { return m_calibDate; };
68 
75  void setInjectedCharge(float injectedCharge)
76  {
77  m_injectedCharge = injectedCharge;
78  }
79 
80 
87  void setCalibrationTimeInRFCUnits(const std::string& calibrationTimeUnits)
88  {
89  m_calibrationTimeUnits = calibrationTimeUnits;
90  }
91 
98  void setCalibDate(const std::string& date)
99  {
100  m_calibDate = date;
101  }
102 
103 
107  TString get_uniqueID() const {return m_uniqueID;}
108 
109  private:
110 
111  TString m_uniqueID;
116  float m_injectedCharge;
117 
118 
121  std::string m_calibrationTimeUnits;
122 
125  std::string m_calibDate;
126 
129  };
130 
132 }
Belle2::SVDLocalConfigParameters::m_calibrationTimeUnits
std::string m_calibrationTimeUnits
Time units of the measured pulse shape peak time expressed in accelerator RFC.
Definition: SVDLocalConfigParameters.h:132
Belle2::SVDLocalConfigParameters::getCalibDate
std::string getCalibDate(void) const
Returns the time stamp date_hour (yyyymmdd_hhmm) of the current calibration *.
Definition: SVDLocalConfigParameters.h:78
Belle2::SVDLocalConfigParameters::setCalibrationTimeInRFCUnits
void setCalibrationTimeInRFCUnits(const std::string &calibrationTimeUnits)
Set the time units Input:
Definition: SVDLocalConfigParameters.h:98
Belle2::SVDLocalConfigParameters
This class defines the payload which stores to the central DB the SVD local configuring parameters,...
Definition: SVDLocalConfigParameters.h:41
Belle2::SVDLocalConfigParameters::setCalibDate
void setCalibDate(const std::string &date)
Set the date_hour (yyyymmdd_hhmm) of the current calibration Input:
Definition: SVDLocalConfigParameters.h:109
Belle2::SVDLocalConfigParameters::getInjectedCharge
float getInjectedCharge(void) const
Returns the injected charge during the calibration run.
Definition: SVDLocalConfigParameters.h:56
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDLocalConfigParameters::SVDLocalConfigParameters
SVDLocalConfigParameters(const TString &uniqueID="")
Default constructor.
Definition: SVDLocalConfigParameters.h:47
Belle2::SVDLocalConfigParameters::m_uniqueID
TString m_uniqueID
The unique identifier is a private member of SVDLocalConfigParameter, whose value is assigned in the ...
Definition: SVDLocalConfigParameters.h:122
Belle2::SVDLocalConfigParameters::m_injectedCharge
float m_injectedCharge
charge in electrons injected in each strip to calibrate the pulse gain during the calibration run
Definition: SVDLocalConfigParameters.h:127
Belle2::SVDLocalConfigParameters::get_uniqueID
TString get_uniqueID() const
Get the unique ID of the calibration.
Definition: SVDLocalConfigParameters.h:118
Belle2::SVDLocalConfigParameters::setInjectedCharge
void setInjectedCharge(float injectedCharge)
Set the injected charge Input:
Definition: SVDLocalConfigParameters.h:86
Belle2::SVDLocalConfigParameters::getCalibrationTimeInRFCUnits
float getCalibrationTimeInRFCUnits(void) const
Returns the time units in which the peak time of the pulse shape is provided.
Definition: SVDLocalConfigParameters.h:64
Belle2::SVDLocalConfigParameters::ClassDef
ClassDef(SVDLocalConfigParameters, 1)
needed by root
Belle2::SVDLocalConfigParameters::m_calibDate
std::string m_calibDate
time stamp with date and hour(yyyymmdd_hhmm) of when the local runs for the current calibration have ...
Definition: SVDLocalConfigParameters.h:136