ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/PhotonTools.h
Revision: 1.5
Committed: Mon Jul 4 13:40:46 2011 UTC (13 years, 9 months ago) by fabstoec
Content type: text/plain
Branch: MAIN
Changes since 1.4: +2 -1 lines
Log Message:
*** empty log message ***

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 fabstoec 1.4 #include "MitAna/DataTree/interface/TrackCol.h"
16 bendavid 1.1 #include "MitAna/DataTree/interface/Electron.h"
17     #include "MitAna/DataTree/interface/ElectronCol.h"
18     #include "MitAna/DataTree/interface/BaseVertex.h"
19     #include "MitAna/DataTree/interface/DecayParticleCol.h"
20     #include "MitAna/DataTree/interface/VertexCol.h"
21     #include "MitAna/DataTree/interface/BeamSpotCol.h"
22     #include "MitAna/DataTree/interface/TriggerObjectCol.h"
23     #include "MitCommon/MathTools/interface/MathUtils.h"
24    
25     namespace mithep {
26     class PhotonTools {
27     public:
28     PhotonTools();
29    
30     enum DiphotonR9EtaCats {
31     kCat1 = 0, //barrel-barrel highr9/highr9
32     kCat2, //barrel-barrel highr9/lowr9+lowr9/lowr9
33     kCat3, //barrel-endcap+endcap/endcap highr9/highr9
34     kCat4 //barrel-endcap+endcap-endcap highr9/lowr9 + lowr9-lowr9
35     };
36    
37     enum DiphotonR9EtaConversionCats {
38     kNewCat1 = 0, //barrel-barrel highr9/highr9
39     kNewCat2, //barrel-barrel highr9/lowr9+lowr9/lowr9 one/two conversion
40     kNewCat3, //barrel-barrel highr9/lowr9+lowr9/lowr9 no conversion
41     kNewCat4, //barrel-endcap+endcap/endcap highr9/highr9
42     kNewCat5, //barrel-endcap+endcap-endcap highr9/lowr9 + lowr9-lowr9 one/two conversion
43     kNewCat6 //barrel-endcap+endcap-endcap highr9/lowr9 + lowr9-lowr9 no conversion
44     };
45    
46 fabstoec 1.3 enum CiCBaseLineCats {
47     kCiCCat1 = 0,
48     kCiCCat2,
49     kCiCCat3,
50     kCiCCat4
51     };
52    
53 bendavid 1.1 static Bool_t PassConversionId(const Photon *p, const DecayParticle *c);
54     static Bool_t PassElectronVeto(const Photon *p, const ElectronCol *els);
55 fabstoec 1.3 static Double_t ElectronVetoCiC(const Photon *p, const ElectronCol *els);
56 bendavid 1.1 static Bool_t PassElectronVetoConvRecovery(const Photon *p, const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *v);
57     static Bool_t PassTriggerMatching(const Photon *p, const TriggerObjectCol *trigobjs);
58     static const DecayParticle *MatchedConversion(const Photon *p, const DecayParticleCol *conversions,
59     const BaseVertex *vtx, Int_t nWrongHitsMax=1, Double_t probMin=1e-6,
60 bendavid 1.2 Double_t lxyMin = 2.0, Double_t dRMin = 0.1);
61     static const DecayParticle *MatchedConversion(const Track *t, const DecayParticleCol *conversions,
62     const BaseVertex *vtx, Int_t nWrongHitsMax=1, Double_t probMin=1e-6,
63     Double_t lxyMin = 2.0);
64 bendavid 1.1 static DiphotonR9EtaCats DiphotonR9EtaCat(const Photon *p1, const Photon *p2);
65     static DiphotonR9EtaConversionCats DiphotonR9EtaConversionCat(const Photon *p1, const Photon *p2, const DecayParticleCol *conversions, const BaseVertex *v);
66 fabstoec 1.3 static CiCBaseLineCats CiCBaseLineCat(const Photon *p);
67 bendavid 1.1
68 fabstoec 1.4 static const DecayParticle *MatchedCiCConversion(const Photon *p, const DecayParticleCol *conversions,
69 fabstoec 1.5 Double_t dPhiMin=0.1, Double_t dEtaMin=0.1,Double_t dRMin=0.1,
70     bool print = false);
71 fabstoec 1.4
72     static bool PassCiCSelection(Photon* ph,
73     const Vertex* vtx,
74     const TrackCol* trackCol,
75     const ElectronCol* eleCol,
76     const VertexCol* vtxCol,
77     double rho, double ptmin,
78     bool print = false, float* kin=NULL);
79    
80 bendavid 1.1 ClassDef(PhotonTools, 0) // Muon tools
81     };
82     }
83    
84     #endif