CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends
AlignPCLThreshold Class Reference

#include <AlignPCLThreshold.h>

Classes

struct  coordThresholds
 

Public Member Functions

 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 >())
 
unsigned int extraDOFSize () const
 
float getErrorThetaXcut () const
 
float getErrorThetaYcut () const
 
float getErrorThetaZcut () const
 
float getErrorXcut () const
 
float getErrorYcut () const
 
float getErrorZcut () const
 
std::array< float, 4 > getExtraDOFCuts (const unsigned int i) const
 
std::string getExtraDOFLabel (const unsigned int i) const
 
float getMaxMoveThetaXcut () const
 
float getMaxMoveThetaYcut () const
 
float getMaxMoveThetaZcut () const
 
float getMaxMoveXcut () const
 
float getMaxMoveYcut () const
 
float getMaxMoveZcut () const
 
float getSigThetaXcut () const
 
float getSigThetaYcut () const
 
float getSigThetaZcut () const
 
float getSigXcut () const
 
float getSigYcut () const
 
float getSigZcut () const
 
float getThetaXcut () const
 
float getThetaYcut () const
 
float getThetaZcut () const
 
float getXcut () const
 
float getYcut () const
 
float getZcut () const
 
bool hasExtraDOF () const
 
virtual ~AlignPCLThreshold ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< coordThresholdsm_extraDOF
 
coordThresholds m_thetaXCoord
 
coordThresholds m_thetaYCoord
 
coordThresholds m_thetaZCoord
 
coordThresholds m_xCoord
 
coordThresholds m_yCoord
 
coordThresholds m_zCoord
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 6 of file AlignPCLThreshold.h.

Constructor & Destructor Documentation

◆ ~AlignPCLThreshold()

virtual AlignPCLThreshold::~AlignPCLThreshold ( )
inlinevirtual

Definition at line 35 of file AlignPCLThreshold.h.

35 {}

◆ 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 at line 4 of file AlignPCLThreshold.cc.

10  {
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 };

References DOFs::extraDOF, m_extraDOF, m_thetaXCoord, m_thetaYCoord, m_thetaZCoord, m_xCoord, m_yCoord, m_zCoord, X, DOFs::Y, and DOFs::Z.

Member Function Documentation

◆ extraDOFSize()

unsigned int AlignPCLThreshold::extraDOFSize ( ) const
inline

Definition at line 74 of file AlignPCLThreshold.h.

74 { return m_extraDOF.size(); }

References m_extraDOF.

◆ getErrorThetaXcut()

float AlignPCLThreshold::getErrorThetaXcut ( ) const
inline

◆ getErrorThetaYcut()

float AlignPCLThreshold::getErrorThetaYcut ( ) const
inline

◆ getErrorThetaZcut()

float AlignPCLThreshold::getErrorThetaZcut ( ) const
inline

◆ getErrorXcut()

float AlignPCLThreshold::getErrorXcut ( ) const
inline

Definition at line 59 of file AlignPCLThreshold.h.

59 { return m_xCoord.m_errorCut; }

References AlignPCLThreshold::coordThresholds::m_errorCut, and m_xCoord.

◆ getErrorYcut()

float AlignPCLThreshold::getErrorYcut ( ) const
inline

Definition at line 60 of file AlignPCLThreshold.h.

60 { return m_yCoord.m_errorCut; }

References AlignPCLThreshold::coordThresholds::m_errorCut, and m_yCoord.

◆ getErrorZcut()

float AlignPCLThreshold::getErrorZcut ( ) const
inline

Definition at line 61 of file AlignPCLThreshold.h.

61 { return m_zCoord.m_errorCut; }

References AlignPCLThreshold::coordThresholds::m_errorCut, and m_zCoord.

◆ getExtraDOFCuts()

std::array< float, 4 > AlignPCLThreshold::getExtraDOFCuts ( const unsigned int  i) const

Definition at line 21 of file AlignPCLThreshold.cc.

21  {
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 }

