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
AlignPCLThreshold::getXcut
float getXcut() const
Definition: AlignPCLThreshold.h:45
mps_fire.i
i
Definition: mps_fire.py:355
AlignPCLThreshold::getZcut
float getZcut() const
Definition: AlignPCLThreshold.h:47
X
#define X(str)
Definition: MuonsGrabber.cc:38
AlignPCLThreshold
Definition: AlignPCLThreshold.h:6
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
AlignPCLThreshold::m_thetaXCoord
coordThresholds m_thetaXCoord
Definition: AlignPCLThreshold.h:82
AlignPCLThreshold::getMaxMoveThetaXcut
float getMaxMoveThetaXcut() const
Definition: AlignPCLThreshold.h:69
AlignPCLThreshold::getMaxMoveYcut
float getMaxMoveYcut() const
Definition: AlignPCLThreshold.h:67
AlignPCLThreshold::coordThresholds::m_errorCut
float m_errorCut
Definition: AlignPCLThreshold.h:28
AlignPCLThreshold::getSigThetaXcut
float getSigThetaXcut() const
Definition: AlignPCLThreshold.h:55
AlignPCLThreshold::AlignPCLThreshold
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 >())
Definition: AlignPCLThreshold.cc:4
AlignPCLThreshold::getThetaZcut
float getThetaZcut() const
Definition: AlignPCLThreshold.h:50
AlignPCLThreshold::getYcut
float getYcut() const
Definition: AlignPCLThreshold.h:46
AlignPCLThreshold::getThetaYcut
float getThetaYcut() const
Definition: AlignPCLThreshold.h:49
AlignPCLThreshold::hasExtraDOF
bool hasExtraDOF() const
Definition: AlignPCLThreshold.h:73
AlignPCLThreshold::getSigThetaYcut
float getSigThetaYcut() const
Definition: AlignPCLThreshold.h:56
AlignPCLThreshold::getMaxMoveXcut
float getMaxMoveXcut() const
Definition: AlignPCLThreshold.h:66
AlignPCLThreshold::getErrorXcut
float getErrorXcut() const
Definition: AlignPCLThreshold.h:59
AlignPCLThreshold::coordThresholds::m_Cut
float m_Cut
Definition: AlignPCLThreshold.h:26
AlignPCLThreshold::~AlignPCLThreshold
virtual ~AlignPCLThreshold()
Definition: AlignPCLThreshold.h:35
AlignPCLThreshold::getSigThetaZcut
float getSigThetaZcut() const
Definition: AlignPCLThreshold.h:57
DOFs::extraDOF
Definition: AlignPCLThresholdsWriter.cc:37
AlignPCLThreshold::m_xCoord
coordThresholds m_xCoord
Definition: AlignPCLThreshold.h:79
AlignPCLThreshold::m_thetaZCoord
coordThresholds m_thetaZCoord
Definition: AlignPCLThreshold.h:84
AlignPCLThreshold::coordThresholds::m_label
std::string m_label
Definition: AlignPCLThreshold.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
AlignPCLThreshold::getErrorThetaYcut
float getErrorThetaYcut() const
Definition: AlignPCLThreshold.h:63
AlignPCLThreshold::coordThresholds::m_sigCut
float m_sigCut
Definition: AlignPCLThreshold.h:27
AlignPCLThreshold::getThetaXcut
float getThetaXcut() const
Definition: AlignPCLThreshold.h:48
AlignPCLThreshold::getErrorZcut
float getErrorZcut() const
Definition: AlignPCLThreshold.h:61
AlignPCLThreshold::getMaxMoveZcut
float getMaxMoveZcut() const
Definition: AlignPCLThreshold.h:68
AlignPCLThreshold::coordThresholds::~coordThresholds
~coordThresholds()
Definition: AlignPCLThreshold.h:16
AlignPCLThreshold::getSigZcut
float getSigZcut() const
Definition: AlignPCLThreshold.h:54
AlignPCLThreshold::m_zCoord
coordThresholds m_zCoord
Definition: AlignPCLThreshold.h:81
Serializable.h
DOFs::Z
Definition: AlignPCLThresholdsWriter.cc:37
AlignPCLThreshold::coordThresholds::coordThresholds
coordThresholds()
Definition: AlignPCLThreshold.h:9
AlignPCLThreshold::getErrorThetaZcut
float getErrorThetaZcut() const
Definition: AlignPCLThreshold.h:64
AlignPCLThreshold::coordThresholds
Definition: AlignPCLThreshold.h:8
AlignPCLThreshold::getMaxMoveThetaZcut
float getMaxMoveThetaZcut() const
Definition: AlignPCLThreshold.h:71
AlignPCLThreshold::coordThresholds::m_maxMoveCut
float m_maxMoveCut
Definition: AlignPCLThreshold.h:29
AlignPCLThreshold::getMaxMoveThetaYcut
float getMaxMoveThetaYcut() const
Definition: AlignPCLThreshold.h:70
DOFs::Y
Definition: AlignPCLThresholdsWriter.cc:37
AlignPCLThreshold::extraDOFSize
unsigned int extraDOFSize() const
Definition: AlignPCLThreshold.h:74
AlignPCLThreshold::getExtraDOFLabel
std::string getExtraDOFLabel(const unsigned int i) const
Definition: AlignPCLThreshold.cc:30
AlignPCLThreshold::m_yCoord
coordThresholds m_yCoord
Definition: AlignPCLThreshold.h:80
AlignPCLThreshold::coordThresholds::setThresholds
void setThresholds(float theCut, float theSigCut, float theErrorCut, float theMaxMoveCut, const std::string &theLabel)
Definition: AlignPCLThreshold.h:17
AlignPCLThreshold::getSigYcut
float getSigYcut() const
Definition: AlignPCLThreshold.h:53
AlignPCLThreshold::getErrorYcut
float getErrorYcut() const
Definition: AlignPCLThreshold.h:60
AlignPCLThreshold::getSigXcut
float getSigXcut() const
Definition: AlignPCLThreshold.h:52
AlignPCLThreshold::getExtraDOFCuts
std::array< float, 4 > getExtraDOFCuts(const unsigned int i) const
Definition: AlignPCLThreshold.cc:21
AlignPCLThreshold::m_extraDOF
std::vector< coordThresholds > m_extraDOF
Definition: AlignPCLThreshold.h:85
AlignPCLThreshold::m_thetaYCoord
coordThresholds m_thetaYCoord
Definition: AlignPCLThreshold.h:83
AlignPCLThreshold::getErrorThetaXcut
float getErrorThetaXcut() const
Definition: AlignPCLThreshold.h:62