CMS 3D CMS Logo

AlignPCLThreshold.h
Go to the documentation of this file.
1 #ifndef CondFormats_PCLConfig_AlignPCLThreshold_h
2 #define CondFormats_PCLConfig_AlignPCLThreshold_h
3 
5 #include <array>
6 
8 public:
9  struct coordThresholds {
11  m_Cut = 5.;
12  m_sigCut = 2.5;
13  m_errorCut = 10.;
14  m_maxMoveCut = 200;
15  m_label = "default";
16  }
19  float theCut, float theSigCut, float theErrorCut, float theMaxMoveCut, const std::string &theLabel) {
20  m_Cut = theCut;
21  m_sigCut = theSigCut;
22  m_errorCut = theErrorCut;
23  m_maxMoveCut = theMaxMoveCut;
24  m_label = theLabel;
25  }
26 
27  float m_Cut;
28  float m_sigCut;
29  float m_errorCut;
30  float m_maxMoveCut;
32 
34  };
35 
36  virtual ~AlignPCLThreshold() {}
37 
38  AlignPCLThreshold(coordThresholds X = coordThresholds(),
39  coordThresholds tX = coordThresholds(),
40  coordThresholds Y = coordThresholds(),
41  coordThresholds tY = coordThresholds(),
42  coordThresholds Z = coordThresholds(),
43  coordThresholds tZ = coordThresholds(),
44  std::vector<coordThresholds> extraDOF = std::vector<coordThresholds>());
45 
46  float getXcut() const { return m_xCoord.m_Cut; }
47  float getYcut() const { return m_yCoord.m_Cut; }
48  float getZcut() const { return m_zCoord.m_Cut; }
49  float getThetaXcut() const { return m_thetaXCoord.m_Cut; }
50  float getThetaYcut() const { return m_thetaYCoord.m_Cut; }
51  float getThetaZcut() const { return m_thetaZCoord.m_Cut; }
52 
53  float getSigXcut() const { return m_xCoord.m_sigCut; }
54  float getSigYcut() const { return m_yCoord.m_sigCut; }
55  float getSigZcut() const { return m_zCoord.m_sigCut; }
56  float getSigThetaXcut() const { return m_thetaXCoord.m_sigCut; }
57  float getSigThetaYcut() const { return m_thetaYCoord.m_sigCut; }
58  float getSigThetaZcut() const { return m_thetaZCoord.m_sigCut; }
59 
60  float getErrorXcut() const { return m_xCoord.m_errorCut; }
61  float getErrorYcut() const { return m_yCoord.m_errorCut; }
62  float getErrorZcut() const { return m_zCoord.m_errorCut; }
63  float getErrorThetaXcut() const { return m_thetaXCoord.m_errorCut; }
64  float getErrorThetaYcut() const { return m_thetaYCoord.m_errorCut; }
65  float getErrorThetaZcut() const { return m_thetaZCoord.m_errorCut; }
66 
67  float getMaxMoveXcut() const { return m_xCoord.m_maxMoveCut; }
68  float getMaxMoveYcut() const { return m_yCoord.m_maxMoveCut; }
69  float getMaxMoveZcut() const { return m_zCoord.m_maxMoveCut; }
73 
74  bool hasExtraDOF() const { return (!m_extraDOF.empty()); }
75  unsigned int extraDOFSize() const { return m_extraDOF.size(); }
76  std::array<float, 4> getExtraDOFCuts(const unsigned int i) const;
77  std::string getExtraDOFLabel(const unsigned int i) const;
78 
79 private:
86  std::vector<coordThresholds> m_extraDOF;
87 
89 };
90 
91 #endif
float getZcut() const
float getErrorYcut() const
coordThresholds m_thetaYCoord
coordThresholds m_thetaXCoord
float getMaxMoveThetaXcut() const
bool hasExtraDOF() const
float getErrorXcut() const
#define X(str)
Definition: MuonsGrabber.cc:38
float getThetaYcut() const
float getSigThetaXcut() const
AlignPCLThreshold(coordThresholds X=coordThresholds(), coordThresholds tX=coordThresholds(), coordThresholds Y=coordThresholds(), coordThresholds tY=coordThresholds(), coordThresholds Z=coordThresholds(), coordThresholds tZ=coordThresholds(), std::vector< coordThresholds > extraDOF=std::vector< coordThresholds >())
virtual ~AlignPCLThreshold()
float getErrorThetaYcut() const
float getMaxMoveYcut() const
float getSigThetaYcut() const
float getMaxMoveXcut() const
float getSigThetaZcut() const
float getThetaZcut() const
float getYcut() const
float getErrorZcut() const
coordThresholds m_xCoord
coordThresholds m_thetaZCoord
coordThresholds m_zCoord
float getMaxMoveThetaYcut() const
float getThetaXcut() const
float getErrorThetaZcut() const
float getMaxMoveZcut() const
float getSigZcut() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
float getSigXcut() const
float getMaxMoveThetaZcut() const
std::array< float, 4 > getExtraDOFCuts(const unsigned int i) const
unsigned int extraDOFSize() const
std::vector< coordThresholds > m_extraDOF
float getErrorThetaXcut() const
std::string getExtraDOFLabel(const unsigned int i) const
void setThresholds(float theCut, float theSigCut, float theErrorCut, float theMaxMoveCut, const std::string &theLabel)
float getSigYcut() const
float getXcut() const
coordThresholds m_yCoord