References Exception, mps_fire::i, and m_extraDOF.

◆ getExtraDOFLabel()

std::string AlignPCLThreshold::getExtraDOFLabel ( const unsigned int  i) const

Definition at line 30 of file AlignPCLThreshold.cc.

30  {
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 }

References Exception, mps_fire::i, and m_extraDOF.

◆ getMaxMoveThetaXcut()

float AlignPCLThreshold::getMaxMoveThetaXcut ( ) const
inline

◆ getMaxMoveThetaYcut()

float AlignPCLThreshold::getMaxMoveThetaYcut ( ) const
inline

◆ getMaxMoveThetaZcut()

float AlignPCLThreshold::getMaxMoveThetaZcut ( ) const
inline

◆ getMaxMoveXcut()

float AlignPCLThreshold::getMaxMoveXcut ( ) const
inline

Definition at line 66 of file AlignPCLThreshold.h.

66 { return m_xCoord.m_maxMoveCut; }

References AlignPCLThreshold::coordThresholds::m_maxMoveCut, and m_xCoord.

◆ getMaxMoveYcut()

float AlignPCLThreshold::getMaxMoveYcut ( ) const
inline

Definition at line 67 of file AlignPCLThreshold.h.

67 { return m_yCoord.m_maxMoveCut; }

References AlignPCLThreshold::coordThresholds::m_maxMoveCut, and m_yCoord.

◆ getMaxMoveZcut()

float AlignPCLThreshold::getMaxMoveZcut ( ) const
inline

Definition at line 68 of file AlignPCLThreshold.h.

68 { return m_zCoord.m_maxMoveCut; }

References AlignPCLThreshold::coordThresholds::m_maxMoveCut, and m_zCoord.

◆ getSigThetaXcut()

float AlignPCLThreshold::getSigThetaXcut ( ) const
inline

Definition at line 55 of file AlignPCLThreshold.h.

55 { return m_thetaXCoord.m_sigCut; }

References AlignPCLThreshold::coordThresholds::m_sigCut, and m_thetaXCoord.

◆ getSigThetaYcut()

float AlignPCLThreshold::getSigThetaYcut ( ) const
inline

Definition at line 56 of file AlignPCLThreshold.h.

56 { return m_thetaYCoord.m_sigCut; }

References AlignPCLThreshold::coordThresholds::m_sigCut, and m_thetaYCoord.

◆ getSigThetaZcut()

float AlignPCLThreshold::getSigThetaZcut ( ) const
inline

Definition at line 57 of file AlignPCLThreshold.h.

57 { return m_thetaZCoord.m_sigCut; }

References AlignPCLThreshold::coordThresholds::m_sigCut, and m_thetaZCoord.

◆ getSigXcut()

float AlignPCLThreshold::getSigXcut ( ) const
inline

Definition at line 52 of file AlignPCLThreshold.h.

52 { return m_xCoord.m_sigCut; }

References AlignPCLThreshold::coordThresholds::m_sigCut, and m_xCoord.

◆ getSigYcut()

float AlignPCLThreshold::getSigYcut ( ) const
inline

Definition at line 53 of file AlignPCLThreshold.h.

53 { return m_yCoord.m_sigCut; }

References AlignPCLThreshold::coordThresholds::m_sigCut, and m_yCoord.

◆ getSigZcut()

float AlignPCLThreshold::getSigZcut ( ) const
inline

Definition at line 54 of file AlignPCLThreshold.h.

54 { return m_zCoord.m_sigCut; }

References AlignPCLThreshold::coordThresholds::m_sigCut, and m_zCoord.

◆ getThetaXcut()

float AlignPCLThreshold::getThetaXcut ( ) const
inline

Definition at line 48 of file AlignPCLThreshold.h.

48 { return m_thetaXCoord.m_Cut; }

References AlignPCLThreshold::coordThresholds::m_Cut, and m_thetaXCoord.

◆ getThetaYcut()

float AlignPCLThreshold::getThetaYcut ( ) const
inline

