CMS 3D CMS Logo

SoftMuonMvaEstimator.h
Go to the documentation of this file.
1 #ifndef __PhysicsTools_PatAlgos_SoftMuonMvaEstimator__
2 #define __PhysicsTools_PatAlgos_SoftMuonMvaEstimator__
3 
4 #include <memory>
5 #include <string>
6 
7 class GBRForest;
8 
9 namespace pat {
10  class Muon;
11 }
12 
13 namespace pat {
15  public:
16 
17  SoftMuonMvaEstimator(const std::string& weightsfile);
18 
20 
21  float computeMva(const pat::Muon& imuon) const;
22 
23  private:
24 
25  std::unique_ptr<const GBRForest> gbrForest_;
26 
27  // MVA VAriables
28  float segmentCompatibility_ = 0.0;
29  float chi2LocalMomentum_ = 0.0;
30  float chi2LocalPosition_ = 0.0;
31  float glbTrackProbability_ = 0.0;
32  float iValidFraction_ = 0.0;
34  float trkKink_ = 0.0;
35  float log2PlusGlbKink_ = 0.0;
36  float timeAtIpInOutErr_ = 0.0;
37  float outerChi2_ = 0.0;
38  float innerChi2_ = 0.0;
39  float trkRelChi2_ = 0.0;
40  float vMuonHitComb_ = 0.0;
41  float qProd_ = 0.0;
42 
43  // MVA Spectator
44  float pID_ = 0.0;
45  float pt_ = 0.0;
46  float eta_ = 0.0;
47  float momID_ = 0.0;
48 
49  };
50 }
51 #endif
Definition: HeavyIon.h:7
SoftMuonMvaEstimator(const std::string &weightsfile)
Definition: Muon.py:1
std::unique_ptr< const GBRForest > gbrForest_
float computeMva(const pat::Muon &imuon) const
Analysis-level muon class.
Definition: Muon.h:50