Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:03

0001 #ifndef RecoMuon_MuonSeedGenerator_MuonDTSeedFromRecHits_H
0002 #define RecoMuon_MuonSeedGenerator_MuonDTSeedFromRecHits_H
0003 
0004 /**  \class MuonDTSeedFromRecHits
0005  *
0006  *  \author A. Vitelli - INFN Torino
0007  *  
0008  *  \author porting R.Bellan - INFN Torino
0009  *
0010  *   Generate a seed starting from a list of RecHits 
0011  *   make use of TrajectorySeed from CommonDet
0012  *
0013  */
0014 
0015 #include "RecoMuon/TrackingTools/interface/MuonSeedFromRecHits.h"
0016 
0017 #include <vector>
0018 
0019 class MuonDTSeedFromRecHits : public MuonSeedFromRecHits {
0020 public:
0021   MuonDTSeedFromRecHits();
0022 
0023   virtual TrajectorySeed seed() const;
0024 
0025   ConstMuonRecHitPointer bestBarrelHit(const MuonRecHitContainer& barrelHits) const;
0026   // was
0027   // TrackingRecHit best_cand() const;
0028 
0029 private:
0030   void computePtWithVtx(double* pt, double* spt) const;
0031   void computePtWithoutVtx(double* pt, double* spt) const;
0032   void computeBestPt(double* pt, double* spt, float& ptmean, float& sptmean) const;
0033 
0034   // picks the segment that's nearest in eta to the most other segments
0035   float bestEta() const;
0036   void computeMean(
0037       const double* pt, const double* weights, int sz, bool tossOutlyers, float& ptmean, float& sptmean) const;
0038 };
0039 
0040 #endif