CMS 3D CMS Logo

MuonResidualsFromTrack.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsFromTrack_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResidualsFromTrack_H
3 
24 
28 
32 
37 //#include "TrackingTools/PatternTools/interface/Trajectory.h"
39 
43 
44 #include "TMatrixDSym.h"
45 #include "TMatrixD.h"
46 
47 #include <vector>
48 #include <map>
49 
51 
53 public:
54  // residuals from global muon trajectories
58  edm::ESHandle<DetIdAssociator> muonDetIdAssociator_,
60  const Trajectory *traj,
61  const reco::Track *recoTrack,
63  double maxResidual);
64 
65  // residuals from tracker muons
67  const reco::Muon *recoMuon,
69  double maxResidual);
70 
72 
73  void clear();
74 
75  const reco::Track *getTrack() { return m_recoTrack; }
76  const reco::Muon *getMuon() { return m_recoMuon; }
77 
78  int trackerNumHits() const { return m_tracker_numHits; }
79 
80  double trackerChi2() const { return m_tracker_chi2; }
81  double trackerRedChi2() const;
82  double normalizedChi2() const;
83 
84  bool contains_TIDTEC() const { return m_contains_TIDTEC; }
85 
86  const std::vector<DetId> chamberIds() const { return m_chamberIds; }
87 
89 
90  TMatrixDSym covMatrix(DetId chamberId);
91  TMatrixDSym corrMatrix(DetId chamberId);
92  TMatrixD choleskyCorrMatrix(DetId chamberId);
93 
94 private:
96 
100 
101  std::vector<DetId> m_chamberIds;
102  std::map<DetId, MuonChamberResidual *> m_dt13, m_dt2, m_csc;
103  std::map<DetId, TMatrixDSym> m_trkCovMatrix;
104 
106 
107  // pointer to its track
109 
110  // track muon
112 };
113 
114 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsFromTrack_H
TrajectoryStateCombiner.h
Propagator.h
MuonResidualsFromTrack::trackerRedChi2
double trackerRedChi2() const
Definition: MuonResidualsFromTrack.cc:722
TrajectoryStateOnSurface.h
MuonResidualsFromTrack::choleskyCorrMatrix
TMatrixD choleskyCorrMatrix(DetId chamberId)
Definition: MuonResidualsFromTrack.cc:826
Muon.h
MessageLogger.h
ESHandle.h
MuonResidualsFromTrack::m_recoMuon
const reco::Muon * m_recoMuon
Definition: MuonResidualsFromTrack.h:111
MuonResidualsFromTrack::m_dt2
std::map< DetId, MuonChamberResidual * > m_dt2
Definition: MuonResidualsFromTrack.h:102
HLT_FULL_cff.navigator
navigator
Definition: HLT_FULL_cff.py:13126
TransientRecHitRecord.h
MuonResidualsFromTrack::chamberResidual
MuonChamberResidual * chamberResidual(DetId chamberId, int type)
Definition: MuonResidualsFromTrack.cc:735
MuonResidualsFromTrack::trackerNumHits
int trackerNumHits() const
Definition: MuonResidualsFromTrack.h:78
MuonResidualsFromTrack::m_csc
std::map< DetId, MuonChamberResidual * > m_csc
Definition: MuonResidualsFromTrack.h:102
MuonResidualsFromTrack::trackerChi2
double trackerChi2() const
Definition: MuonResidualsFromTrack.h:80
TransientTrack.h
HLT_FULL_cff.magneticField
magneticField
Definition: HLT_FULL_cff.py:348
MuonResidualsFromTrack::clear
void clear()
Definition: MuonResidualsFromTrack.cc:711
MuonResidualsFromTrack::addTrkCovMatrix
void addTrkCovMatrix(DetId, TrajectoryStateOnSurface &)
Definition: MuonResidualsFromTrack.cc:752
CSCDetId.h
reco::Muon
Definition: Muon.h:27
recoMuon
Definition: RecoMuonEnumerators.h:4
MuonResidualsFromTrack::m_chamberIds
std::vector< DetId > m_chamberIds
Definition: MuonResidualsFromTrack.h:101
DetId
Definition: DetId.h:17
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
Track.h
TrackFwd.h
MuonFwd.h
reco::Track
Definition: Track.h:27
MuonResidualsFromTrack
Definition: MuonResidualsFromTrack.h:52
edm::ESHandle< MagneticField >
MuonResidualsFromTrack::getTrack
const reco::Track * getTrack()
Definition: MuonResidualsFromTrack.h:75
MuonResidualsFromTrack::getMuon
const reco::Muon * getMuon()
Definition: MuonResidualsFromTrack.h:76
TrajectoryFitter.h
MuonResidualsFromTrack::chamberIds
const std::vector< DetId > chamberIds() const
Definition: MuonResidualsFromTrack.h:86
MuonResidualsFromTrack::corrMatrix
TMatrixDSym corrMatrix(DetId chamberId)
Definition: MuonResidualsFromTrack.cc:808
MuonResidualsFromTrack::normalizedChi2
double normalizedChi2() const
Definition: MuonResidualsFromTrack.cc:729
AlignableNavigator.h
MuonResidualsFromTrack::m_tracker_numHits
int m_tracker_numHits
Definition: MuonResidualsFromTrack.h:97
DTChamberId.h
MuonChamberResidual.h
AlignableNavigator
Definition: AlignableNavigator.h:25
TrajectoryStateCombiner
Definition: TrajectoryStateCombiner.h:13
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
MuonChamberResidual
Definition: MuonChamberResidual.h:26
MuonResidualsFromTrack::contains_TIDTEC
bool contains_TIDTEC() const
Definition: MuonResidualsFromTrack.h:84
edm::EventSetup
Definition: EventSetup.h:58
MuonResidualsFromTrack::MuonResidualsFromTrack
MuonResidualsFromTrack(const edm::EventSetup &iSetup, edm::ESHandle< MagneticField > magneticField, edm::ESHandle< GlobalTrackingGeometry > globalGeometry, edm::ESHandle< DetIdAssociator > muonDetIdAssociator_, edm::ESHandle< Propagator > prop, const Trajectory *traj, const reco::Track *recoTrack, AlignableNavigator *navigator, double maxResidual)
Definition: MuonResidualsFromTrack.cc:22
TrajectorySmoother.h
MuonResidualsFromTrack::m_tracker_chi2
double m_tracker_chi2
Definition: MuonResidualsFromTrack.h:98
Trajectory.h
MuonResidualsFromTrack::covMatrix
TMatrixDSym covMatrix(DetId chamberId)
Definition: MuonResidualsFromTrack.cc:763
DetId.h
Trajectory
Definition: Trajectory.h:38
DetIdAssociator.h
TrackingComponentsRecord.h
MuonResidualsFromTrack::m_tsoscomb
TrajectoryStateCombiner m_tsoscomb
Definition: MuonResidualsFromTrack.h:95
EventSetup.h
Exception.h
TransientTrackingRecHitBuilder.h
MuonResidualsFromTrack::m_dt13
std::map< DetId, MuonChamberResidual * > m_dt13
Definition: MuonResidualsFromTrack.h:102
MuonResidualsFromTrack::m_contains_TIDTEC
bool m_contains_TIDTEC
Definition: MuonResidualsFromTrack.h:99
ParameterSet.h
DTSuperLayerId.h
GlobalTrackingGeometry.h
MuonResidualsFromTrack::~MuonResidualsFromTrack
~MuonResidualsFromTrack()
Definition: MuonResidualsFromTrack.cc:696
StripSubdetector.h
MuonResidualsFromTrack::m_trkCovMatrix
std::map< DetId, TMatrixDSym > m_trkCovMatrix
Definition: MuonResidualsFromTrack.h:103
MuonResidualsFromTrack::m_recoTrack
const reco::Track * m_recoTrack
Definition: MuonResidualsFromTrack.h:108