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.45 by ceballos, Fri May 4 16:36:39 2012 UTC vs.
Revision 1.53 by fabstoec, Thu Jul 12 17:04:56 2012 UTC

# Line 50 | Line 50 | namespace mithep
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 73 | 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; }
78 <      void               SetMuonMVAWeightsSubdet1Pt10To14p5(TString s)  
79 <                         { fMuonMVAWeights_Subdet1Pt10To14p5  = s; }
80 <      void               SetMuonMVAWeightsSubdet0Pt14p5To20(TString s)  
81 <                         { fMuonMVAWeights_Subdet0Pt14p5To20  = s; }
82 <      void               SetMuonMVAWeightsSubdet1Pt14p5To20(TString s)
83 <                         { fMuonMVAWeights_Subdet1Pt14p5To20 = s; }
84 <      void               SetMuonMVAWeightsSubdet0Pt20ToInf(TString s)
85 <                         { fMuonMVAWeights_Subdet0Pt20ToInf = s; }
86 <      void               SetMuonMVAWeightsSubdet1Pt20ToInf(TString s)
87 <                         { fMuonMVAWeights_Subdet1Pt20ToInf = s; }
88 <
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 <      
84 >
85        enum EMuIdType {
86          kIdUndef = 0,       //not defined
87          kWMuId,             //"WMuId"
# Line 100 | 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 110 | 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          kPFRadialIso,                       //"PFRadialIso"
110 <        kPFIsoEffectiveAreaCorrected,       //"PFIso with EffectiveArea Pileup Correction"
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"
115 <        kIsoRingsV0_BDTG_Iso                //"BDTG Iso Rings"
115 >        kIsoRingsV0_BDTG_Iso,               //"BDTG Iso Rings"
116 >        kIsoDeltaR                          //"BGDT Iso dR"              
117        };
118        enum EMuClassType {
119          kClassUndef = 0,    //not defined
# Line 129 | 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 146 | 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 170 | Line 167 | namespace mithep
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 177 | Line 175 | namespace mithep
175        const PileupEnergyDensityCol *fPileupEnergyDensity;
176        MuonTools          *fMuonTools;           // interface to tools for muon ID
177        MuonIDMVA          *fMuonIDMVA;           // helper class for MuonMVA
180      TString             fMuonMVAWeights_Subdet0Pt10To14p5;
181      TString             fMuonMVAWeights_Subdet1Pt10To14p5;
182      TString             fMuonMVAWeights_Subdet0Pt14p5To20;
183      TString             fMuonMVAWeights_Subdet1Pt14p5To20;
184      TString             fMuonMVAWeights_Subdet0Pt20ToInf;
185      TString             fMuonMVAWeights_Subdet1Pt20ToInf;
178  
179        RhoUtilities::RhoType fTheRhoType;
180        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines