ATLAS Offline Software
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 
17 
18 
19 namespace PanTau {
20 
26 
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);
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 
60 
62  // input containers
66 
67  bool m_init=false;
68 
69  public:
70  inline bool isInitialized(){return m_init;}
71 
72  };
73 
74 
75 } // end of namespace PanTau
76 #endif // PANTAUALGS_TOOL_INFORMATIONSTORE_H
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
PanTau::ITool_InformationStore::MapString
std::map< std::string, std::string > MapString
Definition: ITool_InformationStore.h:29
PanTau::Tool_InformationStore::~Tool_InformationStore
virtual ~Tool_InformationStore()
PanTau::ITool_InformationStore::MapVecDouble
std::map< std::string, std::vector< double > > MapVecDouble
Definition: ITool_InformationStore.h:33
PanTau::ITool_InformationStore::MapInt
std::map< std::string, int > MapInt
Definition: ITool_InformationStore.h:31
PanTau::Tool_InformationStore::m_Infos_VecString
MapVecString m_Infos_VecString
Definition: Tool_InformationStore.h:56
PanTau::Tool_InformationStore::m_Infos_String
MapString m_Infos_String
named strings, ints etc... for configuration
Definition: Tool_InformationStore.h:55
PanTau::Tool_InformationStore::isInitialized
bool isInitialized()
Definition: Tool_InformationStore.h:70
PanTau::Tool_InformationStore::m_init
bool m_init
Definition: Tool_InformationStore.h:67
athena.value
value
Definition: athena.py:124
PanTau::ITool_InformationStore::MapVecString
std::map< std::string, std::vector< std::string > > MapVecString
Definition: ITool_InformationStore.h:30
PanTau::Tool_InformationStore::getInfo_Double
virtual StatusCode getInfo_Double(const std::string &varName, double &value) const
Definition: Tool_InformationStore.cxx:161
PanTau::Tool_InformationStore::m_Name_Container_Tracks
std::string m_Name_Container_Tracks
Definition: Tool_InformationStore.h:65
PanTau::Tool_InformationStore::getInfo_Int
virtual StatusCode getInfo_Int(const std::string &varName, int &value) const
Definition: Tool_InformationStore.cxx:151
ITool_InformationStore.h
PixelAthClusterMonAlgCfg.varName
string varName
end cluster ToT and charge
Definition: PixelAthClusterMonAlgCfg.py:125
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PanTau::Tool_InformationStore::m_Infos_Int
MapInt m_Infos_Int
Definition: Tool_InformationStore.h:57
PanTau::Tool_InformationStore::getInfo_String
virtual StatusCode getInfo_String(const std::string &varName, std::string &value) const
Definition: Tool_InformationStore.cxx:181
PanTau::Tool_InformationStore::ABRDefaultInit
virtual void ABRDefaultInit()
Definition: Tool_InformationStore.cxx:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PanTau::Tool_InformationStore::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: Tool_InformationStore.cxx:138
PanTau::ITool_InformationStore
Interface for Tool_InformationStore.
Definition: ITool_InformationStore.h:21
PanTau::Tool_InformationStore::Tool_InformationStore
Tool_InformationStore(const std::string &name)
Definition: Tool_InformationStore.cxx:126
PanTau::Tool_InformationStore::getInfo_VecDouble
virtual StatusCode getInfo_VecDouble(const std::string &varName, std::vector< double > &value) const
Definition: Tool_InformationStore.cxx:171
python.PyAthena.v
v
Definition: PyAthena.py:154
PanTau::Tool_InformationStore
Definition: Tool_InformationStore.h:25
PanTau
xAOD EDM
Definition: Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/HelperFunctions.h:18
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition: AsgToolMacros.h:75
PanTau::Tool_InformationStore::m_Name_Container_eflowRec
std::string m_Name_Container_eflowRec
other information
Definition: Tool_InformationStore.h:63
PanTau::Tool_InformationStore::m_Infos_VecDouble
MapVecDouble m_Infos_VecDouble
Definition: Tool_InformationStore.h:59
PanTau::Tool_InformationStore::m_Name_Container_TauRec
std::string m_Name_Container_TauRec
Definition: Tool_InformationStore.h:64
AsgTool.h
PanTau::Tool_InformationStore::getInfo_VecString
virtual StatusCode getInfo_VecString(const std::string &varName, std::vector< std::string > &value) const
Definition: Tool_InformationStore.cxx:191
PanTau::ITool_InformationStore::MapDouble
std::map< std::string, double > MapDouble
Definition: ITool_InformationStore.h:32
PanTau::Tool_InformationStore::m_Infos_Double
MapDouble m_Infos_Double
Definition: Tool_InformationStore.h:58