ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace PanTau {
13
14
19
20
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
#define ASG_TOOL_INTERFACE(CLASSNAME)
Interface for Tool_InformationStore.
virtual StatusCode getInfo_Int(const std::string &varName, int &value) const =0
virtual StatusCode getInfo_Double(const std::string &varName, double &value) const =0
std::map< std::string, std::vector< std::string > > MapVecString
virtual StatusCode getInfo_VecString(const std::string &varName, std::vector< std::string > &value) const =0
std::map< std::string, std::string > MapString
virtual bool isInitialized()=0
std::map< std::string, std::vector< double > > MapVecDouble
std::map< std::string, double > MapDouble
std::map< std::string, int > MapInt
virtual StatusCode getInfo_String(const std::string &varName, std::string &value) const =0
virtual StatusCode getInfo_VecDouble(const std::string &varName, std::vector< double > &value) const =0
Base class for the dual-use tool interface classes.
Definition IAsgTool.h:41