#include <MuonChamberResidual.h>
Abstract base class for muon chamber residulas
Definition at line 24 of file MuonChamberResidual.h.
anonymous enum |
Definition at line 28 of file MuonChamberResidual.h.
MuonChamberResidual::MuonChamberResidual | ( | edm::ESHandle< GlobalTrackingGeometry > | globalGeometry, |
AlignableNavigator * | navigator, | ||
DetId | chamberId, | ||
AlignableDetOrUnitPtr | chamberAlignable | ||
) |
Definition at line 14 of file MuonChamberResidual.cc.
: m_globalGeometry(globalGeometry) , m_navigator(navigator) , m_chamberId(chamberId) , m_chamberAlignable(chamberAlignable) , m_numHits(0) , m_type(-1) , m_sign(0.) , m_chi2(-999.) , m_ndof(-1) , m_residual(-999.) , m_residual_error(-999.) , m_resslope(-999.) , m_resslope_error(-999.) , m_trackdxdz(-999.) , m_trackdydz(-999.) , m_trackx(-999.) , m_tracky(-999.) , m_segdxdz(-999.) , m_segdydz(-999.) , m_segx(-999.) , m_segy(-999.) {}
virtual MuonChamberResidual::~MuonChamberResidual | ( | ) | [inline, virtual] |
Definition at line 37 of file MuonChamberResidual.h.
{}
virtual void MuonChamberResidual::addResidual | ( | const TrajectoryStateOnSurface * | , |
const TransientTrackingRecHit * | |||
) | [pure virtual] |
AlignableDetOrUnitPtr MuonChamberResidual::chamberAlignable | ( | ) | const [inline] |
Definition at line 51 of file MuonChamberResidual.h.
References m_chamberAlignable.
Referenced by global_stubpos(), global_trackpos(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), and AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack().
{ return m_chamberAlignable; }
DetId MuonChamberResidual::chamberId | ( | ) | const [inline] |
Definition at line 49 of file MuonChamberResidual.h.
References m_chamberId.
Referenced by MuonTrackCSCChamberResidual::setSegmentResidual().
{ return m_chamberId; }
double MuonChamberResidual::chi2 | ( | ) | const [inline] |
Definition at line 60 of file MuonChamberResidual.h.
References m_chi2.
Referenced by MuonAlignmentFromReference::processMuonResidualsFromTrack(), and AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().
{ return m_chi2; }
double MuonChamberResidual::global_hitresid | ( | int | i | ) | const |
Definition at line 66 of file MuonChamberResidual.cc.
References hitresid(), and signConvention().
{ return hitresid(i) * signConvention(); }
double MuonChamberResidual::global_residual | ( | ) | const |
Definition at line 54 of file MuonChamberResidual.cc.
References residual(), and signConvention().
Referenced by AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack(), and AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().
{ return residual() * signConvention(); }
double MuonChamberResidual::global_resslope | ( | ) | const |
Definition at line 60 of file MuonChamberResidual.cc.
References resslope(), and signConvention().
Referenced by AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack(), and AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().
{ return resslope() * signConvention(); }
align::GlobalPoint MuonChamberResidual::global_stubpos | ( | ) |
Definition at line 48 of file MuonChamberResidual.cc.
References chamberAlignable(), segx(), and segy().
Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().
{ return chamberAlignable()->surface().toGlobal(align::LocalPoint(segx(), segy(), 0.)); }
align::GlobalPoint MuonChamberResidual::global_trackpos | ( | ) |
Definition at line 42 of file MuonChamberResidual.cc.
References chamberAlignable(), trackx(), and tracky().
Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().
{ return chamberAlignable()->surface().toGlobal(align::LocalPoint(trackx(), tracky(), 0.)); }
int MuonChamberResidual::hitlayer | ( | int | i | ) | const |
Definition at line 79 of file MuonChamberResidual.cc.
References CSC(), GeomDetEnumerators::DT, DTLayerId::layer(), CSCDetId::layer(), m_chamberId, m_localIDs, DetId::subdetId(), and DTSuperLayerId::superlayer().
{ // only difference between DTs and CSCs is the DetId subclass assert(0 <= i && i < int(m_localIDs.size())); if (m_chamberId.subdetId() == MuonSubdetId::DT) { DTLayerId layerId(m_localIDs[i].rawId()); return 4*(layerId.superlayer() - 1) + layerId.layer(); } else if (m_chamberId.subdetId() == MuonSubdetId::CSC) { CSCDetId layerId(m_localIDs[i].rawId()); return layerId.layer(); } else assert(false); }
double MuonChamberResidual::hitposition | ( | int | i | ) | const |
Definition at line 94 of file MuonChamberResidual.cc.
References CSC(), GeomDetEnumerators::DT, m_chamberId, m_globalGeometry, m_localIDs, pos, funct::pow(), mathSSE::sqrt(), DetId::subdetId(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
{ assert(0 <= i && i < int(m_localIDs.size())); if (m_chamberId.subdetId() == MuonSubdetId::DT) { align::GlobalPoint pos = m_globalGeometry->idToDet(m_localIDs[i])->position(); return sqrt(pow(pos.x(), 2) + pow(pos.y(), 2)); // R for DTs } else if (m_chamberId.subdetId() == MuonSubdetId::CSC) { return m_globalGeometry->idToDet(m_localIDs[i])->position().z(); // Z for CSCs } else assert(false); }
double MuonChamberResidual::hitresid | ( | int | i | ) | const |
Definition at line 72 of file MuonChamberResidual.cc.
References i, m_localIDs, and m_localResids.
Referenced by global_hitresid().
{ assert(0 <= i && i < int(m_localIDs.size())); return m_localResids[i]; }
DetId MuonChamberResidual::localid | ( | int | i | ) | const [inline] |
Definition at line 83 of file MuonChamberResidual.h.
References i, and m_localIDs.
{ return m_localIDs[i]; }
int MuonChamberResidual::ndof | ( | ) | const [inline] |
Definition at line 61 of file MuonChamberResidual.h.
References m_ndof.
Referenced by MuonAlignmentFromReference::processMuonResidualsFromTrack(), and AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().
{ return m_ndof; }
int MuonChamberResidual::numHits | ( | ) | const [inline] |
Definition at line 53 of file MuonChamberResidual.h.
References m_numHits.
Referenced by MuonAlignmentFromReference::processMuonResidualsFromTrack(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), and AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack().
{ return m_numHits; }
double MuonChamberResidual::residual | ( | ) | const [inline] |
Definition at line 55 of file MuonChamberResidual.h.
References m_residual.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), global_residual(), and MuonAlignmentFromReference::processMuonResidualsFromTrack().
{ return m_residual; }
double MuonChamberResidual::residual_error | ( | ) | const [inline] |
Definition at line 56 of file MuonChamberResidual.h.
References m_residual_error.
{ return m_residual_error; }
double MuonChamberResidual::resslope | ( | ) | const [inline] |
Definition at line 57 of file MuonChamberResidual.h.
References m_resslope.
Referenced by global_resslope(), and MuonAlignmentFromReference::processMuonResidualsFromTrack().
{ return m_resslope; }
double MuonChamberResidual::resslope_error | ( | ) | const [inline] |
Definition at line 58 of file MuonChamberResidual.h.
References m_resslope_error.
{ return m_resslope_error; }
double MuonChamberResidual::segdxdz | ( | ) | const [inline] |
double MuonChamberResidual::segdydz | ( | ) | const [inline] |
double MuonChamberResidual::segx | ( | ) | const [inline] |
Definition at line 70 of file MuonChamberResidual.h.
References m_segx.
Referenced by global_stubpos().
{ return m_segx; }
double MuonChamberResidual::segy | ( | ) | const [inline] |
Definition at line 71 of file MuonChamberResidual.h.
References m_segy.
Referenced by global_stubpos().
{ return m_segy; }
virtual void MuonChamberResidual::setSegmentResidual | ( | const reco::MuonChamberMatch * | , |
const reco::MuonSegmentMatch * | |||
) | [pure virtual] |
virtual double MuonChamberResidual::signConvention | ( | ) | const [inline, virtual] |
Definition at line 47 of file MuonChamberResidual.h.
References m_sign.
Referenced by global_hitresid(), global_residual(), and global_resslope().
{return m_sign; }
double MuonChamberResidual::trackdxdz | ( | ) | const [inline] |
Definition at line 63 of file MuonChamberResidual.h.
References m_trackdxdz.
Referenced by MuonAlignmentFromReference::processMuonResidualsFromTrack().
{ return m_trackdxdz; }
double MuonChamberResidual::trackdydz | ( | ) | const [inline] |
Definition at line 64 of file MuonChamberResidual.h.
References m_trackdydz.
Referenced by MuonAlignmentFromReference::processMuonResidualsFromTrack().
{ return m_trackdydz; }
double MuonChamberResidual::trackx | ( | ) | const [inline] |
Definition at line 65 of file MuonChamberResidual.h.
References m_trackx.
Referenced by global_trackpos(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), and AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack().
{ return m_trackx; }
double MuonChamberResidual::tracky | ( | ) | const [inline] |
Definition at line 66 of file MuonChamberResidual.h.
References m_tracky.
Referenced by global_trackpos(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), and AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack().
{ return m_tracky; }
int MuonChamberResidual::type | ( | ) | const [inline] |
Definition at line 89 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), and chamberAlignable().
DetId MuonChamberResidual::m_chamberId [protected] |
Definition at line 88 of file MuonChamberResidual.h.
Referenced by chamberId(), hitlayer(), hitposition(), MuonCSCChamberResidual::MuonCSCChamberResidual(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonDT2ChamberResidual::MuonDT2ChamberResidual(), MuonTrackCSCChamberResidual::MuonTrackCSCChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), and MuonTrackDT2ChamberResidual::MuonTrackDT2ChamberResidual().
double MuonChamberResidual::m_chi2 [protected] |
Definition at line 100 of file MuonChamberResidual.h.
Referenced by chi2(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
Definition at line 86 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), hitposition(), MuonCSCChamberResidual::MuonCSCChamberResidual(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonDT2ChamberResidual::MuonDT2ChamberResidual(), MuonTrackCSCChamberResidual::MuonTrackCSCChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), and MuonTrackDT2ChamberResidual::MuonTrackDT2ChamberResidual().
std::vector<double> MuonChamberResidual::m_individual_weight [protected] |
Definition at line 96 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), and MuonHitsChamberResidual::segment_fit().
std::vector<double> MuonChamberResidual::m_individual_x [protected] |
Definition at line 94 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), and MuonHitsChamberResidual::segment_fit().
std::vector<double> MuonChamberResidual::m_individual_y [protected] |
Definition at line 95 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), and MuonHitsChamberResidual::segment_fit().
std::vector<DetId> MuonChamberResidual::m_localIDs [protected] |
Definition at line 92 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), hitlayer(), hitposition(), hitresid(), and localid().
std::vector<double> MuonChamberResidual::m_localResids [protected] |
Definition at line 93 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), and hitresid().
AlignableNavigator* MuonChamberResidual::m_navigator [protected] |
Definition at line 87 of file MuonChamberResidual.h.
int MuonChamberResidual::m_ndof [protected] |
Definition at line 101 of file MuonChamberResidual.h.
Referenced by ndof(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
int MuonChamberResidual::m_numHits [protected] |
Definition at line 91 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), numHits(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_residual [protected] |
Definition at line 102 of file MuonChamberResidual.h.
Referenced by residual(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_residual_error [protected] |
Definition at line 103 of file MuonChamberResidual.h.
Referenced by residual_error(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_resslope [protected] |
Definition at line 104 of file MuonChamberResidual.h.
Referenced by resslope(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_resslope_error [protected] |
Definition at line 105 of file MuonChamberResidual.h.
Referenced by resslope_error(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_segdxdz [protected] |
Definition at line 110 of file MuonChamberResidual.h.
Referenced by segdxdz(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_segdydz [protected] |
Definition at line 111 of file MuonChamberResidual.h.
Referenced by segdydz(), MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_segx [protected] |
Definition at line 112 of file MuonChamberResidual.h.
Referenced by MuonHitsChamberResidual::segment_fit(), segx(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_segy [protected] |
Definition at line 113 of file MuonChamberResidual.h.
Referenced by MuonHitsChamberResidual::segment_fit(), segy(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), and MuonTrackDT13ChamberResidual::setSegmentResidual().
double MuonChamberResidual::m_sign [protected] |
Definition at line 99 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::MuonCSCChamberResidual(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonDT2ChamberResidual::MuonDT2ChamberResidual(), MuonTrackCSCChamberResidual::MuonTrackCSCChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), MuonTrackDT2ChamberResidual::MuonTrackDT2ChamberResidual(), and signConvention().
double MuonChamberResidual::m_trackdxdz [protected] |
Definition at line 106 of file MuonChamberResidual.h.
Referenced by MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), MuonTrackDT13ChamberResidual::setSegmentResidual(), and trackdxdz().
double MuonChamberResidual::m_trackdydz [protected] |
Definition at line 107 of file MuonChamberResidual.h.
Referenced by MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), MuonTrackDT13ChamberResidual::setSegmentResidual(), and trackdydz().
double MuonChamberResidual::m_trackx [protected] |
Definition at line 108 of file MuonChamberResidual.h.
Referenced by MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), MuonTrackDT13ChamberResidual::setSegmentResidual(), and trackx().
double MuonChamberResidual::m_tracky [protected] |
Definition at line 109 of file MuonChamberResidual.h.
Referenced by MuonHitsChamberResidual::segment_fit(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), MuonTrackDT13ChamberResidual::setSegmentResidual(), and tracky().
int MuonChamberResidual::m_type [protected] |
Definition at line 98 of file MuonChamberResidual.h.
Referenced by MuonCSCChamberResidual::MuonCSCChamberResidual(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonDT2ChamberResidual::MuonDT2ChamberResidual(), MuonTrackCSCChamberResidual::MuonTrackCSCChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), MuonTrackDT2ChamberResidual::MuonTrackDT2ChamberResidual(), and type().