1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
bendavid |
1.7 |
// $Id: PhotonTreeWriter.h,v 1.6 2011/12/13 21:13:22 bendavid Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// PhotonTreeWriter
|
5 |
|
|
//
|
6 |
|
|
// Authors: J. Bendavid
|
7 |
|
|
//--------------------------------------------------------------------------------------------------
|
8 |
|
|
|
9 |
|
|
#ifndef MITPHYSICS_MODS_PHOTONTREEWRITER_H
|
10 |
|
|
#define MITPHYSICS_MODS_PHOTONTREEWRITER_H
|
11 |
|
|
|
12 |
|
|
#include "MitAna/TreeMod/interface/BaseMod.h"
|
13 |
|
|
#include "MitAna/DataTree/interface/PhotonFwd.h"
|
14 |
|
|
#include "MitAna/DataTree/interface/TrackCol.h"
|
15 |
|
|
#include "MitAna/DataTree/interface/VertexCol.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/BeamSpotCol.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/PFCandidateCol.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
|
19 |
|
|
#include "MitAna/DataTree/interface/DecayParticleCol.h"
|
20 |
|
|
#include "MitAna/DataTree/interface/ElectronCol.h"
|
21 |
|
|
#include "MitAna/DataTree/interface/DecayParticleCol.h"
|
22 |
|
|
#include "MitAna/DataTree/interface/PileupInfoCol.h"
|
23 |
|
|
#include "MitAna/DataTree/interface/MCParticleCol.h"
|
24 |
bendavid |
1.2 |
#include "MitAna/DataTree/interface/SuperClusterCol.h"
|
25 |
|
|
#include "MitAna/DataTree/interface/PFMetCol.h"
|
26 |
bendavid |
1.5 |
#include "MitAna/DataTree/interface/JetCol.h"
|
27 |
bendavid |
1.2 |
#include "MitPhysics/Utils/interface/PhotonFix.h"
|
28 |
bendavid |
1.1 |
#include "MitPhysics/Utils/interface/PhotonTools.h"
|
29 |
|
|
|
30 |
|
|
class TNtuple;
|
31 |
|
|
class TRandom3;
|
32 |
|
|
|
33 |
|
|
namespace mithep
|
34 |
|
|
{
|
35 |
|
|
|
36 |
|
|
class PhotonTreeWriterPhoton
|
37 |
|
|
{
|
38 |
|
|
public:
|
39 |
bendavid |
1.2 |
void SetVars(const Photon *p, const DecayParticle *c, const Electron *ele, const SuperCluster *pfsc, const MCParticle *m, PhotonFix &phfixph, PhotonFix &phfixele);
|
40 |
bendavid |
1.1 |
Float_t Ecor() const { return ecor; };
|
41 |
|
|
Float_t Ecorerr() const { return ecorerr; };
|
42 |
bendavid |
1.2 |
Float_t Ecorele() const { return ecorele; };
|
43 |
|
|
Float_t Ecoreleerr() const { return ecoreleerr; };
|
44 |
bendavid |
1.1 |
|
45 |
|
|
private:
|
46 |
bendavid |
1.5 |
UChar_t hasphoton;
|
47 |
bendavid |
1.1 |
Float_t e;
|
48 |
|
|
Float_t pt;
|
49 |
|
|
Float_t eta;
|
50 |
|
|
Float_t phi;
|
51 |
|
|
Float_t r9;
|
52 |
|
|
Float_t e3x3;
|
53 |
|
|
Float_t e5x5;
|
54 |
|
|
Float_t sce;
|
55 |
|
|
Float_t scrawe;
|
56 |
|
|
Float_t scpse;
|
57 |
|
|
Float_t sceta;
|
58 |
|
|
Float_t scphi;
|
59 |
|
|
UInt_t scnclusters;
|
60 |
|
|
UInt_t scnhits;
|
61 |
bendavid |
1.2 |
Float_t scetawidth;
|
62 |
|
|
Float_t scphiwidth;
|
63 |
bendavid |
1.1 |
Float_t hovere;
|
64 |
|
|
Float_t sigietaieta;
|
65 |
|
|
Bool_t isbarrel;
|
66 |
|
|
Bool_t isr9reco;
|
67 |
|
|
Bool_t isr9cat;
|
68 |
bendavid |
1.2 |
Char_t phcat;
|
69 |
|
|
Float_t eerr;
|
70 |
|
|
Float_t eerrsmeared;
|
71 |
bendavid |
1.3 |
Float_t esmearing;
|
72 |
bendavid |
1.5 |
Float_t idmva;
|
73 |
|
|
Float_t ecalisodr03;
|
74 |
|
|
Float_t hcalisodr03;
|
75 |
|
|
Float_t trkisohollowdr03;
|
76 |
bendavid |
1.1 |
|
77 |
bendavid |
1.5 |
|
78 |
|
|
//quantities from seed basic cluster
|
79 |
bendavid |
1.2 |
Float_t eseed;
|
80 |
bendavid |
1.4 |
Float_t etaseed;
|
81 |
|
|
Float_t phiseed;
|
82 |
|
|
Int_t ietaseed;
|
83 |
|
|
Int_t iphiseed;
|
84 |
|
|
Int_t ixseed;
|
85 |
|
|
Int_t iyseed;
|
86 |
|
|
Float_t etacryseed;
|
87 |
|
|
Float_t phicryseed;
|
88 |
|
|
Float_t xcryseed;
|
89 |
|
|
Float_t ycryseed;
|
90 |
|
|
Float_t thetaaxisseed;
|
91 |
|
|
Float_t phiaxisseed;
|
92 |
bendavid |
1.5 |
Float_t sigietaietaseed;
|
93 |
|
|
Float_t sigiphiphiseed;
|
94 |
|
|
Float_t covietaiphiseed;
|
95 |
|
|
Float_t e3x3seed;
|
96 |
|
|
Float_t e5x5seed;
|
97 |
|
|
Float_t emaxseed;
|
98 |
|
|
Float_t e2ndseed;
|
99 |
|
|
Float_t etopseed;
|
100 |
|
|
Float_t ebottomseed;
|
101 |
|
|
Float_t eleftseed;
|
102 |
|
|
Float_t erightseed;
|
103 |
|
|
Float_t e1x3seed;
|
104 |
|
|
Float_t e3x1seed;
|
105 |
|
|
Float_t e1x5seed;
|
106 |
|
|
Float_t e2x2seed;
|
107 |
|
|
Float_t e4x4seed;
|
108 |
|
|
Float_t e2x5maxseed;
|
109 |
|
|
Float_t e2x5topseed;
|
110 |
|
|
Float_t e2x5bottomseed;
|
111 |
|
|
Float_t e2x5leftseed;
|
112 |
|
|
Float_t e2x5rightseed;
|
113 |
|
|
Float_t xseedseed;
|
114 |
|
|
Float_t yseedseed;
|
115 |
|
|
Float_t zseedseed;
|
116 |
|
|
UInt_t nhitsseed;
|
117 |
|
|
|
118 |
bendavid |
1.4 |
|
119 |
|
|
//quantities from second basic cluster, if present
|
120 |
|
|
Float_t ebc2;
|
121 |
|
|
Float_t etabc2;
|
122 |
|
|
Float_t phibc2;
|
123 |
|
|
Int_t ietabc2;
|
124 |
|
|
Int_t iphibc2;
|
125 |
|
|
Int_t ixbc2;
|
126 |
|
|
Int_t iybc2;
|
127 |
|
|
Float_t etacrybc2;
|
128 |
|
|
Float_t phicrybc2;
|
129 |
|
|
Float_t xcrybc2;
|
130 |
|
|
Float_t ycrybc2;
|
131 |
|
|
Float_t thetaaxisbc2;
|
132 |
bendavid |
1.5 |
Float_t phiaxisbc2;
|
133 |
|
|
Float_t sigietaietabc2;
|
134 |
|
|
Float_t sigiphiphibc2;
|
135 |
|
|
Float_t covietaiphibc2;
|
136 |
|
|
Float_t e3x3bc2;
|
137 |
|
|
Float_t e5x5bc2;
|
138 |
|
|
Float_t emaxbc2;
|
139 |
|
|
Float_t e2ndbc2;
|
140 |
|
|
Float_t etopbc2;
|
141 |
|
|
Float_t ebottombc2;
|
142 |
|
|
Float_t eleftbc2;
|
143 |
|
|
Float_t erightbc2;
|
144 |
|
|
Float_t e1x3bc2;
|
145 |
|
|
Float_t e3x1bc2;
|
146 |
|
|
Float_t e1x5bc2;
|
147 |
|
|
Float_t e2x2bc2;
|
148 |
|
|
Float_t e4x4bc2;
|
149 |
|
|
Float_t e2x5maxbc2;
|
150 |
|
|
Float_t e2x5topbc2;
|
151 |
|
|
Float_t e2x5bottombc2;
|
152 |
|
|
Float_t e2x5leftbc2;
|
153 |
|
|
Float_t e2x5rightbc2;
|
154 |
|
|
Float_t xbc2bc2;
|
155 |
|
|
Float_t ybc2bc2;
|
156 |
|
|
Float_t zbc2bc2;
|
157 |
|
|
UInt_t nhitsbc2;
|
158 |
|
|
|
159 |
|
|
//quantities from lowest energy basic cluster if present
|
160 |
|
|
Float_t ebclast;
|
161 |
|
|
Float_t etabclast;
|
162 |
|
|
Float_t phibclast;
|
163 |
|
|
Int_t ietabclast;
|
164 |
|
|
Int_t iphibclast;
|
165 |
|
|
Int_t ixbclast;
|
166 |
|
|
Int_t iybclast;
|
167 |
|
|
Float_t etacrybclast;
|
168 |
|
|
Float_t phicrybclast;
|
169 |
|
|
Float_t xcrybclast;
|
170 |
|
|
Float_t ycrybclast;
|
171 |
|
|
Float_t thetaaxisbclast;
|
172 |
|
|
Float_t phiaxisbclast;
|
173 |
|
|
Float_t sigietaietabclast;
|
174 |
|
|
Float_t sigiphiphibclast;
|
175 |
|
|
Float_t covietaiphibclast;
|
176 |
|
|
Float_t e3x3bclast;
|
177 |
|
|
Float_t e5x5bclast;
|
178 |
|
|
UInt_t nhitsbclast;
|
179 |
|
|
|
180 |
|
|
//quantities from second lowest energy basic cluster if present
|
181 |
|
|
Float_t ebclast2;
|
182 |
|
|
Float_t etabclast2;
|
183 |
|
|
Float_t phibclast2;
|
184 |
|
|
Int_t ietabclast2;
|
185 |
|
|
Int_t iphibclast2;
|
186 |
|
|
Int_t ixbclast2;
|
187 |
|
|
Int_t iybclast2;
|
188 |
|
|
Float_t etacrybclast2;
|
189 |
|
|
Float_t phicrybclast2;
|
190 |
|
|
Float_t xcrybclast2;
|
191 |
|
|
Float_t ycrybclast2;
|
192 |
|
|
Float_t thetaaxisbclast2;
|
193 |
|
|
Float_t phiaxisbclast2;
|
194 |
|
|
Float_t sigietaietabclast2;
|
195 |
|
|
Float_t sigiphiphibclast2;
|
196 |
|
|
Float_t covietaiphibclast2;
|
197 |
|
|
Float_t e3x3bclast2;
|
198 |
|
|
Float_t e5x5bclast2;
|
199 |
|
|
UInt_t nhitsbclast2;
|
200 |
bendavid |
1.1 |
|
201 |
|
|
//energy correction quantities from PhotonFix
|
202 |
|
|
Float_t ecor;
|
203 |
|
|
Float_t ecorerr;
|
204 |
bendavid |
1.2 |
Float_t ecorele;
|
205 |
|
|
Float_t ecoreleerr;
|
206 |
bendavid |
1.1 |
Float_t etac;
|
207 |
|
|
Float_t etas;
|
208 |
|
|
Float_t etam;
|
209 |
|
|
Float_t phic;
|
210 |
|
|
Float_t phis;
|
211 |
|
|
Float_t phim;
|
212 |
|
|
Float_t xz;
|
213 |
|
|
Float_t xc;
|
214 |
|
|
Float_t xs;
|
215 |
|
|
Float_t xm;
|
216 |
|
|
Float_t yz;
|
217 |
|
|
Float_t yc;
|
218 |
|
|
Float_t ys;
|
219 |
|
|
Float_t ym;
|
220 |
|
|
|
221 |
|
|
//conversion quantities
|
222 |
bendavid |
1.5 |
UChar_t hasconversion;
|
223 |
bendavid |
1.1 |
Float_t convp;
|
224 |
|
|
Float_t convpt;
|
225 |
|
|
Float_t conveta;
|
226 |
|
|
Float_t convphi;
|
227 |
|
|
Float_t convdeta;
|
228 |
|
|
Float_t convdphi;
|
229 |
|
|
Float_t convvtxrho;
|
230 |
|
|
Float_t convvtxz;
|
231 |
|
|
Float_t convvtxphi;
|
232 |
|
|
Float_t convleadpt;
|
233 |
|
|
Float_t convtrailpt;
|
234 |
|
|
Float_t convleadtrackpt;
|
235 |
|
|
Char_t convleadtrackalgo;
|
236 |
|
|
Char_t convleadtrackalgos;
|
237 |
|
|
Char_t convleadtrackcharge;
|
238 |
|
|
Float_t convtrailtrackpt;
|
239 |
|
|
Char_t convtrailtrackalgo;
|
240 |
|
|
Char_t convtrailtrackalgos;
|
241 |
|
|
Char_t trailtrackcharge;
|
242 |
|
|
|
243 |
bendavid |
1.2 |
//electron quantities
|
244 |
bendavid |
1.5 |
UChar_t haselectron;
|
245 |
|
|
UChar_t eleisecaldriven;
|
246 |
|
|
UChar_t eleistrackerdriven;
|
247 |
bendavid |
1.2 |
Float_t elee;
|
248 |
|
|
Float_t elept;
|
249 |
|
|
Float_t eleeta;
|
250 |
|
|
Float_t elephi;
|
251 |
|
|
Char_t elecharge;
|
252 |
|
|
Float_t elefbrem;
|
253 |
|
|
Float_t eledeta;
|
254 |
|
|
Float_t eledphi;
|
255 |
|
|
Float_t elep;
|
256 |
|
|
Float_t elepin;
|
257 |
|
|
Float_t elepout;
|
258 |
|
|
|
259 |
|
|
//pf supercluster quantities
|
260 |
bendavid |
1.5 |
UChar_t haspfsc;
|
261 |
bendavid |
1.2 |
Float_t pfsce;
|
262 |
|
|
Float_t pfscrawe;
|
263 |
|
|
Float_t pfsceta;
|
264 |
|
|
Float_t pfscphi;
|
265 |
bendavid |
1.1 |
|
266 |
|
|
//generator level quantities
|
267 |
bendavid |
1.5 |
UChar_t ispromptgen;
|
268 |
bendavid |
1.1 |
Float_t gene;
|
269 |
|
|
Float_t genpt;
|
270 |
|
|
Float_t geneta;
|
271 |
|
|
Float_t genphi;
|
272 |
|
|
Float_t genz;
|
273 |
bendavid |
1.5 |
Int_t pdgid;
|
274 |
|
|
Int_t motherpdgid;
|
275 |
bendavid |
1.1 |
|
276 |
|
|
|
277 |
|
|
|
278 |
|
|
};
|
279 |
|
|
|
280 |
|
|
class PhotonTreeWriterDiphotonEvent
|
281 |
|
|
{
|
282 |
|
|
public:
|
283 |
|
|
Float_t rho;
|
284 |
|
|
Float_t genHiggspt;
|
285 |
|
|
Float_t genHiggsZ;
|
286 |
|
|
Float_t genmass;
|
287 |
|
|
Float_t gencostheta;
|
288 |
bendavid |
1.2 |
Float_t bsX;
|
289 |
|
|
Float_t bsY;
|
290 |
|
|
Float_t bsZ;
|
291 |
bendavid |
1.7 |
Float_t bsSigmaZ;
|
292 |
bendavid |
1.2 |
Float_t vtxX;
|
293 |
|
|
Float_t vtxY;
|
294 |
bendavid |
1.1 |
Float_t vtxZ;
|
295 |
|
|
Int_t nVtx;
|
296 |
|
|
Int_t numPU;
|
297 |
|
|
Int_t numPUminus;
|
298 |
|
|
Int_t numPUplus;
|
299 |
|
|
Float_t mass;
|
300 |
bendavid |
1.2 |
Float_t masserr;
|
301 |
|
|
Float_t masserrsmeared;
|
302 |
bendavid |
1.4 |
Float_t masserrwrongvtx;
|
303 |
|
|
Float_t masserrsmearedwrongvtx;
|
304 |
|
|
Float_t vtxprob;
|
305 |
bendavid |
1.5 |
Float_t deltamvtx;
|
306 |
bendavid |
1.1 |
Float_t ptgg;
|
307 |
bendavid |
1.5 |
Float_t etagg;
|
308 |
|
|
Float_t phigg;
|
309 |
bendavid |
1.1 |
Float_t costheta;
|
310 |
bendavid |
1.2 |
Float_t massele;
|
311 |
|
|
Float_t ptee;
|
312 |
|
|
Float_t costhetaele;
|
313 |
|
|
Float_t mt;
|
314 |
|
|
Float_t cosphimet;
|
315 |
|
|
Float_t mtele;
|
316 |
|
|
Float_t cosphimetele;
|
317 |
bendavid |
1.1 |
UInt_t evt;
|
318 |
|
|
UInt_t run;
|
319 |
|
|
UInt_t lumi;
|
320 |
|
|
UChar_t evtcat;
|
321 |
bendavid |
1.2 |
UInt_t nobj;
|
322 |
|
|
Float_t pfmet;
|
323 |
|
|
Float_t pfmetphi;
|
324 |
|
|
Float_t pfmetx;
|
325 |
|
|
Float_t pfmety;
|
326 |
bendavid |
1.5 |
UChar_t ismc;
|
327 |
bendavid |
1.1 |
|
328 |
|
|
//corrected quantities from PhotonFix corrections
|
329 |
|
|
Float_t masscor;
|
330 |
|
|
Float_t masscorerr;
|
331 |
bendavid |
1.2 |
Float_t masscorele;
|
332 |
|
|
Float_t masscoreleerr;
|
333 |
bendavid |
1.1 |
|
334 |
bendavid |
1.5 |
//jet quantities
|
335 |
|
|
Float_t jet1pt;
|
336 |
|
|
Float_t jet1eta;
|
337 |
|
|
Float_t jet1phi;
|
338 |
|
|
Float_t jet1mass;
|
339 |
|
|
Float_t jet2pt;
|
340 |
|
|
Float_t jet2eta;
|
341 |
|
|
Float_t jet2phi;
|
342 |
|
|
Float_t jet2mass;
|
343 |
|
|
Float_t jetcentralpt;
|
344 |
|
|
Float_t jetcentraleta;
|
345 |
|
|
Float_t jetcentralphi;
|
346 |
|
|
Float_t jetcentralmass;
|
347 |
|
|
Float_t dijetpt;
|
348 |
|
|
Float_t dijeteta;
|
349 |
|
|
Float_t dijetphi;
|
350 |
|
|
Float_t dijetmass;
|
351 |
|
|
Float_t jetetaplus;
|
352 |
|
|
Float_t jetetaminus;
|
353 |
|
|
|
354 |
|
|
Float_t zeppenfeld;
|
355 |
|
|
Float_t dphidijetgg;
|
356 |
|
|
|
357 |
bendavid |
1.1 |
PhotonTreeWriterPhoton photons[2];
|
358 |
|
|
|
359 |
|
|
|
360 |
|
|
};
|
361 |
|
|
|
362 |
|
|
class PhotonTreeWriter : public BaseMod
|
363 |
|
|
{
|
364 |
|
|
public:
|
365 |
|
|
PhotonTreeWriter(const char *name ="PhotonTreeWriter",
|
366 |
|
|
const char *title="Selecting PhotonPairs");
|
367 |
|
|
|
368 |
|
|
~PhotonTreeWriter();
|
369 |
|
|
|
370 |
|
|
// setting all the input Names
|
371 |
|
|
void SetInputPhotonsName(const char *n){ fPhotonBranchName= n; }
|
372 |
|
|
void SetPhotonsFromBranch(bool b) { fPhotonsFromBranch = b; }
|
373 |
|
|
void SetTrackName(const char *n) { fTrackBranchName = n; }
|
374 |
|
|
void SetElectronName(const char *n) { fElectronName = n; }
|
375 |
|
|
void SetConversionName(const char *n) { fConversionName = n; }
|
376 |
|
|
void SetPUDensityName(const char *n) { fPileUpDenName = n; }
|
377 |
|
|
void SetPVName(const char *n) { fPVName = n; }
|
378 |
|
|
void SetPVFromBranch(bool b) { fPVFromBranch = b; }
|
379 |
|
|
void SetMCParticle(const char *n) { fMCParticleName = n; }
|
380 |
|
|
void SetPUInfoName(const char *n) { fPileUpName = n; }
|
381 |
|
|
void SetBeamspotName(const char *n) { fBeamspotName = n; }
|
382 |
|
|
void SetPFCandName(const char *n) { fPFCandName = n; }
|
383 |
bendavid |
1.2 |
void SetSuperClusterName(const char *n) { fSuperClusterName = n; }
|
384 |
bendavid |
1.5 |
void SetPFJetName(const char *n) { fPFJetName = n; }
|
385 |
|
|
void SetPFJetsFromBranch(Bool_t b) { fPFJetsFromBranch = b; }
|
386 |
|
|
void SetEnableJets(Bool_t b) { fEnableJets = b; }
|
387 |
bendavid |
1.2 |
void SetPhFixDataFile(const char *n) { fPhFixDataFile = n; }
|
388 |
bendavid |
1.1 |
|
389 |
|
|
|
390 |
|
|
// set basic Cut variables (FOR PRE-SELECTION)
|
391 |
|
|
|
392 |
|
|
// is Data Or Not?
|
393 |
|
|
void SetIsData (Bool_t b) { fIsData = b;};
|
394 |
|
|
|
395 |
|
|
|
396 |
bendavid |
1.6 |
void SetApplyElectronVeto(Bool_t b) { fApplyElectronVeto = b; }
|
397 |
bendavid |
1.1 |
|
398 |
|
|
void SetTupleName(const char* c) { fTupleName = c; }
|
399 |
|
|
void SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; }
|
400 |
|
|
void SetGoodElectronName(TString name) { fGoodElectronName = name; }
|
401 |
|
|
void SetWriteDiphotonTree(Bool_t b) { fWriteDiphotonTree = b; }
|
402 |
|
|
void SetWriteSingleTree(Bool_t b) { fWriteSingleTree = b; }
|
403 |
bendavid |
1.2 |
void SetLoopOnGoodElectrons(Bool_t b) { fLoopOnGoodElectrons = b; }
|
404 |
|
|
void SetExcludeSinglePrompt(Bool_t b) { fExcludeSinglePrompt = b; }
|
405 |
|
|
void SetExcludeDoublePrompt(Bool_t b) { fExcludeDoublePrompt = b; }
|
406 |
bendavid |
1.1 |
|
407 |
|
|
protected:
|
408 |
|
|
void Process();
|
409 |
|
|
void SlaveBegin();
|
410 |
|
|
|
411 |
|
|
// private auxiliary methods...
|
412 |
|
|
void FindHiggsPtAndZ(Float_t& pt, Float_t& z, Float_t& mass);
|
413 |
|
|
Float_t GetEventCat(PhotonTools::CiCBaseLineCats cat1, PhotonTools::CiCBaseLineCats cat2);
|
414 |
|
|
|
415 |
|
|
// Names for the input Collections
|
416 |
|
|
TString fPhotonBranchName;
|
417 |
|
|
TString fElectronName;
|
418 |
|
|
TString fGoodElectronName;
|
419 |
|
|
TString fConversionName;
|
420 |
|
|
TString fTrackBranchName;
|
421 |
|
|
TString fPileUpDenName;
|
422 |
|
|
TString fPVName;
|
423 |
|
|
TString fBeamspotName;
|
424 |
|
|
TString fPFCandName;
|
425 |
|
|
TString fMCParticleName;
|
426 |
|
|
TString fPileUpName;
|
427 |
bendavid |
1.2 |
TString fSuperClusterName;
|
428 |
|
|
TString fPFMetName;
|
429 |
bendavid |
1.5 |
TString fPFJetName;
|
430 |
bendavid |
1.1 |
|
431 |
|
|
// is it Data or MC?
|
432 |
|
|
Bool_t fIsData;
|
433 |
|
|
|
434 |
|
|
// in case there's some PV pre-selection
|
435 |
|
|
Bool_t fPhotonsFromBranch;
|
436 |
|
|
Bool_t fPVFromBranch;
|
437 |
|
|
Bool_t fGoodElectronsFromBranch;
|
438 |
bendavid |
1.5 |
Bool_t fPFJetsFromBranch;
|
439 |
bendavid |
1.1 |
|
440 |
|
|
const PhotonCol *fPhotons;
|
441 |
|
|
const ElectronCol *fElectrons;
|
442 |
|
|
const ElectronCol *fGoodElectrons;
|
443 |
|
|
const DecayParticleCol *fConversions;
|
444 |
|
|
const TrackCol *fTracks;
|
445 |
|
|
const PileupEnergyDensityCol *fPileUpDen;
|
446 |
|
|
const VertexCol *fPV;
|
447 |
|
|
const BeamSpotCol *fBeamspot;
|
448 |
|
|
const PFCandidateCol *fPFCands;
|
449 |
|
|
const MCParticleCol *fMCParticles;
|
450 |
|
|
const PileupInfoCol *fPileUp;
|
451 |
bendavid |
1.2 |
const SuperClusterCol *fSuperClusters;
|
452 |
|
|
const PFMetCol *fPFMet;
|
453 |
bendavid |
1.5 |
const JetCol *fPFJets;
|
454 |
bendavid |
1.2 |
|
455 |
bendavid |
1.1 |
// --------------------------------
|
456 |
bendavid |
1.2 |
Bool_t fLoopOnGoodElectrons; //primary loop over good electrons collection instead of photons
|
457 |
bendavid |
1.6 |
Bool_t fApplyElectronVeto; //=true then invert electron veto (for cic selection only atm)
|
458 |
bendavid |
1.1 |
Bool_t fWriteDiphotonTree;
|
459 |
|
|
Bool_t fWriteSingleTree;
|
460 |
|
|
|
461 |
bendavid |
1.2 |
Bool_t fExcludeSinglePrompt;
|
462 |
|
|
Bool_t fExcludeDoublePrompt;
|
463 |
|
|
|
464 |
bendavid |
1.5 |
Bool_t fEnableJets;
|
465 |
|
|
|
466 |
bendavid |
1.2 |
TString fPhFixDataFile;
|
467 |
|
|
PhotonFix fPhfixph;
|
468 |
|
|
PhotonFix fPhfixele;
|
469 |
bendavid |
1.1 |
|
470 |
|
|
// --------------------------------
|
471 |
|
|
// validation Tuple
|
472 |
|
|
TString fTupleName;
|
473 |
|
|
PhotonTreeWriterDiphotonEvent* fDiphotonEvent;
|
474 |
|
|
PhotonTreeWriterPhoton* fSinglePhoton;
|
475 |
|
|
TTree* hCiCTuple;
|
476 |
|
|
TTree* hCiCTupleSingle;
|
477 |
|
|
|
478 |
|
|
ClassDef(PhotonTreeWriter, 1) // Photon identification module
|
479 |
|
|
};
|
480 |
|
|
}
|
481 |
|
|
#endif
|