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

Comparing UserCode/MitPhysics/Utils/interface/MVAMet.h (file contents):
Revision 1.5 by pharris, Sat Apr 7 10:25:15 2012 UTC vs.
Revision 1.6 by pharris, Mon Apr 23 15:37:59 2012 UTC

# Line 8 | Line 8
8  
9   #ifndef MITPHYSICS_UTILS_MVAMet_H
10   #define MITPHYSICS_UTILS_MVAMet_H
11 <
11 > #include <TMatrixD.h>
12   #include "MitAna/DataTree/interface/PFJetFwd.h"
13   #include "MitAna/DataTree/interface/VertexFwd.h"
14   #include "MitAna/DataTree/interface/TrackFwd.h"
# Line 48 | Line 48 | namespace mithep {
48                         TString iJetCutFile   ="$CMSSW_BASE/src/MitPhysics/data/mva_RecoilPhiRegress_baseline.weights.xml",
49                         TString iU1Weights    ="$CMSSW_BASE/src/MitPhysics/data/gbrmet.root",
50                         TString iPhiWeights   ="$CMSSW_BASE/src/MitPhysics/data/gbrmetphi.root",
51 +                       TString iCovU1Weights   ="$CMSSW_BASE/src/MitPhysics/data/gbrcovu1_52.root",
52 +                       TString iCovU2Weights   ="$CMSSW_BASE/src/MitPhysics/data/gbrcovu2_52.root",
53                         MVAMet::MVAType  iType=kBaseline);
54          
55      Bool_t   IsInitialized() const { return fIsInitialized; }
56      Double_t evaluatePhi();
57      Double_t evaluateU1();
58 +    Double_t evaluateCovU1();
59 +    Double_t evaluateCovU2();
60      Double_t MVAValue(  bool iPhi,
61                          Float_t iPFSumEt,
62                          Float_t iU      ,
# Line 118 | Line 122 | namespace mithep {
122                          const PFJetCol         *iJets ,
123                          int iNPV,
124                          Bool_t printDebug=false);
125 <    
125 >
126 >    TMatrixD GetMetCovariance() { return fCov;         }
127 >    double   GetSignificance () { return fSignificance;}
128      RecoilTools *fRecoilTools;
129      
130    protected:
131      TString      fPhiMethodName;
132      TString      fU1MethodName;
133 +    TString      fCovU1MethodName;
134 +    TString      fCovU2MethodName;
135      Bool_t       fIsInitialized;
136      MVAType      fType;
137      
# Line 151 | Line 159 | namespace mithep {
159      Float_t fNAllJet;
160      Float_t fNPV    ;
161      Float_t fUPhiMVA;
162 +    Float_t fUMVA;
163      
164      Float_t* fPhiVals;
165      Float_t* fU1Vals;
166 <    
166 >    Float_t* fCovVals;
167      
168      GBRForest *fPhiReader;
169      GBRForest *fU1Reader;
170 +    GBRForest *fCovU1Reader;
171 +    GBRForest *fCovU2Reader;
172 +
173 +    Float_t  fSignificance;
174 +    TMatrixD fCov;
175 +
176      //TMVA::Reader* fPhiReader;
177      //TMVA::Reader* fU1Reader;
178      ClassDef(MVAMet,0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines