Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PdbParameterMapContainer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PdbParameterMapContainer.h
1 #ifndef PDBCAL_BASE_PDBPARAMETERMAPCONTAINER_H
2 #define PDBCAL_BASE_PDBPARAMETERMAPCONTAINER_H
3 
4 #include "PdbCalChan.h"
5 
6 #include <map>
7 #include <string>
8 #include <utility>
9 
10 class PdbParameterMap;
11 
13 {
14  public:
15  typedef std::map<int, PdbParameterMap *> parMap;
16  typedef parMap::const_iterator parIter;
17  typedef std::pair<parIter, parIter> parConstRange;
18 
20  ~PdbParameterMapContainer() override;
21 
22  void print() const override;
23 
24  void Reset() override;
25 
26  void AddPdbParameterMap(const int layer, PdbParameterMap *params);
27  const PdbParameterMap *GetParameters(const int layer) const;
29  parConstRange get_ParameterMaps() const { return make_pair(parametermap.begin(), parametermap.end()); }
30 
32  int WriteToFile(const std::string &detector_name, const std::string &extension, const std::string &dir = ".");
33 
34  protected:
35  std::map<int, PdbParameterMap *> parametermap;
36 
38 };
39 
40 #endif