CMS 3D CMS Logo

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 }
mps_fire.i
i
Definition: mps_fire.py:428
X
#define X(str)
Definition: MuonsGrabber.cc:38
AlignPCLThreshold::m_thetaXCoord
coordThresholds m_thetaXCoord
Definition: AlignPCLThreshold.h:82
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
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
AlignPCLThreshold.h
AlignPCLThreshold::m_zCoord
coordThresholds m_zCoord
Definition: AlignPCLThreshold.h:81
AlignPCLThreshold::coordThresholds
Definition: AlignPCLThreshold.h:8
Exception
Definition: hltDiff.cc:246
AlignPCLThreshold::getExtraDOFLabel
std::string getExtraDOFLabel(const unsigned int i) const
Definition: AlignPCLThreshold.cc:30
AlignPCLThreshold::m_yCoord
coordThresholds m_yCoord
Definition: AlignPCLThreshold.h:80
Exception.h
BeamSpotPI::Y
Definition: BeamSpotPayloadInspectorHelper.h:31
BeamSpotPI::Z
Definition: BeamSpotPayloadInspectorHelper.h:32
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