CMS 3D CMS Logo

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