Belle II Software  release-08-01-10
ARICHAerogelRayleighScatteringFit.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 
11 #include <TObject.h>
12 #include <string>
13 #include <vector>
14 
15 #include <TClass.h>
16 
17 namespace Belle2 {
26  class ARICHAerogelRayleighScatteringFit: public TObject {
27  public:
28 
33 
37  ARICHAerogelRayleighScatteringFit(float version, const std::string& serial, const std::string& comment,
38  const std::vector<float>& par) :
39  m_version(version), m_serial(serial), m_comment(comment), m_par(par)
40  {};
41 
46 
50  float getAerogelMeasurementVersion() const { return m_version; }
51 
55  void setAerogelMeasurementVersion(float version) { m_version = version; }
56 
60  std::string getAerogelSerialNumber() const { return m_serial; };
61 
65  void setAerogelSerialNumber(const std::string& serial) { m_serial = serial; }
66 
70  void setComment(const std::string& comment) { m_comment = comment; }
71 
72 
76  std::string getComment() const { return m_comment; }
77 
78 
83  const std::vector<float>& getFitParameters() const { return m_par; }
84 
88  void printContent(bool printHeader = false);
89 
90  private:
91 
92  float m_version;
93  std::string m_serial;
94  std::string m_comment;
95  std::vector<float> m_par;
98  };
100 } // end namespace Belle2
The Class for ARICH aerogel Rayleigh scattering fit parameters.
std::string m_comment
Optional comment (should be a single word)
const std::vector< float > & getFitParameters() const
Return aerogel Rayleigh scattering fit parameters.
std::string getAerogelSerialNumber() const
Return aerogel serial number.
ARICHAerogelRayleighScatteringFit(float version, const std::string &serial, const std::string &comment, const std::vector< float > &par)
Constructor.
ClassDef(ARICHAerogelRayleighScatteringFit, 1)
ClassDef.
void setAerogelMeasurementVersion(float version)
Set aerogel measurement version.
float getAerogelMeasurementVersion() const
Return aerogel measurement version.
void setAerogelSerialNumber(const std::string &serial)
Set aerogel serial number.
void printContent(bool printHeader=false)
Print the content of the class.
void setComment(const std::string &comment)
Set comment (should be a single word)
Abstract base class for different kinds of events.