CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
double computeMva(const TrajectorySeed &, const GlobalVector &, const l1t::MuonBxCollection &, const reco::RecoChargedCandidateCollection &) const
const bool isFromL1_
std::unique_ptr< const GBRForest > gbrForest_
void getL1MuonVariables(const GlobalVector &, const l1t::MuonBxCollection &, float &, float &) const
const std::vector< double > scale_mean_
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
const std::vector< double > scale_std_
void getL2MuonVariables(const GlobalVector &, const reco::RecoChargedCandidateCollection &, float &, float &) const