Go to the documentation of this file.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 "DataFormats/MuonReco/interface/MuonRPCHitMatch.h"
00007 #include <vector>
00008
00009 namespace reco {
00010 class MuonChamberMatch {
00011 public:
00012 std::vector<reco::MuonSegmentMatch> segmentMatches;
00013 std::vector<reco::MuonSegmentMatch> truthMatches;
00014 std::vector<reco::MuonRPCHitMatch> rpcMatches;
00015 float edgeX;
00016 float edgeY;
00017 float x;
00018 float y;
00019 float xErr;
00020 float yErr;
00021 float dXdZ;
00022 float dYdZ;
00023 float dXdZErr;
00024 float dYdZErr;
00025 DetId id;
00026
00027 int detector() const { return id.subdetId(); }
00028 int station() const;
00029
00030 std::pair<float,float> getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const;
00031 float dist() const { return getDistancePair(edgeX, edgeY, xErr, yErr).first; }
00032 float distErr() const { return getDistancePair(edgeX, edgeY, xErr, yErr).second; }
00033 };
00034 }
00035
00036 #endif