CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 getErrorThetaZcut() const
float getMaxMoveThetaXcut() const
float getMaxMoveZcut() const
coordThresholds m_thetaYCoord
coordThresholds m_thetaXCoord
float getSigXcut() const
float getMaxMoveThetaZcut() const
std::array< float, 4 > getExtraDOFCuts(const unsigned int i) const
float getXcut() const
#define X(str)
Definition: MuonsGrabber.cc:38
float getSigThetaXcut() const
bool hasExtraDOF() const
float getMaxMoveYcut() const
float getErrorYcut() 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 getSigThetaYcut() const
unsigned int extraDOFSize() const
float getZcut() const
float getThetaXcut() const
float getThetaZcut() const
coordThresholds m_xCoord
float getErrorZcut() const
coordThresholds m_thetaZCoord
coordThresholds m_zCoord
float getSigYcut() const
float getYcut() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
float getErrorThetaYcut() const
float getSigZcut() const
float getMaxMoveThetaYcut() const
float getErrorXcut() const
std::vector< coordThresholds > m_extraDOF
float getMaxMoveXcut() const
void setThresholds(float theCut, float theSigCut, float theErrorCut, float theMaxMoveCut, const std::string &theLabel)
float getErrorThetaXcut() const
float getThetaYcut() const
std::string getExtraDOFLabel(const unsigned int i) const
float getSigThetaZcut() const
coordThresholds m_yCoord