CMS 3D CMS Logo

MuonChamberMatch.h
Go to the documentation of this file.
1 #ifndef MuonReco_MuonChamberMatch_h
2 #define MuonReco_MuonChamberMatch_h
3 
8 #include <vector>
9 
10 namespace reco {
12  public:
13  std::vector<reco::MuonSegmentMatch> segmentMatches; // segments matching propagated track trajectory
14  std::vector<reco::MuonSegmentMatch> gemMatches; // segments matching propagated track trajectory
15  std::vector<reco::MuonGEMHitMatch> gemHitMatches; // segments matching propagated track trajectory
16  std::vector<reco::MuonSegmentMatch> me0Matches; // segments matching propagated track trajectory
17  std::vector<reco::MuonSegmentMatch> truthMatches; // SimHit projection matching propagated track trajectory
18  std::vector<reco::MuonRPCHitMatch> rpcMatches; // rpc hits matching propagated track trajectory
19  float edgeX; // distance to closest edge in X (negative - inside, positive - outside)
20  float edgeY; // distance to closest edge in Y (negative - inside, positive - outside)
21  float x; // X position of the track
22  float y; // Y position of the track
23  float xErr; // propagation uncertainty in X
24  float yErr; // propagation uncertainty in Y
25  float dXdZ; // dX/dZ of the track
26  float dYdZ; // dY/dZ of the track
27  float dXdZErr; // propagation uncertainty in dX/dZ
28  float dYdZErr; // propagation uncertainty in dY/dZ
29  DetId id; // chamber ID
30 
31  int nDigisInRange; // # of DT/CSC digis in the chamber close-by to the propagated track
32 
33  int detector() const { return id.subdetId(); }
34  int station() const;
35 
36  std::pair<float, float> getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const;
37  float dist() const { return getDistancePair(edgeX, edgeY, xErr, yErr).first; } // distance to absolute closest edge
38  float distErr() const {
39  return getDistancePair(edgeX, edgeY, xErr, yErr).second;
40  } // propagation uncertainty in above distance
41  };
42 } // namespace reco
43 
44 #endif
std::pair< float, float > getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const
std::vector< reco::MuonSegmentMatch > gemMatches
std::vector< reco::MuonGEMHitMatch > gemHitMatches
std::vector< reco::MuonSegmentMatch > truthMatches
std::vector< reco::MuonSegmentMatch > me0Matches
std::vector< reco::MuonRPCHitMatch > rpcMatches
Definition: DetId.h:17
std::vector< reco::MuonSegmentMatch > segmentMatches
fixed size matrix