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.41 by sixie, Fri Jan 27 11:48:23 2012 UTC vs.
Revision 1.53 by fabstoec, Thu Jul 12 17:04:56 2012 UTC

# Line 25 | Line 25
25   #include "MitPhysics/Utils/interface/IsolationTools.h"
26   #include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
27  
28 + #include "MitPhysics/Utils/interface/RhoUtilities.h"
29 +
30   namespace mithep
31   {
32    class MuonIDMod : public BaseMod
# Line 46 | Line 48 | namespace mithep
48        Double_t           GetTrackIsoCut()               const { return fTrackIsolationCut;  }
49        Bool_t             PassMuonMVA_BDTG_IdIso(const Muon *mu, const Vertex *vertex,
50                                                  const PileupEnergyDensityCol *PileupEnergyDensity) const;
51 +      Bool_t             PassMuonIsoRingsV0_BDTG_Iso(const Muon *mu, const Vertex *vertex,
52 +                                                     const PileupEnergyDensityCol *PileupEnergyDensity) const;
53 +      Bool_t             PassMuonIsoDeltaR(const Muon *mu, const Vertex *vertex,
54 +                                           const PileupEnergyDensityCol *PileupEnergyDensity) const;
55        void               SetPrintMVADebugInfo(Bool_t b)       { fPrintMVADebugInfo = b;     }
56        void               SetApplyD0Cut(Bool_t b)              { fApplyD0Cut        = b;     }
57        void               SetApplyDZCut(Bool_t b)              { fApplyDZCut        = b;     }
# Line 69 | Line 75 | namespace mithep
75        void               SetPtMin(Double_t pt)                { fMuonPtMin         = pt;    }
76        void               SetTrackIsoCut(Double_t cut)         { fTrackIsolationCut = cut;   }
77        void               SetIntRadius(Double_t dr)            { fIntRadius = dr;            }
78 <      void               SetMuonMVAWeightsSubdet0Pt10To14p5(TString s)  
79 <                         { fMuonMVAWeights_Subdet0Pt10To14p5  = s; }
80 <      void               SetMuonMVAWeightsSubdet1Pt10To14p5(TString s)  
81 <                         { fMuonMVAWeights_Subdet1Pt10To14p5  = s; }
82 <      void               SetMuonMVAWeightsSubdet0Pt14p5To20(TString s)  
83 <                         { 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; }
78 >      void               SetPFNoPileUpName(const char *n)     { fPFNoPileUpName  = n;       }
79 >      void               SetPFPileUpName(const char *n)       { fPFPileUpName  = n;         }
80 >      void               SetRhoType(RhoUtilities::RhoType type)
81 >        { fTheRhoType = type; };
82 >
83 >      void               SetVertexName(const char* name) { fVertexName = name; }
84  
85        enum EMuIdType {
86          kIdUndef = 0,       //not defined
# Line 91 | Line 91 | namespace mithep
91          kWWMuIdV1,          //"WWMuIdV1"
92          kWWMuIdV2,          //"WWMuIdV2"
93          kWWMuIdV3,          //"WWMuIdV3"
94 +        kWWMuIdV4,          //"WWMuIdV4"
95          kNoId,              //"NoId"        
96          kCustomId,          //"Custom"
97          kMVAID_BDTG_IDIso   //"BDTG ID + Iso03, Iso04 Combined"
# Line 101 | Line 102 | namespace mithep
102          kTrackCaloCombined,                 //"TrackCaloCombined"
103          kTrackCaloSliding,                  //"TrackCaloSliding"
104          kTrackCaloSlidingNoCorrection,      //"TrackCaloSlidingNoCorrection"
105 <        kCombinedRelativeConeAreaCorrected, //"CombinedRelativeConeAreaCorrected"
106 <        kCombinedRelativeEffectiveAreaCorrected,
105 >        kCombinedRelativeConeAreaCorrected, //"CombinedRelativeConeAreaCorrected"        
106 >        kCombinedRelativeEffectiveAreaCorrected,
107          kCustomIso,                         //"Custom"
108          kPFIso,                             //"PFIso"
109 <        kPFIsoEffectiveAreaCorrected,       //"PFIso with EffectiveArea Pileup Correction"
109 >        kPFRadialIso,                       //"PFRadialIso"
110 >        kPFIsoBetaPUCorrected,              //"PFISo with PUcorrection using delta Beta
111 >        kPFIsoEffectiveAreaCorrected,       //"PFIso with EffectiveArea Pileup Correction"
112          kPFIsoNoL,                          //"PFIsoNoL"
113          kNoIso,                             //"NoIso"
114 <        kMVAIso_BDTG_IDIso                  //"BDTG ID + Iso03, Iso04 Combined"
114 >        kMVAIso_BDTG_IDIso,                 //"BDTG ID + Iso03, Iso04 Combined"
115 >        kIsoRingsV0_BDTG_Iso,               //"BDTG Iso Rings"
116 >        kIsoDeltaR                          //"BGDT Iso dR"              
117        };
118        enum EMuClassType {
119          kClassUndef = 0,    //not defined
# Line 118 | Line 123 | namespace mithep
123          kSta,               //"Standalone"
124          kTrackerMuon,       //"TrackerMuon"
125          kCaloMuon,          //"CaloMuon"
126 <        kTrackerBased       //"TrackerMuon or CaloMuon"
127 <
126 >        kTrackerBased,      //"TrackerMuon or CaloMuon"
127 >        kGlobalOnly         //"GlobalOnly"
128        };
129  
130      protected:
131        void               Process();
132        void               SlaveBegin();
133 +      void               Terminate();
134  
135        Bool_t             fPrintMVADebugInfo;   //print MVA debug information
136        TString            fMuonBranchName;      //name of muon collection (input)
# Line 135 | Line 141 | namespace mithep
141        TString            fBeamSpotName;        //name of beamspot collection
142        TString            fTrackName;           //name of track collection
143        TString            fPFCandidatesName;    //name of pfcandidates collection
144 +      TString            fPFNoPileUpName;  //name of pfnpu collection
145 +      TString            fPFPileUpName;    //name of pfpu collection
146        TString            fMuonIDType;          //type of muon id scheme we impose
147        TString            fMuonIsoType;         //type of muon isolations scheme we impose
148        TString            fMuonClassType;       //type of muon class we impose
# Line 158 | Line 166 | namespace mithep
166        const BeamSpotCol *fBeamSpot;            //!beamspot branch
167        const TrackCol    *fTracks;              //!track branch    
168        const PFCandidateCol *fPFCandidates;     //!pfcandidate branch
169 +      const PFCandidateCol *fPFNoPileUpCands;  //!pfnpu collection
170 +      const PFCandidateCol *fPFPileUpCands;    //!pfpu collection
171        Double_t           fIntRadius;           //!min IntRadius cut in pf isolation
172        MuonCol            *fNonIsolatedMuons;    //!pointer to old muon collection
173        ElectronCol        *fNonIsolatedElectrons;//!pointer to old electron collection
# Line 165 | Line 175 | namespace mithep
175        const PileupEnergyDensityCol *fPileupEnergyDensity;
176        MuonTools          *fMuonTools;           // interface to tools for muon ID
177        MuonIDMVA          *fMuonIDMVA;           // helper class for MuonMVA
168      TString             fMuonMVAWeights_Subdet0Pt10To14p5;
169      TString             fMuonMVAWeights_Subdet1Pt10To14p5;
170      TString             fMuonMVAWeights_Subdet0Pt14p5To20;
171      TString             fMuonMVAWeights_Subdet1Pt14p5To20;
172      TString             fMuonMVAWeights_Subdet0Pt20ToInf;
173      TString             fMuonMVAWeights_Subdet1Pt20ToInf;
178  
179 +      RhoUtilities::RhoType fTheRhoType;
180 +      
181      ClassDef(MuonIDMod, 1) // Muon identification module
182    };
183   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines