CMS 3D CMS Logo

SeedMvaEstimator.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackerSeedGenerator_SeedMvaEstimator_h
2 #define RecoMuon_TrackerSeedGenerator_SeedMvaEstimator_h
3 
9 
11 
14 
15 #include <memory>
16 
17 class GBRForest;
18 
19 namespace edm {
20  class FileInPath;
21 }
22 
23 namespace {
24  enum inputIndexes {
25  kTsosErr0, // 0
26  kTsosErr2, // 1
27  kTsosErr5, // 2
28  kTsosDxdz, // 3
29  kTsosDydz, // 4
30  kTsosQbp, // 5
31  kDRdRL1SeedP, // 6
32  kDPhidRL1SeedP, // 7
33  kLastL1, // 8
34 
35  kDRdRL2SeedP = 8, // 8
36  kDPhidRL2SeedP, // 9
37  kLastL2, // 10
38  };
39 } // namespace
40 
42 public:
43  SeedMvaEstimator(const edm::FileInPath& weightsfile,
44  const std::vector<double>& scale_mean,
45  const std::vector<double>& scale_std,
46  const bool isFromL1,
47  const int minL1Qual);
49 
50  double computeMva(const TrajectorySeed&,
51  const GlobalVector&,
52  const l1t::MuonBxCollection&,
54 
55 private:
56  std::unique_ptr<const GBRForest> gbrForest_;
57  const std::vector<float> scale_mean_;
58  std::vector<float> scale_istd_;
59  const bool isFromL1_;
60  const int minL1Qual_;
61 
62  void getL1MuonVariables(const GlobalVector&, const l1t::MuonBxCollection&, float&, float&) const;
63  void getL2MuonVariables(const GlobalVector&, const reco::RecoChargedCandidateCollection&, float&, float&) const;
64 };
65 #endif
SeedMvaEstimator(const edm::FileInPath &weightsfile, const std::vector< double > &scale_mean, const std::vector< double > &scale_std, const bool isFromL1, const int minL1Qual)
const bool isFromL1_
std::unique_ptr< const GBRForest > gbrForest_
const std::vector< float > scale_mean_
void getL2MuonVariables(const GlobalVector &, const reco::RecoChargedCandidateCollection &, float &, float &) const
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
void getL1MuonVariables(const GlobalVector &, const l1t::MuonBxCollection &, float &, float &) const
HLT enums.
std::vector< float > scale_istd_
double computeMva(const TrajectorySeed &, const GlobalVector &, const l1t::MuonBxCollection &, const reco::RecoChargedCandidateCollection &) const