ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace 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
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
#define ASG_TOOL_CLASS1
Interface for Tool_InformationStore.
std::map< std::string, std::vector< std::string > > MapVecString
std::map< std::string, std::string > MapString
std::map< std::string, std::vector< double > > MapVecDouble
std::map< std::string, double > MapDouble
std::map< std::string, int > MapInt
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual StatusCode getInfo_VecString(const std::string &varName, std::vector< std::string > &value) const
Tool_InformationStore(const std::string &name)
virtual StatusCode getInfo_Double(const std::string &varName, double &value) const
virtual StatusCode getInfo_Int(const std::string &varName, int &value) const
virtual StatusCode getInfo_VecDouble(const std::string &varName, std::vector< double > &value) const
virtual StatusCode getInfo_String(const std::string &varName, std::string &value) const
MapString m_Infos_String
named strings, ints etc... for configuration
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47