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

Comparing UserCode/MitPhysics/Utils/interface/PhotonTools.h (file contents):
Revision 1.11 by bendavid, Thu Sep 8 15:51:23 2011 UTC vs.
Revision 1.23 by fabstoec, Wed Jul 25 15:00:42 2012 UTC

# Line 26 | Line 26
26   #include "MitAna/DataTree/interface/SuperClusterCol.h"
27   #include "MitCommon/MathTools/interface/MathUtils.h"
28  
29 + #include "MitAna/DataTree/interface/PFCandidateCol.h"
30 +
31   class TRandom3;
32  
33   namespace mithep {
# Line 67 | Line 69 | namespace mithep {
69         kCiCCat3,
70         kCiCCat4
71       };    
72 +    
73 +     enum eScaleCats {
74 +       kEBlowEtaGoldCenter = 0,
75 +       kEBlowEtaGoldGap,
76 +       kEBlowEtaBad,
77 +       kEBhighEtaGold,
78 +       kEBhighEtaBad,
79 +       kEElowEtaGold,
80 +       kEElowEtaBad,
81 +       kEEhighEtaGold,
82 +       kEEhighEtaBad
83 +     };
84 +    
85 +     enum ShowerShapeScales {
86 +       kNoShowerShapeScaling = 0,
87 +       k2011ShowerShape,
88 +       k2012ShowerShape
89 +     };
90 +
91 +    static eScaleCats EScaleCat(const Photon *p);
92  
93      // Methods for scaling/smearing Photons
94      static void ScalePhoton(Photon* p, Double_t scale);
95      static void SmearPhoton(Photon* p, TRandom3* rng, Double_t width, UInt_t iSeed);
96      static void SmearPhotonError(Photon* p, Double_t width);
97 +    static void ScalePhotonR9(Photon *p, Double_t scale);
98 +    static void ScalePhotonError(Photon *p, Double_t scale);
99  
100 <    
100 >    static void ScalePhotonShowerShapes(Photon *p, ShowerShapeScales scale);
101 >
102 >
103 >    static Bool_t       PassSinglePhotonPresel(const Photon *p,const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *bs, const TrackCol* trackCol, const Vertex *vtx, double rho, Bool_t applyElectronVeto = kTRUE, Bool_t invertElectronVeto = kFALSE);
104 >    static Bool_t       PassSinglePhotonPreselPFISO(const Photon *p,const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *bs, const TrackCol* trackCol,const Vertex *vtx, double rho, const PFCandidateCol *fPFCands, Bool_t applyElectronVeto = kTRUE, Bool_t invertElectronVeto = kFALSE);
105      static Bool_t       PassConversionId(const Photon *p, const DecayParticle *c);
106      static Bool_t       PassElectronVeto(const Photon *p, const ElectronCol *els);
107      static Double_t     ElectronVetoCiC(const Photon *p, const ElectronCol *els);
# Line 101 | Line 129 | namespace mithep {
129      static const Electron *MatchedElectron(const Photon *p, const ElectronCol *els);
130      static const Photon *MatchedPhoton(const Electron *e, const PhotonCol *phs);
131      static const SuperCluster *MatchedSC(const SuperCluster *psc, const SuperClusterCol *scs, Double_t drMin=0.3);
132 <                                                    
132 >
133 >    static const SuperCluster *MatchedPFSC(const SuperCluster *psc, const PhotonCol *pfphos, const ElectronCol *eles, Double_t drMin=0.1);
134 >    
135      static bool PassCiCSelection(const Photon* ph,
136                                   const Vertex* vtx,
137                                   const TrackCol*    trackCol,
# Line 111 | Line 141 | namespace mithep {
141                                   bool applyEleVeto = true,
142                                   bool print = false, float* kin=NULL);
143  
144 <                                
145 <    static const MCParticle *MatchMC(const Particle *ph, const MCParticleCol *c, Bool_t matchElectrons = kFALSE);
144 >    static bool PassCiCPFIsoSelection(const Photon* ph,
145 >                                      const Vertex* vtx,
146 >                                      const PFCandidateCol*    pfCol,
147 >                                      const VertexCol*   vtxCol,
148 >                                      double rho, double ptmin,
149 >                                      std::vector<double>* kin = NULL);                                
150      
151 +    static bool PassVgamma2011Selection(const Photon* ph, double rho);
152 +
153 +    static const MCParticle *MatchMC(const Particle *ph, const MCParticleCol *c, Bool_t matchElectrons = kFALSE);
154      ClassDef(PhotonTools, 0) // Muon tools
155        };
156   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines