00001 #ifndef MuonReco_MuonChamberMatch_h
00002 #define MuonReco_MuonChamberMatch_h
00003
00004 #include "DataFormats/DetId/interface/DetId.h"
00005 #include "DataFormats/MuonReco/interface/MuonSegmentMatch.h"
00006 #include <vector>
00007
00008 namespace reco {
00009 class MuonChamberMatch {
00010 public:
00011 std::vector<reco::MuonSegmentMatch> segmentMatches;
00012 std::vector<reco::MuonSegmentMatch> truthMatches;
00013 float edgeX;
00014 float edgeY;
00015 float x;
00016 float y;
00017 float xErr;
00018 float yErr;
00019 float dXdZ;
00020 float dYdZ;
00021 float dXdZErr;
00022 float dYdZErr;
00023 DetId id;
00024
00025 int detector() const { return id.subdetId(); }
00026 int station() const;
00027
00028 std::pair<float,float> getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const;
00029 float dist() const { return getDistancePair(edgeX, edgeY, xErr, yErr).first; }
00030 float distErr() const { return getDistancePair(edgeX, edgeY, xErr, yErr).second; }
00031 };
00032 }
00033
00034 #endif