CMS 3D CMS Logo

AlignPCLThresholds.h
Go to the documentation of this file.
1 #ifndef CondFormats_PCLConfig_AlignPCLThresholds_h
2 #define CondFormats_PCLConfig_AlignPCLThresholds_h
3 
6 
7 #include <map>
8 #include <string>
9 #include <vector>
10 
12 public:
13  typedef std::map<std::string, AlignPCLThreshold> threshold_map;
15 
17  virtual ~AlignPCLThresholds() {}
18 
19  void setAlignPCLThreshold(const std::string &AlignableId, const AlignPCLThreshold &Threshold);
20  void setAlignPCLThresholds(const int &Nrecords, const threshold_map &Thresholds);
21  void setNRecords(const int &Nrecords);
22 
23  const threshold_map &getThreshold_Map() const { return m_thresholds; }
24  const int &getNrecords() const { return m_nrecords; }
25 
26  AlignPCLThreshold getAlignPCLThreshold(const std::string &AlignableId) const;
28 
29  float getSigCut(const std::string &AlignableId, const coordType &type) const;
30  float getCut(const std::string &AlignableId, const coordType &type) const;
31  float getMaxMoveCut(const std::string &AlignableId, const coordType &type) const;
32  float getMaxErrorCut(const std::string &AlignableId, const coordType &type) const;
33 
34  // overloaded methods to get all the coordinates
35  std::array<float, 6> getSigCut(const std::string &AlignableId) const;
36  std::array<float, 6> getCut(const std::string &AlignableId) const;
37  std::array<float, 6> getMaxMoveCut(const std::string &AlignableId) const;
38  std::array<float, 6> getMaxErrorCut(const std::string &AlignableId) const;
39 
40  std::array<float, 4> getExtraDOFCutsForAlignable(const std::string &AlignableId, const unsigned int i) const;
41  std::string getExtraDOFLabelForAlignable(const std::string &AlignableId, const unsigned int i) const;
42 
43  double size() const { return m_thresholds.size(); }
44  std::vector<std::string> getAlignableList() const;
45 
46  void printAll() const;
47 
48 private:
51 
53 };
54 
55 #endif
AlignPCLThresholds::theta_Y
Definition: AlignPCLThresholds.h:14
HLT_FULL_cff.Threshold
Threshold
Definition: HLT_FULL_cff.py:11592
mps_fire.i
i
Definition: mps_fire.py:428
AlignPCLThresholds::getThreshold_Map
const threshold_map & getThreshold_Map() const
Definition: AlignPCLThresholds.h:23
AlignPCLThresholds::printAll
void printAll() const
Definition: AlignPCLThresholds.cc:182
AlignPCLThresholds::AlignPCLThresholds
AlignPCLThresholds()
Definition: AlignPCLThresholds.h:16
AlignPCLThreshold
Definition: AlignPCLThreshold.h:6
AlignPCLThresholds::setAlignPCLThresholds
void setAlignPCLThresholds(const int &Nrecords, const threshold_map &Thresholds)
Definition: AlignPCLThresholds.cc:14
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
AlignPCLThresholds::setNRecords
void setNRecords(const int &Nrecords)
Definition: AlignPCLThresholds.cc:20
AlignPCLThresholds
Definition: AlignPCLThresholds.h:11
AlignPCLThresholds::X
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::theta_Z
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::getMaxMoveCut
float getMaxMoveCut(const std::string &AlignableId, const coordType &type) const
Definition: AlignPCLThresholds.cc:98
AlignPCLThresholds::getNrecords
const int & getNrecords() const
Definition: AlignPCLThresholds.h:24
AlignPCLThresholds::endOfTypes
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::getMaxErrorCut
float getMaxErrorCut(const std::string &AlignableId, const coordType &type) const
Definition: AlignPCLThresholds.cc:133
AlignPCLThreshold.h
AlignPCLThresholds::setAlignPCLThreshold
void setAlignPCLThreshold(const std::string &AlignableId, const AlignPCLThreshold &Threshold)
Definition: AlignPCLThresholds.cc:9
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
Serializable.h
AlignPCLThresholds::Z
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::Y
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::size
double size() const
Definition: AlignPCLThresholds.h:43
AlignPCLThresholds::getExtraDOFLabelForAlignable
std::string getExtraDOFLabelForAlignable(const std::string &AlignableId, const unsigned int i) const
Definition: AlignPCLThresholds.cc:175
AlignPCLThresholds::threshold_map
std::map< std::string, AlignPCLThreshold > threshold_map
Definition: AlignPCLThresholds.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_FULL_cff.Thresholds
Thresholds
Definition: HLT_FULL_cff.py:35546
AlignPCLThresholds::getSigCut
float getSigCut(const std::string &AlignableId, const coordType &type) const
Definition: AlignPCLThresholds.cc:38
AlignPCLThresholds::m_thresholds
threshold_map m_thresholds
Definition: AlignPCLThresholds.h:49
AlignPCLThresholds::coordType
coordType
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::m_nrecords
int m_nrecords
Definition: AlignPCLThresholds.h:50
AlignPCLThresholds::getAlignPCLThreshold
AlignPCLThreshold getAlignPCLThreshold(const std::string &AlignableId) const
Definition: AlignPCLThresholds.cc:23
AlignPCLThresholds::theta_X
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::getCut
float getCut(const std::string &AlignableId, const coordType &type) const
Definition: AlignPCLThresholds.cc:68
AlignPCLThresholds::extra_DOF
Definition: AlignPCLThresholds.h:14
AlignPCLThresholds::getAlignableList
std::vector< std::string > getAlignableList() const
Definition: AlignPCLThresholds.cc:239
AlignPCLThresholds::getExtraDOFCutsForAlignable
std::array< float, 4 > getExtraDOFCutsForAlignable(const std::string &AlignableId, const unsigned int i) const
Definition: AlignPCLThresholds.cc:168
AlignPCLThresholds::~AlignPCLThresholds
virtual ~AlignPCLThresholds()
Definition: AlignPCLThresholds.h:17