CMS 3D CMS Logo

MuonMvaEstimator.h
Go to the documentation of this file.
1 #ifndef __PhysicsTools_PatAlgos_MuonMvaEstimator__
2 #define __PhysicsTools_PatAlgos_MuonMvaEstimator__
6 #include "TMVA/Reader.h"
7 
8 namespace reco {
9  class JetCorrector;
10 }
11 namespace pat {
13  public:
15  void initialize(std::string weightsfile,
16  float dRmax);
17  void computeMva(const pat::Muon& imuon,
18  const reco::Vertex& vertex,
20  const reco::JetCorrector* correctorL1=nullptr,
21  const reco::JetCorrector* correctorL1L2L3Res=nullptr);
22  float mva() const {return mva_;}
23  float jetPtRatio() const {return jetPtRatio_;}
24  float jetPtRel() const {return jetPtRel_;}
25  private:
26  TMVA::Reader tmvaReader_;
28  float mva_;
29  float dRmax_;
30 
32  float pt_;
33  float eta_;
37  float jetPtRel_;
38  float jetPtRatio_;
39  float jetBTagCSV_;
40  float sip_;
42  float log_abs_dzPV_;
44  };
45 }
46 #endif
static AlgebraicMatrix initialize()
Definition: HeavyIon.h:7
float jetPtRatio() const
float pt_
MVA VAriables.
fixed size matrix
float jetPtRel() const
Analysis-level muon class.
Definition: Muon.h:50