CMS 3D CMS Logo

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