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 |
fabstoec |
1.3 |
enum CiCBaseLineCats {
|
46 |
|
|
kCiCCat1 = 0,
|
47 |
|
|
kCiCCat2,
|
48 |
|
|
kCiCCat3,
|
49 |
|
|
kCiCCat4
|
50 |
|
|
};
|
51 |
|
|
|
52 |
bendavid |
1.1 |
static Bool_t PassConversionId(const Photon *p, const DecayParticle *c);
|
53 |
|
|
static Bool_t PassElectronVeto(const Photon *p, const ElectronCol *els);
|
54 |
fabstoec |
1.3 |
static Double_t ElectronVetoCiC(const Photon *p, const ElectronCol *els);
|
55 |
bendavid |
1.1 |
static Bool_t PassElectronVetoConvRecovery(const Photon *p, const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *v);
|
56 |
|
|
static Bool_t PassTriggerMatching(const Photon *p, const TriggerObjectCol *trigobjs);
|
57 |
|
|
static const DecayParticle *MatchedConversion(const Photon *p, const DecayParticleCol *conversions,
|
58 |
|
|
const BaseVertex *vtx, Int_t nWrongHitsMax=1, Double_t probMin=1e-6,
|
59 |
bendavid |
1.2 |
Double_t lxyMin = 2.0, Double_t dRMin = 0.1);
|
60 |
|
|
static const DecayParticle *MatchedConversion(const Track *t, const DecayParticleCol *conversions,
|
61 |
|
|
const BaseVertex *vtx, Int_t nWrongHitsMax=1, Double_t probMin=1e-6,
|
62 |
|
|
Double_t lxyMin = 2.0);
|
63 |
bendavid |
1.1 |
static DiphotonR9EtaCats DiphotonR9EtaCat(const Photon *p1, const Photon *p2);
|
64 |
|
|
static DiphotonR9EtaConversionCats DiphotonR9EtaConversionCat(const Photon *p1, const Photon *p2, const DecayParticleCol *conversions, const BaseVertex *v);
|
65 |
fabstoec |
1.3 |
static CiCBaseLineCats CiCBaseLineCat(const Photon *p);
|
66 |
bendavid |
1.1 |
|
67 |
|
|
ClassDef(PhotonTools, 0) // Muon tools
|
68 |
|
|
};
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
#endif
|