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.42 by ceballos, Sat Apr 28 19:10:00 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               SetPrintMVADebugInfo(Bool_t b)       { fPrintMVADebugInfo = b;     }
50        void               SetApplyD0Cut(Bool_t b)              { fApplyD0Cut        = b;     }
51        void               SetApplyDZCut(Bool_t b)              { fApplyDZCut        = b;     }
52        void               SetCaloIsoCut(Double_t cut)          { fCaloIsolationCut  = cut;   }
# Line 65 | Line 69 | namespace mithep
69        void               SetPtMin(Double_t pt)                { fMuonPtMin         = pt;    }
70        void               SetTrackIsoCut(Double_t cut)         { fTrackIsolationCut = cut;   }
71        void               SetIntRadius(Double_t dr)            { fIntRadius = dr;            }
72 +      void               SetMuonMVAWeightsSubdet0Pt10To14p5(TString s)  
73 +                         { fMuonMVAWeights_Subdet0Pt10To14p5  = s; }
74 +      void               SetMuonMVAWeightsSubdet1Pt10To14p5(TString s)  
75 +                         { fMuonMVAWeights_Subdet1Pt10To14p5  = s; }
76 +      void               SetMuonMVAWeightsSubdet0Pt14p5To20(TString s)  
77 +                         { fMuonMVAWeights_Subdet0Pt14p5To20  = s; }
78 +      void               SetMuonMVAWeightsSubdet1Pt14p5To20(TString s)
79 +                         { fMuonMVAWeights_Subdet1Pt14p5To20 = s; }
80 +      void               SetMuonMVAWeightsSubdet0Pt20ToInf(TString s)
81 +                         { fMuonMVAWeights_Subdet0Pt20ToInf = s; }
82 +      void               SetMuonMVAWeightsSubdet1Pt20ToInf(TString s)
83 +                         { fMuonMVAWeights_Subdet1Pt20ToInf = s; }
84  
85        enum EMuIdType {
86          kIdUndef = 0,       //not defined
# Line 74 | Line 90 | namespace mithep
90          kLoose,             //"Loose"
91          kWWMuIdV1,          //"WWMuIdV1"
92          kWWMuIdV2,          //"WWMuIdV2"
93 <        kNoId,              //"NoId"
94 <        kCustomId           //"Custom"
93 >        kWWMuIdV3,          //"WWMuIdV3"
94 >        kNoId,              //"NoId"        
95 >        kCustomId,          //"Custom"
96 >        kMVAID_BDTG_IDIso   //"BDTG ID + Iso03, Iso04 Combined"
97        };
98        enum EMuIsoType {
99          kIsoUndef = 0,                      //"not defined"
# Line 84 | Line 102 | namespace mithep
102          kTrackCaloSliding,                  //"TrackCaloSliding"
103          kTrackCaloSlidingNoCorrection,      //"TrackCaloSlidingNoCorrection"
104          kCombinedRelativeConeAreaCorrected, //"CombinedRelativeConeAreaCorrected"
105 +        kCombinedRelativeEffectiveAreaCorrected,
106          kCustomIso,                         //"Custom"
107          kPFIso,                             //"PFIso"
108 +        kPFRadialIso,                       //"PFRadialIso"
109 +        kPFIsoEffectiveAreaCorrected,       //"PFIso with EffectiveArea Pileup Correction"
110          kPFIsoNoL,                          //"PFIsoNoL"
111 <        kNoIso                              //"NoIso"
111 >        kNoIso,                             //"NoIso"
112 >        kMVAIso_BDTG_IDIso                  //"BDTG ID + Iso03, Iso04 Combined"
113        };
114        enum EMuClassType {
115          kClassUndef = 0,    //not defined
# Line 98 | Line 120 | namespace mithep
120          kTrackerMuon,       //"TrackerMuon"
121          kCaloMuon,          //"CaloMuon"
122          kTrackerBased       //"TrackerMuon or CaloMuon"
123 +
124        };
125  
126      protected:
127        void               Process();
128        void               SlaveBegin();
129  
130 +      Bool_t             fPrintMVADebugInfo;   //print MVA debug information
131        TString            fMuonBranchName;      //name of muon collection (input)
132        TString            fCleanMuonsName;      //name of exported "good muon" collection
133        TString            fNonIsolatedMuonsName;    //name of imported "old muon" collection
# Line 135 | Line 159 | namespace mithep
159        const BeamSpotCol *fBeamSpot;            //!beamspot branch
160        const TrackCol    *fTracks;              //!track branch    
161        const PFCandidateCol *fPFCandidates;     //!pfcandidate branch
162 +      const PFCandidateCol *fPFNoPileUpCands;  //!pfnpu collection
163        Double_t           fIntRadius;           //!min IntRadius cut in pf isolation
164        MuonCol            *fNonIsolatedMuons;    //!pointer to old muon collection
165        ElectronCol        *fNonIsolatedElectrons;//!pointer to old electron collection
166        TString             fPileupEnergyDensityName;
167        const PileupEnergyDensityCol *fPileupEnergyDensity;
168 +      MuonTools          *fMuonTools;           // interface to tools for muon ID
169 +      MuonIDMVA          *fMuonIDMVA;           // helper class for MuonMVA
170 +      TString             fMuonMVAWeights_Subdet0Pt10To14p5;
171 +      TString             fMuonMVAWeights_Subdet1Pt10To14p5;
172 +      TString             fMuonMVAWeights_Subdet0Pt14p5To20;
173 +      TString             fMuonMVAWeights_Subdet1Pt14p5To20;
174 +      TString             fMuonMVAWeights_Subdet0Pt20ToInf;
175 +      TString             fMuonMVAWeights_Subdet1Pt20ToInf;
176  
177      ClassDef(MuonIDMod, 1) // Muon identification module
178    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines