CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
AlignPCLThreshold.cc
Go to the documentation of this file.
3 
10  std::vector<coordThresholds> extraDOF) {
11  m_xCoord = X;
12  m_yCoord = Y;
13  m_zCoord = Z;
14  m_thetaXCoord = tX;
15  m_thetaYCoord = tY;
16  m_thetaZCoord = tZ;
18 };
19 
20 //****************************************************************************//
21 std::array<float, 4> AlignPCLThreshold::getExtraDOFCuts(const unsigned int i) const {
22  if (i < m_extraDOF.size()) {
23  return {{m_extraDOF[i].m_Cut, m_extraDOF[i].m_sigCut, m_extraDOF[i].m_errorCut, m_extraDOF[i].m_maxMoveCut}};
24  } else {
25  throw cms::Exception("AlignPCLThreshold") << "No extra DOF thresholds defined for index" << i << "\n";
26  }
27 }
28 
29 //****************************************************************************//
31  if (i < m_extraDOF.size()) {
32  return m_extraDOF[i].m_label;
33  } else {
34  throw cms::Exception("AlignPCLThreshold") << "No extra DOF label defined for index" << i << "\n";
35  }
36 }
coordThresholds m_thetaYCoord
coordThresholds m_thetaXCoord
#define X(str)
Definition: MuonsGrabber.cc:38
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 >())
coordThresholds m_xCoord
coordThresholds m_thetaZCoord
coordThresholds m_zCoord
std::array< float, 4 > getExtraDOFCuts(const unsigned int i) const
std::vector< coordThresholds > m_extraDOF
std::string getExtraDOFLabel(const unsigned int i) const
coordThresholds m_yCoord