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 
24 public:
25  SeedMvaEstimator(const edm::FileInPath& weightsfile,
26  const std::vector<double>& scale_mean,
27  const std::vector<double>& scale_std,
28  const bool isFromL1,
29  const int minL1Qual);
31 
32  double computeMva(const TrajectorySeed&,
33  const GlobalVector&,
34  const l1t::MuonBxCollection&,
36 
37 private:
38  std::unique_ptr<const GBRForest> gbrForest_;
39  const std::vector<double> scale_mean_;
40  const std::vector<double> scale_std_;
41  const bool isFromL1_;
42  const int minL1Qual_;
43 
44  void getL1MuonVariables(const GlobalVector&, const l1t::MuonBxCollection&, float&, float&) const;
45  void getL2MuonVariables(const GlobalVector&, const reco::RecoChargedCandidateCollection&, float&, float&) const;
46 };
47 #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< double > 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.
const std::vector< double > scale_std_
double computeMva(const TrajectorySeed &, const GlobalVector &, const l1t::MuonBxCollection &, const reco::RecoChargedCandidateCollection &) const