CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonResidualsFromTrack.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsFromTrack_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResidualsFromTrack_H
3 
23 
24 #include "TMatrixDSym.h"
25 #include "TMatrixD.h"
26 
27 #include <vector>
28 #include <map>
29 
31 
33 {
34 public:
35  // residuals from global muon trajectories
37  const Trajectory *traj,
38  const reco::Track* trk,
39  AlignableNavigator *navigator, double maxResidual);
40 
41  // residuals from tracker muons
43  const reco::Muon *mu,
44  AlignableNavigator *navigator,
45  double maxResidual);
46 
48 
49  void clear();
50 
51  const reco::Track *getTrack() { return track; }
52 
53  int trackerNumHits() const { return m_tracker_numHits; }
54 
55  double trackerChi2() const { return m_tracker_chi2; }
56  double trackerRedChi2() const;
57  double normalizedChi2() const;
58 
59  bool contains_TIDTEC() const { return m_contains_TIDTEC; }
60 
61  const std::vector<DetId> chamberIds() const { return m_chamberIds; }
62 
64 
65  TMatrixDSym covMatrix(DetId chamberId);
66  TMatrixDSym corrMatrix(DetId chamberId);
67  TMatrixD choleskyCorrMatrix(DetId chamberId);
68 
69 private:
71 
75 
76  std::vector<DetId> m_chamberIds;
77  std::map<DetId,MuonChamberResidual*> m_dt13, m_dt2, m_csc;
78  std::map<DetId,TMatrixDSym> m_trkCovMatrix;
79 
81 
82  // pointer to its track
84 
85  // track muon
86  const reco::Muon *muon;
87 };
88 
89 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsFromTrack_H
type
Definition: HCALResponse.h:21
std::vector< DetId > m_chamberIds
std::map< DetId, MuonChamberResidual * > m_dt2
TMatrixDSym covMatrix(DetId chamberId)
std::map< DetId, MuonChamberResidual * > m_csc
const std::vector< DetId > chamberIds() const
MuonResidualsFromTrack(edm::ESHandle< GlobalTrackingGeometry > globalGeometry, const Trajectory *traj, const reco::Track *trk, AlignableNavigator *navigator, double maxResidual)
const reco::Track * getTrack()
TMatrixDSym corrMatrix(DetId chamberId)
const int mu
Definition: Constants.h:22
Definition: DetId.h:18
std::map< DetId, TMatrixDSym > m_trkCovMatrix
TMatrixD choleskyCorrMatrix(DetId chamberId)
void addTrkCovMatrix(DetId, TrajectoryStateOnSurface &)
std::map< DetId, MuonChamberResidual * > m_dt13
TrajectoryStateCombiner m_tsoscomb
MuonChamberResidual * chamberResidual(DetId chamberId, int type)