Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larevt
larevt
CalibrationDBI
IOVData
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
10
class
CalibrationExtraInfo
{
11
12
public
:
13
14
CalibrationExtraInfo
(
std::string
const
&
name
) :
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
44
std::string
fName
;
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
name
static QCString name
Definition:
declinfo.cpp:673
lariov::CalibrationExtraInfo::AddOrReplaceVecIntData
void AddOrReplaceVecIntData(std::string const &label, std::vector< int > const &data)
Definition:
CalibrationExtraInfo.cxx:14
lariov::CalibrationExtraInfo::fVecFloatData
std::map< std::string, std::vector< float > > fVecFloatData
Definition:
CalibrationExtraInfo.h:52
string
std::string string
Definition:
nybbler.cc:12
lariov::CalibrationExtraInfo::GetFloatData
float GetFloatData(std::string const &label) const
Definition:
CalibrationExtraInfo.cxx:81
lariov::CalibrationExtraInfo::ClearAllData
void ClearAllData()
Definition:
CalibrationExtraInfo.cxx:45
lariov::CalibrationExtraInfo::ClearDataByLabel
void ClearDataByLabel(std::string const &label)
Definition:
CalibrationExtraInfo.cxx:30
test_nxdot.label
label
Definition:
test_nxdot.py:6
lariov::CalibrationExtraInfo::~CalibrationExtraInfo
virtual ~CalibrationExtraInfo()=default
lariov::CalibrationExtraInfo::GetVecFloatData
std::vector< float > const & GetVecFloatData(std::string const &label) const
Definition:
CalibrationExtraInfo.cxx:90
lariov::CalibrationExtraInfo::fStringData
std::map< std::string, std::string > fStringData
Definition:
CalibrationExtraInfo.h:54
lariov::CalibrationExtraInfo::CalibrationExtraInfo
CalibrationExtraInfo(std::string const &name)
Definition:
CalibrationExtraInfo.h:14
lariov::CalibrationExtraInfo::fIntData
std::map< std::string, int > fIntData
Definition:
CalibrationExtraInfo.h:48
lariov::CalibrationExtraInfo::GetStringData
std::string const & GetStringData(std::string const &label) const
Definition:
CalibrationExtraInfo.cxx:99
lariov::CalibrationExtraInfo::AddOrReplaceBoolData
void AddOrReplaceBoolData(std::string const &label, bool const data)
Definition:
CalibrationExtraInfo.cxx:6
lariov::CalibrationExtraInfo::AddOrReplaceVecFloatData
void AddOrReplaceVecFloatData(std::string const &label, std::vector< float > const &data)
Definition:
CalibrationExtraInfo.cxx:22
lariov::CalibrationExtraInfo::AddOrReplaceIntData
void AddOrReplaceIntData(std::string const &label, int const data)
Definition:
CalibrationExtraInfo.cxx:10
lariov::CalibrationExtraInfo::AddOrReplaceStringData
void AddOrReplaceStringData(std::string const &label, std::string const &data)
Definition:
CalibrationExtraInfo.cxx:26
lariov
Filters for channels, events, etc.
Definition:
ChannelStatusServiceTool.h:19
make_THn_beam_input.data
data
Definition:
make_THn_beam_input.py:80
lariov::CalibrationExtraInfo
Definition:
CalibrationExtraInfo.h:10
lariov::CalibrationExtraInfo::fBoolData
std::map< std::string, bool > fBoolData
Definition:
CalibrationExtraInfo.h:46
lariov::CalibrationExtraInfo::GetBoolData
bool GetBoolData(std::string const &label) const
Definition:
CalibrationExtraInfo.cxx:54
lariov::CalibrationExtraInfo::AddOrReplaceFloatData
void AddOrReplaceFloatData(std::string const &label, float const data)
Definition:
CalibrationExtraInfo.cxx:18
lariov::CalibrationExtraInfo::GetName
std::string const & GetName() const
Definition:
CalibrationExtraInfo.h:20
lariov::CalibrationExtraInfo::fVecIntData
std::map< std::string, std::vector< int > > fVecIntData
Definition:
CalibrationExtraInfo.h:49
lariov::CalibrationExtraInfo::GetIntData
int GetIntData(std::string const &label) const
Definition:
CalibrationExtraInfo.cxx:63
lariov::CalibrationExtraInfo::GetVecIntData
std::vector< int > const & GetVecIntData(std::string const &label) const
Definition:
CalibrationExtraInfo.cxx:72
lariov::CalibrationExtraInfo::fFloatData
std::map< std::string, float > fFloatData
Definition:
CalibrationExtraInfo.h:51
lariov::CalibrationExtraInfo::fName
std::string fName
Definition:
CalibrationExtraInfo.h:44
Generated by
1.8.11