Belle II Software development
TRGECLETMParameters.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#ifndef TRGECLETMPARAMETERS_H
10#define TRGECLETMPARAMETERS_H
11
12#include <TObject.h>
13#include <stdexcept>
14#include <map>
15
16namespace Belle2 {
21
23 class TRGECLETMParameters : public TObject {
24 public:
25
28
30 void setnpar(int npar)
31 {
32 m_npar = npar;
33 }
34
35 void setparMap(std::string parname, double parvalue)
36 {
37 m_parmap.insert(std::make_pair(parname, parvalue));
38 }
39
40 int getnpar(void) const
41 {
42 return m_npar;
43 }
44
45 const std::map<std::string, double>& getparMap(void) const
46 {
47 return m_parmap;
48 }
49
50 private :
51
53 std::map<std::string, double> m_parmap;
55 int m_npar;
56
58 ClassDef(TRGECLETMParameters, 1); /*< the class title */
59 };
60
61}
62#endif
ClassDef(TRGECLETMParameters, 1)
the class title
int m_npar
the number of valid parameters
void setparMap(std::string parname, double parvalue)
set parameter map(name and value)
int getnpar(void) const
get the number of parameters
void setnpar(int npar)
set the number of parameters
std::map< std::string, double > m_parmap
parameter map(name and value)
const std::map< std::string, double > & getparMap(void) const
get parameter map(name and value)
Abstract base class for different kinds of events.