Definition at line 49 of file AlignPCLThreshold.h.

49 { return m_thetaYCoord.m_Cut; }

References AlignPCLThreshold::coordThresholds::m_Cut, and m_thetaYCoord.

◆ getThetaZcut()

float AlignPCLThreshold::getThetaZcut ( ) const
inline

Definition at line 50 of file AlignPCLThreshold.h.

50 { return m_thetaZCoord.m_Cut; }

References AlignPCLThreshold::coordThresholds::m_Cut, and m_thetaZCoord.

◆ getXcut()

float AlignPCLThreshold::getXcut ( ) const
inline

Definition at line 45 of file AlignPCLThreshold.h.

45 { return m_xCoord.m_Cut; }

References AlignPCLThreshold::coordThresholds::m_Cut, and m_xCoord.

◆ getYcut()

float AlignPCLThreshold::getYcut ( ) const
inline

Definition at line 46 of file AlignPCLThreshold.h.

46 { return m_yCoord.m_Cut; }

References AlignPCLThreshold::coordThresholds::m_Cut, and m_yCoord.

◆ getZcut()

float AlignPCLThreshold::getZcut ( ) const
inline

Definition at line 47 of file AlignPCLThreshold.h.

47 { return m_zCoord.m_Cut; }

References AlignPCLThreshold::coordThresholds::m_Cut, and m_zCoord.

◆ hasExtraDOF()

bool AlignPCLThreshold::hasExtraDOF ( ) const
inline

Definition at line 73 of file AlignPCLThreshold.h.

73 { return (!m_extraDOF.empty()); }

References m_extraDOF.

◆ serialize()

template<class Archive >
void AlignPCLThreshold::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 87 of file AlignPCLThreshold.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 87 of file AlignPCLThreshold.h.

Member Data Documentation

◆ m_extraDOF

std::vector<coordThresholds> AlignPCLThreshold::m_extraDOF
private

◆ m_thetaXCoord

coordThresholds AlignPCLThreshold::m_thetaXCoord
private

◆ m_thetaYCoord

coordThresholds AlignPCLThreshold::m_thetaYCoord
private

◆ m_thetaZCoord

coordThresholds AlignPCLThreshold::m_thetaZCoord
private

◆ m_xCoord

coordThresholds AlignPCLThreshold::m_xCoord
private

◆ m_yCoord

coordThresholds AlignPCLThreshold::m_yCoord
private

◆ m_zCoord

coordThresholds AlignPCLThreshold::m_zCoord
private
mps_fire.i
i
Definition: mps_fire.py:355
X
#define X(str)
Definition: MuonsGrabber.cc:38
AlignPCLThreshold::m_thetaXCoord
coordThresholds m_thetaXCoord
Definition: AlignPCLThreshold.h:82
AlignPCLThreshold::coordThresholds::m_errorCut
float m_errorCut
Definition: AlignPCLThreshold.h:28
AlignPCLThreshold::coordThresholds::m_Cut
float m_Cut
Definition: AlignPCLThreshold.h:26
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_sigCut
float m_sigCut
Definition: AlignPCLThreshold.h:27
AlignPCLThreshold::m_zCoord
coordThresholds m_zCoord
Definition: AlignPCLThreshold.h:81
DOFs::Z
Definition: AlignPCLThresholdsWriter.cc:37
AlignPCLThreshold::coordThresholds::m_maxMoveCut
float m_maxMoveCut
Definition: AlignPCLThreshold.h:29
DOFs::Y
Definition: AlignPCLThresholdsWriter.cc:37
Exception
Definition: hltDiff.cc:246
AlignPCLThreshold::m_yCoord
coordThresholds m_yCoord
Definition: AlignPCLThreshold.h:80
AlignPCLThreshold::m_extraDOF
std::vector< coordThresholds > m_extraDOF
Definition: AlignPCLThreshold.h:85
AlignPCLThreshold::m_thetaYCoord
coordThresholds m_thetaYCoord
Definition: AlignPCLThreshold.h:83