CMS 3D CMS Logo

MuonMvaIDEstimator.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatAlgos_MuonMvaIDEstimator_h
2 #define PhysicsTools_PatAlgos_MuonMvaIDEstimator_h
3 
4 #include <memory>
5 #include <string>
10 //
11 
12 namespace pat {
13  class Muon;
14 }
15 
16 namespace edm {
17  class FileInPath;
18 }
19 
20 namespace pat {
22  public:
23  MuonMvaIDEstimator(const edm::FileInPath &weightsfile);
24  ~MuonMvaIDEstimator() = default;
25 
27  static void globalEndJob(const cms::Ort::ONNXRuntime *);
28  std::vector<float> computeMVAID(const pat::Muon &imuon) const;
29 
30  private:
31  std::vector<std::string> flav_names_; // names of the output scores
32  std::vector<std::string> input_names_; // names of each input group - the ordering is important!
33  std::unique_ptr<const cms::Ort::ONNXRuntime> randomForest_;
34  };
35 }; // namespace pat
36 #endif
MuonMvaIDEstimator(const edm::FileInPath &weightsfile)
std::vector< std::string > input_names_
std::vector< std::string > flav_names_
static void globalEndJob(const cms::Ort::ONNXRuntime *)
std::unique_ptr< const cms::Ort::ONNXRuntime > randomForest_
static void fillDescriptions(edm::ConfigurationDescriptions &)
std::vector< float > computeMVAID(const pat::Muon &imuon) const
Definition: HeavyIon.h:7
Definition: Muon.py:1
HLT enums.
Analysis-level muon class.
Definition: Muon.h:51