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 setFractionCut(const std::string &AlignableId, const coordType &type, const float &cut);
30 
31  const param_map &getFloatMap() const { return floatMap_; }
32  const std::vector<float> &getFloatVec(const std::string &AlignableId) const;
33 
34  float getFractionCut(const std::string &AlignableId, const coordType &type) const;
35  std::array<float, 6> getFractionCut(const std::string &AlignableId) const;
36 
37  const int payloadVersion() const;
38 
39  void printAll() const;
40 
41  ~AlignPCLThresholdsHG() override = default;
42 
43 private:
45  // yet unused, but kept for possible extensions
46  std::unordered_map<std::string, std::vector<int>> intMap_;
47  std::unordered_map<std::string, std::vector<std::string>> stringMap_;
48 
50 };
51 
52 #endif
std::unordered_map< std::string, std::vector< float > > param_map
~AlignPCLThresholdsHG() override=default
std::unordered_map< std::string, std::vector< std::string > > stringMap_
const std::vector< float > & getFloatVec(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)