File indexing completed on 2025-01-09 23:33:54
0001 #ifndef RecoMuon_MuonSeedGenerator_MuonDTSeedFromRecHits_H
0002 #define RecoMuon_MuonSeedGenerator_MuonDTSeedFromRecHits_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
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
0027
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
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