ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
(Generate patch)

Comparing UserCode/MitPhysics/Mods/interface/MuonIDMod.h (file contents):
Revision 1.36 by ceballos, Fri Sep 16 14:09:17 2011 UTC vs.
Revision 1.40 by sixie, Mon Jan 23 20:08:30 2012 UTC

# Line 21 | Line 21
21   #include "MitAna/DataTree/interface/TrackFwd.h"
22   #include "MitAna/DataTree/interface/PFCandidateFwd.h"
23   #include "MitPhysics/Utils/interface/MuonTools.h"
24 + #include "MitPhysics/Utils/interface/MuonIDMVA.h"
25   #include "MitPhysics/Utils/interface/IsolationTools.h"
26   #include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
27  
# Line 43 | Line 44 | namespace mithep
44        const char        *GetOutputName()                const { return GetCleanMuonsName(); }  
45        Double_t           GetPtMin()                     const { return fMuonPtMin;          }
46        Double_t           GetTrackIsoCut()               const { return fTrackIsolationCut;  }
47 +      Bool_t             PassMuonMVA_BDTG_IdIso(const Muon *mu, const Vertex *vertex,
48 +                                                const PileupEnergyDensityCol *PileupEnergyDensity) const;
49        void               SetApplyD0Cut(Bool_t b)              { fApplyD0Cut        = b;     }
50        void               SetApplyDZCut(Bool_t b)              { fApplyDZCut        = b;     }
51        void               SetCaloIsoCut(Double_t cut)          { fCaloIsolationCut  = cut;   }
# Line 65 | Line 68 | namespace mithep
68        void               SetPtMin(Double_t pt)                { fMuonPtMin         = pt;    }
69        void               SetTrackIsoCut(Double_t cut)         { fTrackIsolationCut = cut;   }
70        void               SetIntRadius(Double_t dr)            { fIntRadius = dr;            }
71 +      void               SetMuonMVAWeightsSubdet0Pt10To14p5(TString s)  
72 +                         { fMuonMVAWeights_Subdet0Pt10To14p5  = s; }
73 +      void               SetMuonMVAWeightsSubdet1Pt10To14p5(TString s)  
74 +                         { fMuonMVAWeights_Subdet1Pt10To14p5  = s; }
75 +      void               SetMuonMVAWeightsSubdet0Pt14p5To20(TString s)  
76 +                         { fMuonMVAWeights_Subdet0Pt14p5To20  = s; }
77 +      void               SetMuonMVAWeightsSubdet1Pt14p5To20(TString s)
78 +                         { fMuonMVAWeights_Subdet1Pt14p5To20 = s; }
79 +      void               SetMuonMVAWeightsSubdet0Pt20ToInf(TString s)
80 +                         { fMuonMVAWeights_Subdet0Pt20ToInf = s; }
81 +      void               SetMuonMVAWeightsSubdet1Pt20ToInf(TString s)
82 +                         { fMuonMVAWeights_Subdet1Pt20ToInf = s; }
83  
84        enum EMuIdType {
85          kIdUndef = 0,       //not defined
# Line 74 | Line 89 | namespace mithep
89          kLoose,             //"Loose"
90          kWWMuIdV1,          //"WWMuIdV1"
91          kWWMuIdV2,          //"WWMuIdV2"
92 <        kNoId,              //"NoId"
93 <        kCustomId           //"Custom"
92 >        kWWMuIdV3,          //"WWMuIdV3"
93 >        kNoId,              //"NoId"        
94 >        kCustomId,          //"Custom"
95 >        kMVAID_BDTG_IDIso   //"BDTG ID + Iso03, Iso04 Combined"
96        };
97        enum EMuIsoType {
98          kIsoUndef = 0,                      //"not defined"
# Line 84 | Line 101 | namespace mithep
101          kTrackCaloSliding,                  //"TrackCaloSliding"
102          kTrackCaloSlidingNoCorrection,      //"TrackCaloSlidingNoCorrection"
103          kCombinedRelativeConeAreaCorrected, //"CombinedRelativeConeAreaCorrected"
104 +        kCombinedRelativeEffectiveAreaCorrected,
105          kCustomIso,                         //"Custom"
106          kPFIso,                             //"PFIso"
107 +        kPFIsoEffectiveAreaCorrected,       //"PFIso with EffectiveArea Pileup Correction"
108          kPFIsoNoL,                          //"PFIsoNoL"
109 <        kNoIso                              //"NoIso"
109 >        kNoIso,                             //"NoIso"
110 >        kMVAIso_BDTG_IDIso                  //"BDTG ID + Iso03, Iso04 Combined"
111        };
112        enum EMuClassType {
113          kClassUndef = 0,    //not defined
# Line 98 | Line 118 | namespace mithep
118          kTrackerMuon,       //"TrackerMuon"
119          kCaloMuon,          //"CaloMuon"
120          kTrackerBased       //"TrackerMuon or CaloMuon"
121 +
122        };
123  
124      protected:
# Line 140 | Line 161 | namespace mithep
161        ElectronCol        *fNonIsolatedElectrons;//!pointer to old electron collection
162        TString             fPileupEnergyDensityName;
163        const PileupEnergyDensityCol *fPileupEnergyDensity;
164 +      MuonTools          *fMuonTools;           // interface to tools for muon ID
165 +      MuonIDMVA          *fMuonIDMVA;           // helper class for MuonMVA
166 +      TString             fMuonMVAWeights_Subdet0Pt10To14p5;
167 +      TString             fMuonMVAWeights_Subdet1Pt10To14p5;
168 +      TString             fMuonMVAWeights_Subdet0Pt14p5To20;
169 +      TString             fMuonMVAWeights_Subdet1Pt14p5To20;
170 +      TString             fMuonMVAWeights_Subdet0Pt20ToInf;
171 +      TString             fMuonMVAWeights_Subdet1Pt20ToInf;
172  
173      ClassDef(MuonIDMod, 1) // Muon identification module
174    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines