Class Reference for E1039 Core & Analysis Software
PdbParameterMapContainer.h
Go to the documentation of this file.
1 #ifndef PdbParameterMapContainer__h
2 #define PdbParameterMapContainer__h
3 
4 #include "PdbCalChan.h"
5 
6 #include <map>
7 
8 class PdbParameterMap;
9 
11 {
12  public:
13 
14  typedef std::map<int, PdbParameterMap *> parMap;
15  typedef parMap::const_iterator parIter;
16  typedef std::pair<parIter, parIter> parConstRange;
17 
19  virtual ~PdbParameterMapContainer();
20 
21  void print() const;
22 
23  void Reset();
24 
25  void AddPdbParameterMap(const int layer, PdbParameterMap *params);
26  const PdbParameterMap *GetParameters(const int layer) const;
27  PdbParameterMap *GetParametersToModify(const int layer);
28  parConstRange get_ParameterMaps() const {return make_pair(parametermap.begin(), parametermap.end());}
29 
31  int WriteToFile(const std::string &detector_name, const std::string &extension, const std::string &dir = ".");
32 
33  protected:
34  std::map<int, PdbParameterMap *> parametermap;
35 
37 };
38 
39 #endif
ClassDef(PdbCalChan, 1)
parConstRange get_ParameterMaps() const
void AddPdbParameterMap(const int layer, PdbParameterMap *params)
parMap::const_iterator parIter
std::map< int, PdbParameterMap * > parMap
PdbParameterMap * GetParametersToModify(const int layer)
std::pair< parIter, parIter > parConstRange
std::map< int, PdbParameterMap * > parametermap
int WriteToFile(const std::string &detector_name, const std::string &extension, const std::string &dir=".")
write PdbParameterMapContainer to an external file with root or xml extension.
const PdbParameterMap * GetParameters(const int layer) const