1 |
fabstoec |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
fabstoec |
1.4 |
// $Id: PhotonCiCMod.h,v 1.3 2011/06/29 18:28:05 fabstoec Exp $
|
3 |
fabstoec |
1.1 |
//
|
4 |
|
|
// PhotonCiCMod
|
5 |
|
|
//
|
6 |
|
|
// This module applies photon identification criteria and exports a pointer to a collection
|
7 |
|
|
// of "good photons" according to the specified identification scheme.
|
8 |
|
|
//
|
9 |
|
|
// Authors: S.Xie, C.Loizides
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef MITPHYSICS_MODS_PHOTONCICMOD_H
|
13 |
|
|
#define MITPHYSICS_MODS_PHOTONCICMOD_H
|
14 |
|
|
|
15 |
|
|
#include "MitAna/TreeMod/interface/BaseMod.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/PhotonFwd.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/TrackCol.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/VertexCol.h"
|
19 |
|
|
#include "MitAna/DataTree/interface/BeamSpotCol.h"
|
20 |
|
|
#include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
|
21 |
|
|
#include "MitAna/DataTree/interface/DecayParticleCol.h"
|
22 |
|
|
#include "MitAna/DataTree/interface/ElectronCol.h"
|
23 |
fabstoec |
1.2 |
#include "MitAna/DataTree/interface/DecayParticleCol.h"
|
24 |
fabstoec |
1.4 |
#include "MitAna/DataTree/interface/PileupInfoCol.h"
|
25 |
|
|
#include "MitAna/DataTree/interface/MCParticleCol.h"
|
26 |
fabstoec |
1.2 |
|
27 |
|
|
class TNtuple;
|
28 |
fabstoec |
1.4 |
class TRandom3;
|
29 |
fabstoec |
1.1 |
|
30 |
|
|
namespace mithep
|
31 |
|
|
{
|
32 |
|
|
class PhotonCiCMod : public BaseMod
|
33 |
|
|
{
|
34 |
|
|
public:
|
35 |
|
|
PhotonCiCMod(const char *name="PhotonCiCMod",
|
36 |
|
|
const char *title="Photon identification module");
|
37 |
|
|
|
38 |
fabstoec |
1.4 |
~PhotonCiCMod();
|
39 |
|
|
|
40 |
fabstoec |
1.1 |
Bool_t GetApplySpikeRemoval() const { return fApplySpikeRemoval; }
|
41 |
|
|
const char *GetGoodName() const { return GetGoodPhotonsName(); }
|
42 |
|
|
const char *GetGoodPhotonsName() const { return fGoodPhotonsName; }
|
43 |
|
|
const char *GetInputName() const { return fPhotonBranchName; }
|
44 |
|
|
const char *GetOutputName() const { return GetGoodPhotonsName(); }
|
45 |
|
|
Double_t GetPtMin() const { return fPhotonPtMin; }
|
46 |
|
|
Double_t GetAbsEtaMax() const { return fAbsEtaMax; }
|
47 |
|
|
void SetApplySpikeRemoval(Bool_t b) { fApplySpikeRemoval = b; }
|
48 |
|
|
void SetGoodName(const char *n) { SetGoodPhotonsName(n); }
|
49 |
|
|
void SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n; }
|
50 |
|
|
void SetInputName(const char *n) { fPhotonBranchName= n; }
|
51 |
|
|
void SetTrackName(const char *n) { fTrackBranchName = n; }
|
52 |
|
|
void SetOutputName(const char *n) { SetGoodPhotonsName(n); }
|
53 |
|
|
void SetPtMin(Double_t pt) { fPhotonPtMin = pt; }
|
54 |
|
|
void SetAbsEtaMax(Double_t x) { fAbsEtaMax = x; }
|
55 |
|
|
|
56 |
fabstoec |
1.2 |
void SetPVName (TString s) {fPVName = s; fPVFromBranch = false;};
|
57 |
fabstoec |
1.1 |
|
58 |
fabstoec |
1.4 |
void SetIsData (Bool_t b) { fIsData = b;};
|
59 |
|
|
|
60 |
|
|
double findHiggsPt();
|
61 |
|
|
|
62 |
fabstoec |
1.1 |
protected:
|
63 |
|
|
void Process();
|
64 |
|
|
void SlaveBegin();
|
65 |
fabstoec |
1.2 |
unsigned int findBestVertex(Photon* ph1, Photon* ph2, const BaseVertex* bsp, bool print=false);
|
66 |
fabstoec |
1.1 |
|
67 |
|
|
TString fPhotonBranchName; //name of photon collection (input)
|
68 |
|
|
TString fGoodPhotonsName; //name of exported "good photon" collection
|
69 |
|
|
TString fTrackBranchName; // name of the track collection (only needed for PU corrected isolation)
|
70 |
|
|
TString fPileUpDenName; //name of the PU density collection
|
71 |
|
|
TString fElectronName;
|
72 |
|
|
Double_t fPhotonPtMin; //min pt cut
|
73 |
|
|
Bool_t fApplySpikeRemoval; //whether apply spike removal
|
74 |
|
|
Double_t fAbsEtaMax; //max Abs Eta
|
75 |
|
|
const PhotonCol *fPhotons; //!photon branch
|
76 |
|
|
const TrackCol *fTracks; //!track branch
|
77 |
|
|
const PileupEnergyDensityCol *fPileUpDen; //!rho branch
|
78 |
|
|
const ElectronCol *fElectrons; //!electron branch
|
79 |
|
|
|
80 |
|
|
TString fPVName;
|
81 |
|
|
const VertexCol *fPV;
|
82 |
|
|
Bool_t fPVFromBranch;
|
83 |
|
|
|
84 |
fabstoec |
1.2 |
const DecayParticleCol *fConversions;
|
85 |
|
|
TString fConversionName;
|
86 |
|
|
|
87 |
|
|
const BeamSpotCol *fBeamspot;
|
88 |
fabstoec |
1.3 |
|
89 |
|
|
Double_t fDataEnCorr_EB_hR9;
|
90 |
|
|
Double_t fDataEnCorr_EB_lR9;
|
91 |
|
|
Double_t fDataEnCorr_EE_hR9;
|
92 |
|
|
Double_t fDataEnCorr_EE_lR9;
|
93 |
fabstoec |
1.2 |
|
94 |
fabstoec |
1.4 |
Double_t fMCSmear_EB_hR9;
|
95 |
|
|
Double_t fMCSmear_EB_lR9;
|
96 |
|
|
Double_t fMCSmear_EE_hR9;
|
97 |
|
|
Double_t fMCSmear_EE_lR9;
|
98 |
|
|
|
99 |
|
|
Bool_t fIsData;
|
100 |
|
|
|
101 |
fabstoec |
1.2 |
TNtuple* hCiCTuple;
|
102 |
|
|
|
103 |
fabstoec |
1.4 |
TRandom3* rng;
|
104 |
|
|
|
105 |
|
|
TString fMCParticleName;
|
106 |
|
|
const MCParticleCol* fMCParticles;
|
107 |
|
|
|
108 |
|
|
TString fPileUpName;
|
109 |
|
|
const PileupInfoCol *fPileUp;
|
110 |
|
|
|
111 |
fabstoec |
1.1 |
ClassDef(PhotonCiCMod, 1) // Photon identification module
|
112 |
|
|
};
|
113 |
|
|
}
|
114 |
|
|
#endif
|