ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/PhotonTools.h
Revision: 1.1
Committed: Tue Apr 12 22:14:21 2011 UTC (14 years ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
Add PhotonTools with conversion id, trigger matching and diphoton categories, add functionality to PhotonIdMod

File Contents

# User Rev Content
1 bendavid 1.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 DiphotonR9EtaCats DiphotonR9EtaCat(const Photon *p1, const Photon *p2);
53     static DiphotonR9EtaConversionCats DiphotonR9EtaConversionCat(const Photon *p1, const Photon *p2, const DecayParticleCol *conversions, const BaseVertex *v);
54    
55     ClassDef(PhotonTools, 0) // Muon tools
56     };
57     }
58    
59     #endif