CMS 3D CMS Logo

MuonMvaEstimator.h
Go to the documentation of this file.
1 #ifndef __PhysicsTools_PatAlgos_MuonMvaEstimator__
2 #define __PhysicsTools_PatAlgos_MuonMvaEstimator__
3 
5 
6 #include <memory>
7 #include <string>
8 
9 class GBRForest;
10 
11 namespace pat {
12  class Muon;
13 }
14 
15 namespace reco {
16  class JetCorrector;
17  class Vertex;
18 }
19 
20 namespace pat {
22  public:
23 
24  MuonMvaEstimator(const std::string& weightsfile, float dRmax);
25 
27 
28  float computeMva(const pat::Muon& imuon,
29  const reco::Vertex& vertex,
31  float& jetPtRatio,
32  float& jetPtRel,
33  const reco::JetCorrector* correctorL1=nullptr,
34  const reco::JetCorrector* correctorL1L2L3Res=nullptr) const;
35 
36  private:
37 
38  std::unique_ptr<const GBRForest> gbrForest_;
39  float dRmax_;
40 
42  float pt_ = 0.0;
43  float eta_ = 0.0;
44  float jetNDauCharged_ = 0.0;
45  float miniRelIsoCharged_ = 0.0;
46  float miniRelIsoNeutral_ = 0.0;
47  float jetPtRel_ = 0.0;
48  float jetPtRatio_ = 0.0;
49  float jetBTagCSV_ = 0.0;
50  float sip_ = 0.0;
51  float log_abs_dxyBS_ = 0.0;
52  float log_abs_dzPV_ = 0.0;
53  float segmentCompatibility_ = 0.0;
54  };
55 }
56 #endif
Definition: HeavyIon.h:7
Definition: Muon.py:1
fixed size matrix
std::unique_ptr< const GBRForest > gbrForest_
Analysis-level muon class.
Definition: Muon.h:50