CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/RecoMuon/MuonSeedGenerator/src/MuonDTSeedFromRecHits.h

Go to the documentation of this file.
00001 #ifndef RecoMuon_MuonSeedGenerator_MuonDTSeedFromRecHits_H
00002 #define RecoMuon_MuonSeedGenerator_MuonDTSeedFromRecHits_H
00003 
00015 #include "RecoMuon/TrackingTools/interface/MuonSeedFromRecHits.h"
00016 
00017 #include <vector>
00018 
00019 
00020 class MuonDTSeedFromRecHits : public MuonSeedFromRecHits
00021 {
00022   public:
00023   MuonDTSeedFromRecHits();
00024 
00025   virtual TrajectorySeed seed() const;
00026 
00027   ConstMuonRecHitPointer bestBarrelHit(const MuonRecHitContainer & barrelHits) const;
00028   // was
00029   // TrackingRecHit best_cand() const;
00030 
00031 private:
00032   void computePtWithVtx(double* pt, double* spt) const;
00033   void computePtWithoutVtx(double* pt, double* spt) const;
00034   void computeBestPt(double* pt, double* spt, float& ptmean, float& sptmean) const;
00035 
00036   // picks the segment that's nearest in eta to the most other segments
00037   float bestEta() const;
00038   void computeMean(const double* pt, const double * weights, int sz,
00039                    bool tossOutlyers, float& ptmean, float & sptmean) const;
00040 
00041 };
00042 
00043 #endif