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 
7 public:
8  struct coordThresholds {
10  m_Cut = 5.;
11  m_sigCut = 2.5;
12  m_errorCut = 10.;
13  m_maxMoveCut = 200;
14  m_label = "default";
15  }
18  float theCut, float theSigCut, float theErrorCut, float theMaxMoveCut, const std::string &theLabel) {
19  m_Cut = theCut;
20  m_sigCut = theSigCut;
21  m_errorCut = theErrorCut;
22  m_maxMoveCut = theMaxMoveCut;
23  m_label = theLabel;
24  }
25 
26  float m_Cut;
27  float m_sigCut;
28  float m_errorCut;
29  float m_maxMoveCut;
31 
33  };
34 
35  virtual ~AlignPCLThreshold() {}
36 
37  AlignPCLThreshold(coordThresholds X = coordThresholds(),
38  coordThresholds tX = coordThresholds(),
39  coordThresholds Y = coordThresholds(),
40  coordThresholds tY = coordThresholds(),
41  coordThresholds Z = coordThresholds(),
42  coordThresholds tZ = coordThresholds(),
43  std::vector<coordThresholds> extraDOF = std::vector<coordThresholds>());
44 
45  float getXcut() const { return m_xCoord.m_Cut; }
46  float getYcut() const { return m_yCoord.m_Cut; }
47  float getZcut() const { return m_zCoord.m_Cut; }
48  float getThetaXcut() const { return m_thetaXCoord.m_Cut; }
49  float getThetaYcut() const { return m_thetaYCoord.m_Cut; }
50  float getThetaZcut() const { return m_thetaZCoord.m_Cut; }
51 
52  float getSigXcut() const { return m_xCoord.m_sigCut; }
53  float getSigYcut() const { return m_yCoord.m_sigCut; }
54  float getSigZcut() const { return m_zCoord.m_sigCut; }
55  float getSigThetaXcut() const { return m_thetaXCoord.m_sigCut; }
56  float getSigThetaYcut() const { return m_thetaYCoord.m_sigCut; }
57  float getSigThetaZcut() const { return m_thetaZCoord.m_sigCut; }
58 
59  float getErrorXcut() const { return m_xCoord.m_errorCut; }
60  float getErrorYcut() const { return m_yCoord.m_errorCut; }
61  float getErrorZcut() const { return m_zCoord.m_errorCut; }
62  float getErrorThetaXcut() const { return m_thetaXCoord.m_errorCut; }
63  float getErrorThetaYcut() const { return m_thetaYCoord.m_errorCut; }
64  float getErrorThetaZcut() const { return m_thetaZCoord.m_errorCut; }
65 
66  float getMaxMoveXcut() const { return m_xCoord.m_maxMoveCut; }
67  float getMaxMoveYcut() const { return m_yCoord.m_maxMoveCut; }
68  float getMaxMoveZcut() const { return m_zCoord.m_maxMoveCut; }
72 
73  bool hasExtraDOF() const { return (!m_extraDOF.empty()); }
74  unsigned int extraDOFSize() const { return m_extraDOF.size(); }
75  std::array<float, 4> getExtraDOFCuts(const unsigned int i) const;
76  std::string getExtraDOFLabel(const unsigned int i) const;
77 
78 private:
85  std::vector<coordThresholds> m_extraDOF;
86 
88 };
89 
90 #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