CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::vector< float > computeMVAID(const pat::Muon &imuon) const
std::unique_ptr< const cms::Ort::ONNXRuntime > randomForest_
static void fillDescriptions(edm::ConfigurationDescriptions &)
Analysis-level muon class.
Definition: Muon.h:51