ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/EGEnergyCorrector.h
Revision: 1.3
Committed: Fri Sep 30 17:00:42 2011 UTC (13 years, 7 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025c, Mit_025b, Mit_025a, Mit_025
Changes since 1.2: +1 -1 lines
Log Message:
streamline handling of regression bdt weights

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id $
3     //
4     // EGEnergyCorrector
5     //
6     // Helper Class for photon Identification decisions.
7     //
8     // Authors: J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITPHYSICS_UTILS_EGEnergyCorrector_H
12     #define MITPHYSICS_UTILS_EGEnergyCorrector_H
13    
14     #include "MitAna/DataTree/interface/Photon.h"
15     #include "MitAna/DataTree/interface/PhotonCol.h"
16     #include "MitAna/DataTree/interface/TrackCol.h"
17     #include "MitAna/DataTree/interface/Electron.h"
18     #include "MitAna/DataTree/interface/ElectronCol.h"
19     #include "MitAna/DataTree/interface/BaseVertex.h"
20     #include "MitAna/DataTree/interface/DecayParticleCol.h"
21     #include "MitAna/DataTree/interface/VertexCol.h"
22     #include "MitAna/DataTree/interface/BeamSpotCol.h"
23     #include "MitAna/DataTree/interface/TriggerObjectCol.h"
24     #include "MitAna/DataTree/interface/MCParticleCol.h"
25     #include "MitAna/DataTree/interface/SuperCluster.h"
26     #include "MitAna/DataTree/interface/SuperClusterCol.h"
27     #include "MitCommon/MathTools/interface/MathUtils.h"
28     #include "MitPhysics/Utils/interface/PhotonFix.h"
29     #include "MitPhysics/Utils/interface/PhotonTools.h"
30    
31    
32     class TRandom3;
33 bendavid 1.2 class GBRForest;
34     // namespace TMVA {
35     // class Reader;
36     // }
37    
38 bendavid 1.1
39     namespace mithep {
40     class EGEnergyCorrector {
41     public:
42     EGEnergyCorrector();
43     ~EGEnergyCorrector();
44    
45 bendavid 1.3 void Initialize(Bool_t ismc, TString phfixstring, TString phfixfile, TString regweights);
46 bendavid 1.1 Bool_t IsInitialized() const { return fIsInitialized; }
47    
48     void CorrectEnergyWithError(Photon *p);
49     std::pair<double,double> CorrectedEnergyWithError(const Photon *p);
50    
51     protected:
52     PhotonFix fPhFix;
53 bendavid 1.2 GBRForest *fReadereb;
54     GBRForest *fReaderebvariance;
55     GBRForest *fReaderee;
56     GBRForest *fReadereevariance;
57 bendavid 1.1
58     TString fMethodname;
59    
60     Bool_t fIsInitialized;
61     Bool_t fIsMC;
62 bendavid 1.2
63     Float_t *fVals;
64 bendavid 1.1
65     Float_t r9;
66     Float_t e5x5norm;
67     Float_t scrawe;
68     Float_t scpsenorm;
69     Float_t sceta;
70     Float_t scphi;
71     Float_t scetawidth;
72     Float_t scphiwidth;
73     Float_t hovere;
74     Float_t sigietaieta;
75     Float_t etac;
76     Float_t etas;
77     Float_t etam;
78     Float_t phic;
79     Float_t phis;
80     Float_t phim;
81     Float_t xz;
82     Float_t xc;
83     Float_t xs;
84     Float_t xm;
85     Float_t yz;
86     Float_t yc;
87     Float_t ys;
88     Float_t ym;
89    
90     Float_t fSpectator;
91    
92    
93     ClassDef(EGEnergyCorrector, 0) // Muon tools
94     };
95     }
96    
97     #endif