CalibrationExtraInfo.h
Go to the documentation of this file.
1 #ifndef CALIBRATIONEXTRAINFO_H
2 #define CALIBRATIONEXTRAINFO_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
8 namespace lariov {
9 
11 
12  public:
13 
15  fName(name) {}
16 
17  virtual ~CalibrationExtraInfo() = default;
18 
19  //Get the name of the calibration
20  std::string const& GetName() const
21  { return fName; }
22 
23  void AddOrReplaceBoolData(std::string const& label, bool const data);
24  void AddOrReplaceIntData(std::string const& label, int const data);
25  void AddOrReplaceVecIntData(std::string const& label, std::vector<int> const& data);
26  void AddOrReplaceFloatData(std::string const& label, float const data);
27  void AddOrReplaceVecFloatData(std::string const& label, std::vector<float> const& data);
28  void AddOrReplaceStringData(std::string const& label, std::string const& data);
29 
30  bool GetBoolData(std::string const& label) const;
31  int GetIntData(std::string const& label) const;
32  std::vector<int> const& GetVecIntData(std::string const& label) const;
33  float GetFloatData(std::string const& label) const;
34  std::vector<float> const& GetVecFloatData(std::string const& label) const;
35  std::string const& GetStringData(std::string const& label) const;
36 
37  void ClearDataByLabel(std::string const& label);
38  void ClearAllData();
39 
40 
41 
42  private:
43 
45 
46  std::map<std::string, bool> fBoolData;
47 
48  std::map<std::string, int> fIntData;
49  std::map<std::string, std::vector<int> > fVecIntData;
50 
51  std::map<std::string, float> fFloatData;
52  std::map<std::string, std::vector<float> > fVecFloatData;
53 
54  std::map<std::string, std::string> fStringData;
55  };
56 }
57 
58 #endif
static QCString name
Definition: declinfo.cpp:673
void AddOrReplaceVecIntData(std::string const &label, std::vector< int > const &data)
std::map< std::string, std::vector< float > > fVecFloatData
std::string string
Definition: nybbler.cc:12
float GetFloatData(std::string const &label) const
void ClearDataByLabel(std::string const &label)
virtual ~CalibrationExtraInfo()=default
std::vector< float > const & GetVecFloatData(std::string const &label) const
std::map< std::string, std::string > fStringData
CalibrationExtraInfo(std::string const &name)
std::map< std::string, int > fIntData
std::string const & GetStringData(std::string const &label) const
void AddOrReplaceBoolData(std::string const &label, bool const data)
void AddOrReplaceVecFloatData(std::string const &label, std::vector< float > const &data)
void AddOrReplaceIntData(std::string const &label, int const data)
void AddOrReplaceStringData(std::string const &label, std::string const &data)
Filters for channels, events, etc.
std::map< std::string, bool > fBoolData
bool GetBoolData(std::string const &label) const
void AddOrReplaceFloatData(std::string const &label, float const data)
std::string const & GetName() const
std::map< std::string, std::vector< int > > fVecIntData
int GetIntData(std::string const &label) const
std::vector< int > const & GetVecIntData(std::string const &label) const
std::map< std::string, float > fFloatData