CMS 3D CMS Logo

AlignPCLThresholdsHG.h
Go to the documentation of this file.
1 #ifndef CondFormats_PCLConfig_AlignPCLThresholdsHG_h
2 #define CondFormats_PCLConfig_AlignPCLThresholdsHG_h
3 
6 
7 #include <map>
8 #include <string>
9 #include <vector>
10 
12 public:
13  typedef std::unordered_map<std::string, std::vector<float>> param_map;
15 
23  FSIZE = 6
24  };
25 
26  enum IntParamIndex { ISIZE = 0 };
27  enum StringParamIndex { SSIZE = 0 };
28 
29  void setFloatMap(const param_map &floatMap);
30  void setFractionCut(const std::string &AlignableId, const coordType &type, const float &cut);
31 
32  const param_map &getFloatMap() const { return floatMap_; }
33  const std::vector<float> &getFloatVec(const std::string &AlignableId) const;
34 
35  float getFractionCut(const std::string &AlignableId, const coordType &type) const;
36  std::array<float, 6> getFractionCut(const std::string &AlignableId) const;
37 
38  const bool hasFloatMap(const std::string &AlignableId) const;
39 
40  const int payloadVersion() const;
41 
42  void printAll() const;
43 
44  ~AlignPCLThresholdsHG() override = default;
45 
46 private:
48  // yet unused, but kept for possible extensions
49  std::unordered_map<std::string, std::vector<int>> intMap_;
50  std::unordered_map<std::string, std::vector<std::string>> stringMap_;
51 
53 };
54 
55 #endif
std::unordered_map< std::string, std::vector< float > > param_map
void setFloatMap(const param_map &floatMap)
~AlignPCLThresholdsHG() override=default
std::unordered_map< std::string, std::vector< std::string > > stringMap_
const std::vector< float > & getFloatVec(const std::string &AlignableId) const
const bool hasFloatMap(const std::string &AlignableId) const
const int payloadVersion() const
std::unordered_map< std::string, std::vector< int > > intMap_
#define COND_SERIALIZABLE
Definition: Serializable.h:39
const param_map & getFloatMap() const
float getFractionCut(const std::string &AlignableId, const coordType &type) const
void setFractionCut(const std::string &AlignableId, const coordType &type, const float &cut)