CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DataFormats/RecoCandidate/interface/RecoChargedRefCandidate.h

Go to the documentation of this file.
00001 #ifndef RecoCandidate_RecoChargedRefCandidate_h
00002 #define RecoCandidate_RecoChargedRefCandidate_h
00003 
00004 #include "DataFormats/Candidate/interface/LeafRefCandidateT.h"
00005 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00006 #include "DataFormats/TrackReco/interface/Track.h"
00007 
00008 namespace reco {
00009 
00010 
00011   typedef LeafRefCandidateT<TrackRef> RecoChargedRefCandidateBase;
00012   
00013 
00014   class RecoChargedRefCandidate : public  RecoChargedRefCandidateBase {
00015   public:
00016     RecoChargedRefCandidate() : LeafRefCandidateT<TrackRef>() {}
00017     RecoChargedRefCandidate(TrackRef ref, float m) : LeafRefCandidateT<TrackRef>( ref, m) {}
00018     
00019     ~RecoChargedRefCandidate() {};
00020 
00021     reco::TrackRef const & track() const {
00022       return ref_;
00023     }
00024   };
00025 }
00026 
00027 #endif