ATLAS Offline Software
ITool_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_ITOOL_INFORMATIONSTORE_H
6 #define PANTAUALGS_ITOOL_INFORMATIONSTORE_H
7 // Gaudi
8 #include "AsgTools/IAsgTool.h"
9 
10 #include <string>
11 
12 namespace PanTau {
13 
14 
21  class ITool_InformationStore : virtual public asg::IAsgTool {
23 
24 
25  public:
26 
27  virtual bool isInitialized() = 0;
28 
29  typedef std::map<std::string, std::string> MapString;
30  typedef std::map<std::string, std::vector<std::string> > MapVecString;
31  typedef std::map<std::string, int> MapInt;
32  typedef std::map<std::string, double> MapDouble;
33  typedef std::map<std::string, std::vector<double> > MapVecDouble;
34 
35 #ifdef XAOD_ANALYSIS
36  virtual inline void setMapString( MapString&v ) = 0 ;
37  virtual inline void setMapVecString( MapVecString&v ) = 0 ;
38  virtual inline void setMapInt( MapInt &v ) = 0 ;
39  virtual inline void setMapDouble( MapDouble &v ) = 0 ;
40  virtual inline void setMapVecDouble( MapVecDouble &v ) = 0 ;
41 #endif
42 
43  virtual StatusCode getInfo_Int(const std::string& varName, int& value) const = 0;
44  virtual StatusCode getInfo_Double(const std::string& varName, double& value) const = 0;
45  virtual StatusCode getInfo_VecDouble(const std::string& varName, std::vector<double>& value) const = 0;
46  virtual StatusCode getInfo_String(const std::string& varName, std::string& value) const = 0;
47  virtual StatusCode getInfo_VecString(const std::string& varName, std::vector<std::string>& value) const = 0;
48  };
49 
50 }
51 #endif //PANTAUALGS_ITOOL_INFORMATIONSTORE_H
52 
PanTau::ITool_InformationStore::getInfo_String
virtual StatusCode getInfo_String(const std::string &varName, std::string &value) const =0
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::MapInt
std::map< std::string, int > MapInt
Definition: ITool_InformationStore.h:31
PanTau::ITool_InformationStore::getInfo_VecDouble
virtual StatusCode getInfo_VecDouble(const std::string &varName, std::vector< double > &value) const =0
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition: IAsgTool.h:41
athena.value
value
Definition: athena.py:122
PanTau::ITool_InformationStore::MapVecString
std::map< std::string, std::vector< std::string > > MapVecString
Definition: ITool_InformationStore.h:30
PanTau::ITool_InformationStore::getInfo_Double
virtual StatusCode getInfo_Double(const std::string &varName, double &value) const =0
PanTau::ITool_InformationStore::getInfo_Int
virtual StatusCode getInfo_Int(const std::string &varName, int &value) const =0
PixelAthClusterMonAlgCfg.varName
string varName
end cluster ToT and charge
Definition: PixelAthClusterMonAlgCfg.py:117
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition: AsgToolMacros.h:40
IAsgTool.h
PanTau::ITool_InformationStore
Interface for Tool_InformationStore.
Definition: ITool_InformationStore.h:21
PanTau::ITool_InformationStore::getInfo_VecString
virtual StatusCode getInfo_VecString(const std::string &varName, std::vector< std::string > &value) const =0
python.PyAthena.v
v
Definition: PyAthena.py:157
PanTau
xAOD EDM
Definition: Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/HelperFunctions.h:18
PanTau::ITool_InformationStore::isInitialized
virtual bool isInitialized()=0
PanTau::ITool_InformationStore::MapDouble
std::map< std::string, double > MapDouble
Definition: ITool_InformationStore.h:32