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

Comparing UserCode/MitPhysics/Utils/interface/JetIDMVA.h (file contents):
Revision 1.3 by pharris, Sat Apr 7 09:36:32 2012 UTC vs.
Revision 1.8 by pharris, Tue Jun 12 09:43:53 2012 UTC

# Line 21 | Line 21
21   #include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
22   #include "MitCommon/MathTools/interface/MathUtils.h"
23  
24 + // for Rho definitons
25 + #include "MitPhysics/Utils/interface/RhoUtilities.h"
26 +
27   class TRandom3;
28   namespace TMVA {
29    class Reader;
# Line 33 | Line 36 | namespace mithep {
36        ~JetIDMVA();
37  
38        enum MVAType {
39 <        kBaseline = 0
39 >        kBaseline = 0,
40 >        k42       = 1,
41 >        k52       = 2,
42 >        kCut      = 3
43        };
44  
45        enum CutType {
46          kTight     = 0,
47          kMedium    = 1,
48 <        kLoose     = 2
48 >        kLoose     = 2,
49 >        kMET       = 3
50        };
51  
52        void     Initialize(JetIDMVA::CutType iCutType,
# Line 65 | Line 72 | namespace mithep {
72                          Float_t iFrac02  ,
73                          Float_t iFrac03  ,
74                          Float_t iFrac04  ,
75 <                        Float_t iFrac05  
75 >                        Float_t iFrac05  ,
76 >                        Float_t iDR2Mean
77                          );
78 +      //Cut Based
79 +      Bool_t passCut(const PFJet *iJet,const Vertex *iVertex,const VertexCol *iVertices);
80  
81 +      Bool_t passPt(const PFJet *iJet, FactorizedJetCorrector *iJetCorrector=0,
82 +                    const PileupEnergyDensityCol *iPileupEnergyDensity=0,
83 +                    RhoUtilities::RhoType type=RhoUtilities::DEFAULT);
84        //UNcorrected Jets
85        Bool_t   pass(const PFJet *iJet,const Vertex *iVertex,const VertexCol *iVertices,
86                      FactorizedJetCorrector *iJetCorrector,
87 <                    const PileupEnergyDensityCol *iPileupEnergyDensity);
88 <      
87 >                    const PileupEnergyDensityCol *iPileupEnergyDensity,
88 >                    RhoUtilities::RhoType type = RhoUtilities::DEFAULT);
89 >
90        //Corrected Jets
91        Bool_t   pass(const PFJet *iJet,const Vertex *iVertex,const VertexCol *iVertices);
92                                          
# Line 88 | Line 102 | namespace mithep {
102  
103  
104        double  correctedPt(const PFJet *iJet, FactorizedJetCorrector *iJetCorrector,
105 <                          const PileupEnergyDensityCol *iPUEnergyDensity);
105 >                          const PileupEnergyDensityCol *iPUEnergyDensity,
106 >                          RhoUtilities::RhoType type = RhoUtilities::DEFAULT);
107  
108        Float_t                  fJetPtMin;
109        Float_t                  fDZCut;
110  
111      protected:      
112        TMVA::Reader            *fReader;
113 +      TMVA::Reader            *fLowPtReader;
114        TString                  fLowPtMethodName;
115        TString                  fHighPtMethodName;
116        MVAType                  fType;
117        CutType                  fCutType;
118        Bool_t                   fIsInitialized;
119        Float_t                  fMVACut[4][4]; //Fix the cut array
120 <
120 >      Float_t                  fRMSCut[4][4];
121 >      Float_t                  fBetaStarCut[4][4];
122 >      
123        Float_t fNVtx     ;
124        Float_t fJPt1     ;
125        Float_t fJEta1    ;
# Line 118 | Line 136 | namespace mithep {
136        Float_t fFrac03   ;
137        Float_t fFrac04   ;
138        Float_t fFrac05   ;
139 +      Float_t fDR2Mean  ;
140  
141        ClassDef(JetIDMVA,0)
142          };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines