ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/PhotonTools.h
Revision: 1.2
Committed: Thu Apr 14 22:05:42 2011 UTC (14 years ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b
Changes since 1.1: +4 -1 lines
Log Message:
add conversion veto option for photon isolation

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id $
3 //
4 // PhotonTools
5 //
6 // Helper Class for photon Identification decisions.
7 //
8 // Authors: J.Bendavid
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPHYSICS_UTILS_PHOTONTOOLS_H
12 #define MITPHYSICS_UTILS_PHOTONTOOLS_H
13
14 #include "MitAna/DataTree/interface/Photon.h"
15 #include "MitAna/DataTree/interface/Electron.h"
16 #include "MitAna/DataTree/interface/ElectronCol.h"
17 #include "MitAna/DataTree/interface/BaseVertex.h"
18 #include "MitAna/DataTree/interface/DecayParticleCol.h"
19 #include "MitAna/DataTree/interface/VertexCol.h"
20 #include "MitAna/DataTree/interface/BeamSpotCol.h"
21 #include "MitAna/DataTree/interface/TriggerObjectCol.h"
22 #include "MitCommon/MathTools/interface/MathUtils.h"
23
24 namespace mithep {
25 class PhotonTools {
26 public:
27 PhotonTools();
28
29 enum DiphotonR9EtaCats {
30 kCat1 = 0, //barrel-barrel highr9/highr9
31 kCat2, //barrel-barrel highr9/lowr9+lowr9/lowr9
32 kCat3, //barrel-endcap+endcap/endcap highr9/highr9
33 kCat4 //barrel-endcap+endcap-endcap highr9/lowr9 + lowr9-lowr9
34 };
35
36 enum DiphotonR9EtaConversionCats {
37 kNewCat1 = 0, //barrel-barrel highr9/highr9
38 kNewCat2, //barrel-barrel highr9/lowr9+lowr9/lowr9 one/two conversion
39 kNewCat3, //barrel-barrel highr9/lowr9+lowr9/lowr9 no conversion
40 kNewCat4, //barrel-endcap+endcap/endcap highr9/highr9
41 kNewCat5, //barrel-endcap+endcap-endcap highr9/lowr9 + lowr9-lowr9 one/two conversion
42 kNewCat6 //barrel-endcap+endcap-endcap highr9/lowr9 + lowr9-lowr9 no conversion
43 };
44
45 static Bool_t PassConversionId(const Photon *p, const DecayParticle *c);
46 static Bool_t PassElectronVeto(const Photon *p, const ElectronCol *els);
47 static Bool_t PassElectronVetoConvRecovery(const Photon *p, const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *v);
48 static Bool_t PassTriggerMatching(const Photon *p, const TriggerObjectCol *trigobjs);
49 static const DecayParticle *MatchedConversion(const Photon *p, const DecayParticleCol *conversions,
50 const BaseVertex *vtx, Int_t nWrongHitsMax=1, Double_t probMin=1e-6,
51 Double_t lxyMin = 2.0, Double_t dRMin = 0.1);
52 static const DecayParticle *MatchedConversion(const Track *t, const DecayParticleCol *conversions,
53 const BaseVertex *vtx, Int_t nWrongHitsMax=1, Double_t probMin=1e-6,
54 Double_t lxyMin = 2.0);
55 static DiphotonR9EtaCats DiphotonR9EtaCat(const Photon *p1, const Photon *p2);
56 static DiphotonR9EtaConversionCats DiphotonR9EtaConversionCat(const Photon *p1, const Photon *p2, const DecayParticleCol *conversions, const BaseVertex *v);
57
58 ClassDef(PhotonTools, 0) // Muon tools
59 };
60 }
61
62 #endif