ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
PanTau
PanTauAlgs
PanTauAlgs
Tool_InformationStore.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PANTAUALGS_TOOL_INFORMATIONSTORE_H
6
#define PANTAUALGS_TOOL_INFORMATIONSTORE_H
7
9
#include <map>
10
#include <string>
11
13
#include "
AsgTools/AsgTool.h
"
14
16
#include "
PanTauAlgs/ITool_InformationStore.h
"
17
18
19
namespace
PanTau
{
20
25
class
Tool_InformationStore
:
public
asg::AsgTool
,
virtual
public
PanTau::ITool_InformationStore
{
26
27
ASG_TOOL_CLASS1
(
Tool_InformationStore
,
PanTau::ITool_InformationStore
)
28
29
public
:
30
31
#ifdef XAOD_ANALYSIS
32
inline
void
setMapString(
MapString
&v ){
m_Infos_String
= v; }
33
inline
void
setMapVecString(
MapVecString
&v ){
m_Infos_VecString
= v; }
34
inline
void
setMapInt(
MapInt
&v ){
m_Infos_Int
= v; }
35
inline
void
setMapDouble(
MapDouble
&v ){
m_Infos_Double
= v; }
36
inline
void
setMapVecDouble(
MapVecDouble
&v ){
m_Infos_VecDouble
= v; }
37
#endif
38
39
Tool_InformationStore
(
const
std::string &name);
40
virtual
~Tool_InformationStore
();
41
42
virtual
void
ABRDefaultInit
();
43
virtual
StatusCode
initialize
();
44
45
virtual
StatusCode
getInfo_Int
(
const
std::string& varName,
int
& value)
const
;
46
virtual
StatusCode
getInfo_Double
(
const
std::string& varName,
double
& value)
const
;
47
virtual
StatusCode
getInfo_VecDouble
(
const
std::string& varName, std::vector<double>& value)
const
;
48
virtual
StatusCode
getInfo_String
(
const
std::string& varName, std::string& value)
const
;
49
virtual
StatusCode
getInfo_VecString
(
const
std::string& varName, std::vector<std::string>& value)
const
;
50
51
52
private
:
53
55
MapString
m_Infos_String
;
56
MapVecString
m_Infos_VecString
;
57
MapInt
m_Infos_Int
;
58
MapDouble
m_Infos_Double
;
59
MapVecDouble
m_Infos_VecDouble
;
60
61
bool
m_init
=
false
;
62
63
public
:
64
inline
bool
isInitialized
(){
return
m_init
;}
65
66
};
67
68
69
}
// end of namespace PanTau
70
#endif
// PANTAUALGS_TOOL_INFORMATIONSTORE_H
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition
AsgToolMacros.h:75
AsgTool.h
ITool_InformationStore.h
PanTau::ITool_InformationStore
Interface for Tool_InformationStore.
Definition
ITool_InformationStore.h:21
PanTau::ITool_InformationStore::MapVecString
std::map< std::string, std::vector< std::string > > MapVecString
Definition
ITool_InformationStore.h:30
PanTau::ITool_InformationStore::MapString
std::map< std::string, std::string > MapString
Definition
ITool_InformationStore.h:29
PanTau::ITool_InformationStore::MapVecDouble
std::map< std::string, std::vector< double > > MapVecDouble
Definition
ITool_InformationStore.h:33
PanTau::ITool_InformationStore::MapDouble
std::map< std::string, double > MapDouble
Definition
ITool_InformationStore.h:32
PanTau::ITool_InformationStore::MapInt
std::map< std::string, int > MapInt
Definition
ITool_InformationStore.h:31
PanTau::Tool_InformationStore::~Tool_InformationStore
virtual ~Tool_InformationStore()
PanTau::Tool_InformationStore::ABRDefaultInit
virtual void ABRDefaultInit()
Definition
Tool_InformationStore.cxx:9
PanTau::Tool_InformationStore::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
Tool_InformationStore.cxx:99
PanTau::Tool_InformationStore::getInfo_VecString
virtual StatusCode getInfo_VecString(const std::string &varName, std::vector< std::string > &value) const
Definition
Tool_InformationStore.cxx:149
PanTau::Tool_InformationStore::Tool_InformationStore
Tool_InformationStore(const std::string &name)
Definition
Tool_InformationStore.cxx:87
PanTau::Tool_InformationStore::m_Infos_VecDouble
MapVecDouble m_Infos_VecDouble
Definition
Tool_InformationStore.h:59
PanTau::Tool_InformationStore::m_Infos_Int
MapInt m_Infos_Int
Definition
Tool_InformationStore.h:57
PanTau::Tool_InformationStore::getInfo_Double
virtual StatusCode getInfo_Double(const std::string &varName, double &value) const
Definition
Tool_InformationStore.cxx:119
PanTau::Tool_InformationStore::getInfo_Int
virtual StatusCode getInfo_Int(const std::string &varName, int &value) const
Definition
Tool_InformationStore.cxx:109
PanTau::Tool_InformationStore::getInfo_VecDouble
virtual StatusCode getInfo_VecDouble(const std::string &varName, std::vector< double > &value) const
Definition
Tool_InformationStore.cxx:129
PanTau::Tool_InformationStore::m_Infos_VecString
MapVecString m_Infos_VecString
Definition
Tool_InformationStore.h:56
PanTau::Tool_InformationStore::getInfo_String
virtual StatusCode getInfo_String(const std::string &varName, std::string &value) const
Definition
Tool_InformationStore.cxx:139
PanTau::Tool_InformationStore::isInitialized
bool isInitialized()
Definition
Tool_InformationStore.h:64
PanTau::Tool_InformationStore::m_init
bool m_init
Definition
Tool_InformationStore.h:61
PanTau::Tool_InformationStore::m_Infos_Double
MapDouble m_Infos_Double
Definition
Tool_InformationStore.h:58
PanTau::Tool_InformationStore::m_Infos_String
MapString m_Infos_String
named strings, ints etc... for configuration
Definition
Tool_InformationStore.h:55
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
PanTau
xAOD EDM
Definition
Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/HelperFunctions.h:18
Generated on
for ATLAS Offline Software by
1.17.0