CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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> truthMatches; // SimHit projection matching propagated track trajectory
14  std::vector<reco::MuonRPCHitMatch> rpcMatches; // rpc hits matching propagated track trajectory
15  float edgeX; // distance to closest edge in X (negative - inside, positive - outside)
16  float edgeY; // distance to closest edge in Y (negative - inside, positive - outside)
17  float x; // X position of the track
18  float y; // Y position of the track
19  float xErr; // propagation uncertainty in X
20  float yErr; // propagation uncertainty in Y
21  float dXdZ; // dX/dZ of the track
22  float dYdZ; // dY/dZ of the track
23  float dXdZErr; // propagation uncertainty in dX/dZ
24  float dYdZErr; // propagation uncertainty in dY/dZ
25  DetId id; // chamber ID
26 
27  int detector() const { return id.subdetId(); }
28  int station() const;
29 
30  std::pair<float,float> getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const;
31  float dist() const { return getDistancePair(edgeX, edgeY, xErr, yErr).first; } // distance to absolute closest edge
32  float distErr() const { return getDistancePair(edgeX, edgeY, xErr, yErr).second; } // propagation uncertainty in above distance
33  };
34 }
35 
36 #endif
std::vector< reco::MuonSegmentMatch > truthMatches
std::vector< reco::MuonRPCHitMatch > rpcMatches
Definition: DetId.h:20
std::vector< reco::MuonSegmentMatch > segmentMatches
std::pair< float, float > getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const