80 |
|
{0.0, 0.0, 0, 0, 0, 0, 0, 0 } //extra cuts fbrem and E_Over_P |
81 |
|
}; |
82 |
|
|
83 |
+ |
Double_t VBTFWorkingPoint80NoHOverEE[6][8] = { |
84 |
+ |
{0.04, 0.04, 0.04, 0.04, 1.000, 1.000, 1.000, 1.000}, //hovere |
85 |
+ |
{0.01, 0.01, 0.01, 0.01, 0.03, 0.03, 0.03, 0.03 }, //sigmaetaeta |
86 |
+ |
{0.06, 0.06, 0.06, 0.06, 0.03, 0.03, 0.03, 0.03 }, //deltaphiin |
87 |
+ |
{0.004, 0.004, 0.004, 0.004, 0.007, 0.007, 0.007, 0.007}, //deltaetain |
88 |
+ |
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, //eoverp |
89 |
+ |
{0.0, 0.0, 0, 0, 0, 0, 0, 0 } //extra cuts fbrem and E_Over_P |
90 |
+ |
}; |
91 |
+ |
|
92 |
+ |
Double_t VBTFWorkingPoint70NoHOverEE[6][8] = { |
93 |
+ |
{0.025, 0.025, 0.025, 0.025, 1.000, 1.000, 1.000, 1.000}, //hovere |
94 |
+ |
{0.01, 0.01, 0.01, 0.01, 0.03, 0.03, 0.03, 0.03 }, //sigmaetaeta |
95 |
+ |
{0.03, 0.03, 0.03, 0.03, 0.02, 0.02, 0.02, 0.02 }, //deltaphiin |
96 |
+ |
{0.004, 0.004, 0.004, 0.004, 0.005, 0.005, 0.005, 0.005}, //deltaetain |
97 |
+ |
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, //eoverp |
98 |
+ |
{0.0, 0.0, 0, 0, 0, 0, 0, 0 } //extra cuts fbrem and E_Over_P |
99 |
+ |
}; |
100 |
+ |
|
101 |
|
switch (idType) { |
102 |
|
case kCustomIdTight: |
103 |
|
memcpy(fCuts,tightcuts,sizeof(fCuts)); |
117 |
|
case kVBTFWorkingPoint80Id: |
118 |
|
memcpy(fCuts,VBTFWorkingPoint80,sizeof(fCuts)); |
119 |
|
break; |
120 |
+ |
case kVBTFWorkingPointLowPtId: |
121 |
+ |
if(ele->Pt() < 20) |
122 |
+ |
memcpy(fCuts,VBTFWorkingPoint70NoHOverEE,sizeof(fCuts)); |
123 |
+ |
else |
124 |
+ |
memcpy(fCuts,VBTFWorkingPoint80NoHOverEE,sizeof(fCuts)); |
125 |
+ |
break; |
126 |
|
case kVBTFWorkingPoint70Id: |
127 |
|
memcpy(fCuts,VBTFWorkingPoint70,sizeof(fCuts)); |
128 |
|
break; |
131 |
|
break; |
132 |
|
} |
133 |
|
|
110 |
– |
|
134 |
|
// Based on RecoEgamma/ElectronIdentification/src/CutBasedElectronID.cc. |
135 |
|
Double_t eOverP = ele->ESuperClusterOverP(); |
136 |
|
Double_t fBrem = ele->FBrem(); |
137 |
|
|
138 |
< |
if ((eOverP < fCuts[5][0]) && (fBrem < fCuts[5][1])) |
138 |
> |
if ( (fCuts[5][0]>0.0) && (eOverP < fCuts[5][0]) && (fCuts[5][1]>0.0) && (fBrem < fCuts[5][1])) |
139 |
|
return kFALSE; |
140 |
|
|
141 |
< |
if (eOverP < fCuts[5][2]*(1-fBrem)) |
141 |
> |
if ( (fCuts[5][2]>0.0) && (eOverP < fCuts[5][2]*(1-fBrem))) |
142 |
|
return kFALSE; |
143 |
|
|
144 |
|
Int_t cat = 2; |
149 |
|
|
150 |
|
if(ele->SCluster() == 0) |
151 |
|
return kFALSE; |
152 |
< |
Double_t eSeedOverPin = ele->ESeedClusterOverPIn(); |
152 |
> |
Double_t eSeedOverPin = ele->ESeedClusterOverPIn(); |
153 |
|
Double_t hOverE = ele->HadronicOverEm(); |
154 |
|
Double_t sigmaee = ele->CoviEtaiEta(); |
155 |
|
Double_t deltaPhiIn = TMath::Abs(ele->DeltaPhiSuperClusterTrackAtVtx()); |
158 |
|
Int_t eb = 1; |
159 |
|
if (ele->IsEB()) |
160 |
|
eb = 0; |
161 |
< |
|
161 |
> |
|
162 |
|
if (hOverE>fCuts[0][cat+4*eb]) |
163 |
|
return kFALSE; |
164 |
|
|
174 |
|
if(eSeedOverPin<fCuts[4][cat+4*eb]) |
175 |
|
return kFALSE; |
176 |
|
|
177 |
+ |
// Cuts only for pt<20 region and kVBTFWorkingPointLowPtId |
178 |
+ |
if(ele->Pt() < 20 && idType == kVBTFWorkingPointLowPtId) { |
179 |
+ |
Bool_t isGoodLowPtEl = fBrem > 0.15 || |
180 |
+ |
(ele->AbsEta() < 1.0 && eOverP > 0.95); |
181 |
+ |
if(!isGoodLowPtEl) return kFALSE; |
182 |
+ |
} |
183 |
+ |
|
184 |
|
return kTRUE; |
185 |
|
} |
186 |
|
|
276 |
|
|
277 |
|
//-------------------------------------------------------------------------------------------------- |
278 |
|
Bool_t ElectronTools::PassConversionFilter(const Electron *ele, |
279 |
< |
const DecayParticleCol *conversions, |
280 |
< |
Bool_t WrongHitsRequirement) |
279 |
> |
const DecayParticleCol *conversions, |
280 |
> |
const BaseVertex *vtx, |
281 |
> |
UInt_t nWrongHitsMax, |
282 |
> |
Double_t probMin, |
283 |
> |
Double_t lxyMin, |
284 |
> |
Bool_t matchCkf, |
285 |
> |
Bool_t requireArbitratedMerged) |
286 |
|
{ |
287 |
|
Bool_t isGoodConversion = kFALSE; |
288 |
|
|
291 |
|
for (UInt_t d=0; d<conversions->At(ifc)->NDaughters(); d++) { |
292 |
|
const Track *trk = dynamic_cast<const ChargedParticle*> |
293 |
|
(conversions->At(ifc)->Daughter(d))->Trk(); |
294 |
< |
if (ele->GsfTrk() == trk) { |
294 |
> |
if (ele->GsfTrk() == trk || (matchCkf && ele->TrackerTrk()==trk) ) { |
295 |
|
ConversionMatchFound = kTRUE; |
296 |
|
break; |
297 |
|
} |
299 |
|
|
300 |
|
// if match between the e-track and one of the conversion legs |
301 |
|
if (ConversionMatchFound == kTRUE){ |
302 |
< |
isGoodConversion = (conversions->At(ifc)->Prob() > 1e-6) && |
303 |
< |
(conversions->At(ifc)->Lxy() > 0) && |
304 |
< |
(conversions->At(ifc)->Lz() > 0) && |
270 |
< |
(conversions->At(ifc)->Position().Rho() > 2.0); |
302 |
> |
isGoodConversion = (conversions->At(ifc)->Prob() > probMin) && |
303 |
> |
(!requireArbitratedMerged || conversions->At(ifc)->Quality().Quality(ConversionQuality::arbitratedMerged)) && |
304 |
> |
(conversions->At(ifc)->LxyCorrected(vtx) > lxyMin); |
305 |
|
|
306 |
|
if (isGoodConversion == kTRUE) { |
307 |
|
for (UInt_t d=0; d<conversions->At(ifc)->NDaughters(); d++) { |
308 |
|
const Track *trk = dynamic_cast<const ChargedParticle*> |
309 |
|
(conversions->At(ifc)->Daughter(d))->Trk(); |
310 |
|
if (trk) { |
277 |
– |
// These requirements are not used for the GSF track |
278 |
– |
if (!(trk->NHits() >= 3 && trk->Prob() > 1e-6) && trk!=ele->GsfTrk()) |
279 |
– |
isGoodConversion = kFALSE; |
311 |
|
const StableData *sd = dynamic_cast<const StableData*> |
312 |
|
(conversions->At(ifc)->DaughterDat(d)); |
313 |
< |
if (WrongHitsRequirement && sd->NWrongHits() != 0) |
313 |
> |
if (sd->NWrongHits() > nWrongHitsMax) |
314 |
|
isGoodConversion = kFALSE; |
315 |
|
} else { |
316 |
|
isGoodConversion = kFALSE; |
327 |
|
} |
328 |
|
|
329 |
|
//-------------------------------------------------------------------------------------------------- |
330 |
< |
Bool_t ElectronTools::PassD0Cut(const Electron *ele, const VertexCol *vertices, Double_t fD0Cut, |
300 |
< |
Bool_t fReverseD0Cut) |
330 |
> |
Bool_t ElectronTools::PassD0Cut(const Electron *ele, const VertexCol *vertices, Double_t fD0Cut, Int_t nVertex) |
331 |
|
{ |
332 |
|
Bool_t d0cut = kFALSE; |
333 |
< |
// d0 cut |
334 |
< |
Double_t d0_real = 99999; |
335 |
< |
for(UInt_t i0 = 0; i0 < vertices->GetEntries(); i0++) { |
336 |
< |
if(vertices->At(i0)->NTracks() > 0){ |
337 |
< |
Double_t pD0 = ele->GsfTrk()->D0Corrected(*vertices->At(i0)); |
338 |
< |
d0_real = TMath::Abs(pD0); |
339 |
< |
break; |
333 |
> |
|
334 |
> |
Double_t d0_real = 1e30; |
335 |
> |
if(nVertex >= 0) d0_real = TMath::Abs(ele->GsfTrk()->D0Corrected(*vertices->At(nVertex))); |
336 |
> |
else { |
337 |
> |
Double_t distVtx = 999.0; |
338 |
> |
Int_t closestVtx = 0; |
339 |
> |
for(UInt_t nv=0; nv<vertices->GetEntries(); nv++){ |
340 |
> |
double dz = TMath::Abs(ele->GsfTrk()->DzCorrected(*vertices->At(nv))); |
341 |
> |
if(dz < distVtx) { |
342 |
> |
distVtx = dz; |
343 |
> |
closestVtx = nv; |
344 |
> |
} |
345 |
|
} |
346 |
+ |
d0_real = TMath::Abs(ele->GsfTrk()->D0Corrected(*vertices->At(closestVtx))); |
347 |
|
} |
348 |
|
if(d0_real < fD0Cut) d0cut = kTRUE; |
349 |
|
|
314 |
– |
if (fReverseD0Cut == kTRUE && |
315 |
– |
d0cut == kFALSE && d0_real < 0.05) |
316 |
– |
d0cut = kTRUE; |
317 |
– |
else if(fReverseD0Cut == kTRUE) |
318 |
– |
d0cut = kFALSE; |
319 |
– |
|
350 |
|
return d0cut; |
351 |
|
} |
352 |
|
|
353 |
|
//-------------------------------------------------------------------------------------------------- |
354 |
< |
Bool_t ElectronTools::PassD0Cut(const Electron *ele, const BeamSpotCol *beamspots, Double_t fD0Cut, |
325 |
< |
Bool_t fReverseD0Cut) |
354 |
> |
Bool_t ElectronTools::PassD0Cut(const Electron *ele, const BeamSpotCol *beamspots, Double_t fD0Cut) |
355 |
|
{ |
356 |
|
Bool_t d0cut = kFALSE; |
357 |
|
// d0 cut |
362 |
|
} |
363 |
|
if(d0_real < fD0Cut) d0cut = kTRUE; |
364 |
|
|
336 |
– |
if (fReverseD0Cut == kTRUE && |
337 |
– |
d0cut == kFALSE && d0_real < 0.05) |
338 |
– |
d0cut = kTRUE; |
339 |
– |
else if(fReverseD0Cut == kTRUE) |
340 |
– |
d0cut = kFALSE; |
341 |
– |
|
365 |
|
return d0cut; |
366 |
|
} |
367 |
|
|
368 |
|
//-------------------------------------------------------------------------------------------------- |
369 |
+ |
Bool_t ElectronTools::PassDZCut(const Electron *ele, const VertexCol *vertices, Double_t fDZCut, Int_t nVertex) |
370 |
+ |
{ |
371 |
+ |
Bool_t dzcut = kFALSE; |
372 |
+ |
|
373 |
+ |
Double_t distVtx = 999.0; |
374 |
+ |
if(nVertex >= 0) distVtx = TMath::Abs(ele->GsfTrk()->DzCorrected(*vertices->At(nVertex))); |
375 |
+ |
else { |
376 |
+ |
for(UInt_t nv=0; nv<vertices->GetEntries(); nv++){ |
377 |
+ |
double dz = TMath::Abs(ele->GsfTrk()->DzCorrected(*vertices->At(nv))); |
378 |
+ |
if(dz < distVtx) { |
379 |
+ |
distVtx = dz; |
380 |
+ |
} |
381 |
+ |
} |
382 |
+ |
} |
383 |
+ |
|
384 |
+ |
if(distVtx < fDZCut) dzcut = kTRUE; |
385 |
+ |
|
386 |
+ |
return dzcut; |
387 |
+ |
} |
388 |
+ |
|
389 |
+ |
//-------------------------------------------------------------------------------------------------- |
390 |
|
Bool_t ElectronTools::PassChargeFilter(const Electron *ele) |
391 |
|
{ |
392 |
|
Bool_t passChargeFilter = kTRUE; |
422 |
|
|
423 |
|
for (UInt_t i=0; i<trigobjs->GetEntries(); ++i) { |
424 |
|
const TriggerObject *trigobj = trigobjs->At(i); |
425 |
< |
if (trigobj->TriggerType()==TriggerObject::TriggerCluster || trigobj->TriggerType()==TriggerObject::TriggerElectron) { |
426 |
< |
if (MathUtils::DeltaR(ele,trigobj)<0.3) { |
425 |
> |
if (trigobj->TriggerType()==TriggerObject::TriggerCluster || trigobj->TriggerType()==TriggerObject::TriggerElectron || trigobj->TriggerType()==TriggerObject::TriggerPhoton) { |
426 |
> |
if (MathUtils::DeltaR(ele->SCluster(),trigobj)<0.3) { |
427 |
|
return kTRUE; |
428 |
|
} |
429 |
|
} |
474 |
|
|
475 |
|
//-------------------------------------------------------------------------------------------------- |
476 |
|
Int_t ElectronTools::PassTightId(const Electron *ele, const VertexCol *vertices, |
477 |
< |
const DecayParticleCol *conversions, const Int_t typeCuts){ |
477 |
> |
const DecayParticleCol *conversions, const Int_t typeCuts, |
478 |
> |
Double_t beta){ |
479 |
|
|
480 |
< |
Double_t scEt = ele->SCluster()->Et(); |
481 |
< |
Double_t eOverP = ele->ESuperClusterOverP(); |
480 |
> |
// original code on |
481 |
> |
// http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoEgamma/ElectronIdentification/src/CutBasedElectronID.cc |
482 |
> |
// beta must be computed with a DR cone of 0.4 |
483 |
> |
|
484 |
> |
Double_t scEt = ele->SCluster()->Et(); |
485 |
> |
Double_t scEta = ele->SCluster()->Eta(); |
486 |
|
|
487 |
|
Double_t fBrem = ele->FBrem(); |
488 |
|
Double_t hOverE = ele->HadronicOverEm(); |
493 |
|
|
494 |
|
Int_t mishits = ele->BestTrk()->NExpectedHitsInner(); |
495 |
|
Double_t tkIso = ele->TrackIsolationDr03(); |
496 |
< |
Double_t ecalIso = ele->EcalRecHitIsoDr04(); |
497 |
< |
Double_t ecalIsoPed = (ele->IsEB())?std::max(0.,ecalIso-1.):ecalIso; |
449 |
< |
Double_t hcalIso = ele->HcalTowerSumEtDr04(); |
450 |
< |
Double_t hcalIso1 = ele->HcalDepth1TowerSumEtDr04(); |
451 |
< |
Double_t hcalIso2 = ele->HcalDepth2TowerSumEtDr04(); |
452 |
< |
Double_t e25Max = ele->E25Max(); |
453 |
< |
Double_t e15 = ele->E15(); |
454 |
< |
Double_t e55 = ele->E55(); |
455 |
< |
Double_t e25Maxoe55 = e25Max/e55; |
456 |
< |
Double_t e15oe55 = e15/e55; |
496 |
> |
Double_t ecalIso = ele->EcalRecHitIsoDr04()*beta; |
497 |
> |
Double_t hcalIso = ele->HcalTowerSumEtDr04()*beta; |
498 |
|
|
499 |
|
int cat = Classify(ele); |
500 |
|
int eb; |
504 |
|
else |
505 |
|
eb = 1; |
506 |
|
|
507 |
< |
Int_t result = 0.; |
507 |
> |
// Medium cuts |
508 |
> |
Double_t cutdcotdistMedium[9] = { |
509 |
> |
3.32e-02, 2.92e-02, 2.49e-02, 3.92e-02, 3.41e-02, 3.96e-02, 2.91e-02, 3.95e-02, 7.71e-03}; |
510 |
> |
Double_t cutdetainMedium[9] = { |
511 |
> |
1.33e-02, 4.48e-03, 9.22e-03, 1.54e-02, 7.26e-03, 1.24e-02, 1.29e-02, 3.84e-02, 1.88e-02}; |
512 |
> |
Double_t cutdetainlMedium[9] = { |
513 |
> |
1.21e-02, 4.22e-03, 9.18e-03, 1.61e-02, 6.45e-03, 1.16e-02, 1.23e-02, 6.20e-02, 2.43e-02}; |
514 |
> |
Double_t cutdphiinMedium[9] = { |
515 |
> |
7.09e-02, 2.43e-01, 2.96e-01, 7.98e-02, 2.35e-01, 2.76e-01, 3.42e-01, 4.04e-01, 2.99e-01}; |
516 |
> |
Double_t cutdphiinlMedium[9] = { |
517 |
> |
7.42e-02, 2.43e-01, 2.97e-01, 9.12e-02, 2.26e-01, 2.76e-01, 3.34e-01, 5.58e-01, 2.91e-01}; |
518 |
> |
Double_t cuteseedopcorMedium[9] = { |
519 |
> |
6.42e-01, 9.44e-01, 4.53e-01, 7.62e-01, 3.67e-01, 5.57e-01, 1.98e-01, 9.15e-01, 6.28e-02}; |
520 |
> |
Double_t cutfmishitsMedium[9] = { |
521 |
> |
4.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 5.00e-01, 1.50e+00, 5.00e-01, 5.00e-01}; |
522 |
> |
Double_t cuthoeMedium[9] = { |
523 |
> |
1.96e-01, 6.30e-02, 1.48e-01, 3.66e-01, 5.66e-02, 1.45e-01, 4.29e-01, 4.28e-01, 3.99e-01}; |
524 |
> |
Double_t cuthoelMedium[9] = { |
525 |
> |
2.19e-01, 6.19e-02, 1.47e-01, 3.58e-01, 4.61e-02, 1.46e-01, 3.26e-01, 3.81e-01, 3.89e-01}; |
526 |
> |
Double_t cutip_gsfMedium[9] = { |
527 |
> |
2.45e-02, 9.74e-02, 1.48e-01, 5.49e-02, 5.65e-01, 3.33e-01, 2.04e-01, 5.41e-01, 1.21e-01}; |
528 |
> |
Double_t cutip_gsflMedium[9] = { |
529 |
> |
1.92e-02, 9.81e-02, 1.33e-01, 4.34e-02, 5.65e-01, 3.24e-01, 2.33e-01, 4.30e-01, 6.44e-02}; |
530 |
> |
Double_t cutiso_sumMedium[9] = { |
531 |
> |
1.44e+01, 1.12e+01, 1.09e+01, 1.08e+01, 6.35e+00, 9.78e+00, 1.30e+01, 1.62e+01, 1.96e+00}; |
532 |
> |
Double_t cutiso_sumoetMedium[9] = { |
533 |
> |
1.01e+01, 6.41e+00, 6.00e+00, 8.14e+00, 3.90e+00, 4.76e+00, 6.86e+00, 6.48e+00, 1.74e+01}; |
534 |
> |
Double_t cutiso_sumoetlMedium[9] = { |
535 |
> |
9.44e+00, 7.67e+00, 7.15e+00, 7.34e+00, 3.35e+00, 4.70e+00, 8.32e+00, 7.55e+00, 6.25e+00}; |
536 |
> |
Double_t cutseeMedium[9] = { |
537 |
> |
1.30e-02, 1.09e-02, 1.18e-02, 3.94e-02, 3.04e-02, 3.28e-02, 1.00e-02, 3.73e-02, 6.69e-02}; |
538 |
> |
Double_t cutseelMedium[9] = { |
539 |
> |
1.42e-02, 1.11e-02, 1.29e-02, 4.32e-02, 2.96e-02, 3.82e-02, 1.01e-02, 4.45e-02, 1.19e-01}; |
540 |
> |
|
541 |
> |
// Tight cuts |
542 |
> |
Double_t cutdcotdistTight[9] = { |
543 |
> |
2.68e-02, 2.36e-02, 2.21e-02, 3.72e-02, 3.17e-02, 3.61e-02, 2.55e-02, 3.75e-02, 2.16e-04}; |
544 |
> |
Double_t cutdetainTight[9] = { |
545 |
> |
8.92e-03, 3.96e-03, 8.50e-03, 1.34e-02, 6.27e-03, 1.05e-02, 1.12e-02, 3.09e-02, 1.88e-02}; |
546 |
> |
Double_t cutdetainlTight[9] = { |
547 |
> |
9.23e-03, 3.77e-03, 8.70e-03, 1.39e-02, 5.60e-03, 9.40e-03, 1.07e-02, 6.20e-02, 4.10e-03}; |
548 |
> |
Double_t cutdphiinTight[9] = { |
549 |
> |
6.37e-02, 1.53e-01, 2.90e-01, 7.69e-02, 1.81e-01, 2.34e-01, 3.42e-01, 3.93e-01, 2.84e-01}; |
550 |
> |
Double_t cutdphiinlTight[9] = { |
551 |
> |
6.92e-02, 2.33e-01, 2.96e-01, 8.65e-02, 1.85e-01, 2.76e-01, 3.34e-01, 3.53e-01, 2.90e-01}; |
552 |
> |
Double_t cuteseedopcorTight[9] = { |
553 |
> |
6.52e-01, 9.69e-01, 9.12e-01, 7.79e-01, 3.67e-01, 6.99e-01, 3.28e-01, 9.67e-01, 5.89e-01}; |
554 |
> |
Double_t cutfmishitsTight[9] = { |
555 |
> |
4.50e+00, 1.50e+00, 5.00e-01, 1.50e+00, 1.50e+00, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01}; |
556 |
> |
Double_t cuthoeTight[9] = { |
557 |
> |
1.74e-01, 4.88e-02, 1.46e-01, 3.64e-01, 4.93e-02, 1.45e-01, 4.29e-01, 4.20e-01, 3.99e-01}; |
558 |
> |
Double_t cuthoelTight[9] = { |
559 |
> |
2.19e-01, 5.25e-02, 1.47e-01, 3.57e-01, 4.25e-02, 1.45e-01, 3.26e-01, 3.80e-01, 1.32e-01}; |
560 |
> |
Double_t cutip_gsfTight[9] = { |
561 |
> |
1.58e-02, 8.25e-02, 1.15e-01, 4.05e-02, 5.40e-01, 1.51e-01, 7.74e-02, 4.17e-01, 7.80e-02}; |
562 |
> |
Double_t cutip_gsflTight[9] = { |
563 |
> |
1.27e-02, 6.26e-02, 9.68e-02, 3.02e-02, 5.65e-01, 1.46e-01, 7.90e-02, 4.10e-01, 4.79e-02}; |
564 |
> |
Double_t cutiso_sumTight[9] = { |
565 |
> |
1.23e+01, 9.77e+00, 1.01e+01, 9.77e+00, 6.13e+00, 7.55e+00, 1.30e+01, 1.62e+01, 1.78e+00}; |
566 |
> |
Double_t cutiso_sumoetTight[9] = { |
567 |
> |
7.75e+00, 5.45e+00, 5.67e+00, 5.97e+00, 3.17e+00, 3.86e+00, 6.06e+00, 5.31e+00, 1.05e+01}; |
568 |
> |
Double_t cutiso_sumoetlTight[9] = { |
569 |
> |
7.56e+00, 5.08e+00, 5.77e+00, 5.74e+00, 2.37e+00, 3.32e+00, 4.97e+00, 5.46e+00, 3.82e+00}; |
570 |
> |
Double_t cutseeTight[9] = { |
571 |
> |
1.16e-02, 1.07e-02, 1.08e-02, 3.49e-02, 2.89e-02, 3.08e-02, 9.87e-03, 3.37e-02, 4.40e-02}; |
572 |
> |
Double_t cutseelTight[9] = { |
573 |
> |
1.27e-02, 1.08e-02, 1.13e-02, 4.19e-02, 2.81e-02, 3.02e-02, 9.76e-03, 4.28e-02, 2.98e-02}; |
574 |
> |
|
575 |
> |
// SuperTight cuts |
576 |
> |
Double_t cutdcotdistSuperTight[9] = { |
577 |
> |
2.11e-02, 1.86e-02, 1.55e-02, 3.40e-02, 2.85e-02, 3.32e-02, 1.64e-02, 3.75e-02, 1.30e-04}; |
578 |
> |
Double_t cutdetainSuperTight[9] = { |
579 |
> |
7.84e-03, 3.67e-03, 7.00e-03, 1.28e-02, 5.65e-03, 9.53e-03, 1.08e-02, 2.97e-02, 7.24e-03}; |
580 |
> |
Double_t cutdetainlSuperTight[9] = { |
581 |
> |
7.61e-03, 3.28e-03, 6.57e-03, 1.03e-02, 5.05e-03, 8.55e-03, 1.07e-02, 2.94e-02, 4.10e-03}; |
582 |
> |
Double_t cutdphiinSuperTight[9] = { |
583 |
> |
4.83e-02, 7.39e-02, 2.38e-01, 5.74e-02, 1.29e-01, 2.13e-01, 3.31e-01, 3.93e-01, 2.84e-01}; |
584 |
> |
Double_t cutdphiinlSuperTight[9] = { |
585 |
> |
5.79e-02, 7.21e-02, 2.18e-01, 7.70e-02, 1.41e-01, 2.11e-01, 2.43e-01, 3.53e-01, 2.89e-01}; |
586 |
> |
Double_t cuteseedopcorSuperTight[9] = { |
587 |
> |
7.32e-01, 9.77e-01, 9.83e-01, 8.55e-01, 4.31e-01, 7.35e-01, 4.18e-01, 9.99e-01, 5.89e-01}; |
588 |
> |
Double_t cutfmishitsSuperTight[9] = { |
589 |
> |
3.50e+00, 1.50e+00, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01}; |
590 |
> |
Double_t cuthoeSuperTight[9] = { |
591 |
> |
9.19e-02, 4.11e-02, 1.42e-01, 3.35e-01, 3.82e-02, 1.41e-01, 4.29e-01, 4.01e-01, 3.99e-01}; |
592 |
> |
Double_t cuthoelSuperTight[9] = { |
593 |
> |
7.51e-02, 3.81e-02, 1.41e-01, 3.32e-01, 3.10e-02, 1.43e-01, 2.35e-01, 3.80e-01, 1.32e-01}; |
594 |
> |
Double_t cutip_gsfSuperTight[9] = { |
595 |
> |
1.42e-02, 2.66e-02, 1.06e-01, 3.38e-02, 3.23e-01, 1.07e-01, 7.74e-02, 2.32e-01, 7.80e-02}; |
596 |
> |
Double_t cutip_gsflSuperTight[9] = { |
597 |
> |
1.15e-02, 2.72e-02, 8.41e-02, 2.49e-02, 4.17e-01, 1.02e-01, 7.90e-02, 1.69e-01, 4.79e-02}; |
598 |
> |
Double_t cutiso_sumSuperTight[9] = { |
599 |
> |
8.95e+00, 8.18e+00, 8.75e+00, 7.47e+00, 5.43e+00, 5.87e+00, 8.16e+00, 1.02e+01, 1.78e+00}; |
600 |
> |
Double_t cutiso_sumoetSuperTight[9] = { |
601 |
> |
6.45e+00, 5.14e+00, 4.99e+00, 5.21e+00, 2.65e+00, 3.12e+00, 4.52e+00, 4.72e+00, 3.68e+00}; |
602 |
> |
Double_t cutiso_sumoetlSuperTight[9] = { |
603 |
> |
6.02e+00, 3.96e+00, 4.23e+00, 4.73e+00, 1.99e+00, 2.64e+00, 3.72e+00, 3.81e+00, 1.44e+00}; |
604 |
> |
Double_t cutseeSuperTight[9] = { |
605 |
> |
1.09e-02, 1.05e-02, 1.05e-02, 3.24e-02, 2.81e-02, 2.95e-02, 9.77e-03, 2.75e-02, 2.95e-02}; |
606 |
> |
Double_t cutseelSuperTight[9] = { |
607 |
> |
1.12e-02, 1.05e-02, 1.07e-02, 3.51e-02, 2.75e-02, 2.87e-02, 9.59e-03, 2.67e-02, 2.98e-02}; |
608 |
> |
|
609 |
> |
// HyperTight1 cuts |
610 |
> |
Double_t cutdcotdistHyperTight1[9] = { |
611 |
> |
1.48e-02, 1.50e-02, 8.25e-03, 3.16e-02, 2.85e-02, 3.15e-02, 6.62e-03, 3.48e-02, 3.63e-06}; |
612 |
> |
Double_t cutdetainHyperTight1[9] = { |
613 |
> |
6.51e-03, 3.51e-03, 5.53e-03, 9.16e-03, 5.30e-03, 8.28e-03, 1.08e-02, 2.97e-02, 7.24e-03}; |
614 |
> |
Double_t cutdetainlHyperTight1[9] = { |
615 |
> |
6.05e-03, 3.23e-03, 4.93e-03, 8.01e-03, 4.93e-03, 7.91e-03, 1.03e-02, 2.94e-02, 4.10e-03}; |
616 |
> |
Double_t cutdphiinHyperTight1[9] = { |
617 |
> |
4.83e-02, 4.91e-02, 2.30e-01, 3.48e-02, 7.44e-02, 2.04e-01, 9.95e-02, 3.93e-01, 2.84e-01}; |
618 |
> |
Double_t cutdphiinlHyperTight1[9] = { |
619 |
> |
4.74e-02, 4.51e-02, 2.18e-01, 2.99e-02, 7.37e-02, 2.11e-01, 9.99e-02, 3.53e-01, 2.89e-01}; |
620 |
> |
Double_t cuteseedopcorHyperTight1[9] = { |
621 |
> |
7.72e-01, 9.90e-01, 1.01e+00, 8.55e-01, 9.11e-01, 7.72e-01, 9.17e-01, 1.06e+00, 7.63e-01}; |
622 |
> |
Double_t cutfmishitsHyperTight1[9] = { |
623 |
> |
3.50e+00, 1.50e+00, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01}; |
624 |
> |
Double_t cuthoeHyperTight1[9] = { |
625 |
> |
6.17e-02, 3.70e-02, 1.41e-01, 2.91e-01, 3.82e-02, 1.34e-01, 4.19e-01, 3.87e-01, 3.93e-01}; |
626 |
> |
Double_t cuthoelHyperTight1[9] = { |
627 |
> |
4.43e-02, 3.57e-02, 1.41e-01, 2.81e-01, 3.07e-02, 1.28e-01, 2.27e-01, 3.80e-01, 1.32e-01}; |
628 |
> |
Double_t cutip_gsfHyperTight1[9] = { |
629 |
> |
1.21e-02, 1.76e-02, 6.01e-02, 2.96e-02, 1.74e-01, 9.70e-02, 7.74e-02, 1.33e-01, 7.80e-02}; |
630 |
> |
Double_t cutip_gsflHyperTight1[9] = { |
631 |
> |
1.01e-02, 1.56e-02, 6.87e-02, 2.13e-02, 1.25e-01, 8.16e-02, 7.90e-02, 1.30e-01, 4.79e-02}; |
632 |
> |
Double_t cutiso_sumHyperTight1[9] = { |
633 |
> |
7.92e+00, 6.85e+00, 7.87e+00, 6.77e+00, 4.47e+00, 5.28e+00, 6.57e+00, 1.02e+01, 1.78e+00}; |
634 |
> |
Double_t cutiso_sumoetHyperTight1[9] = { |
635 |
> |
5.20e+00, 3.93e+00, 3.88e+00, 4.10e+00, 2.40e+00, 2.43e+00, 3.49e+00, 3.94e+00, 3.01e+00}; |
636 |
> |
Double_t cutiso_sumoetlHyperTight1[9] = { |
637 |
> |
4.18e+00, 3.12e+00, 3.44e+00, 3.25e+00, 1.77e+00, 2.06e+00, 2.83e+00, 3.12e+00, 1.43e+00}; |
638 |
> |
Double_t cutseeHyperTight1[9] = { |
639 |
> |
1.05e-02, 1.04e-02, 1.01e-02, 3.24e-02, 2.80e-02, 2.85e-02, 9.67e-03, 2.61e-02, 2.95e-02}; |
640 |
> |
Double_t cutseelHyperTight1[9] = { |
641 |
> |
1.04e-02, 1.03e-02, 1.01e-02, 3.04e-02, 2.74e-02, 2.78e-02, 9.58e-03, 2.54e-02, 2.83e-02}; |
642 |
> |
|
643 |
> |
// HyperTight2 cuts |
644 |
> |
Double_t cutdcotdistHyperTight2[9] = { |
645 |
> |
1.15e-02, 1.07e-02, 4.01e-03, 2.97e-02, 2.85e-02, 3.10e-02, 9.34e-04, 3.40e-02, 2.82e-07}; |
646 |
> |
Double_t cutdetainHyperTight2[9] = { |
647 |
> |
5.29e-03, 2.56e-03, 4.89e-03, 7.89e-03, 5.30e-03, 7.37e-03, 8.91e-03, 9.36e-03, 5.94e-03}; |
648 |
> |
Double_t cutdetainlHyperTight2[9] = { |
649 |
> |
4.48e-03, 2.59e-03, 4.42e-03, 6.54e-03, 4.93e-03, 6.98e-03, 8.49e-03, 9.06e-03, -4.81e-03}; |
650 |
> |
Double_t cutdphiinHyperTight2[9] = { |
651 |
> |
2.41e-02, 3.83e-02, 1.48e-01, 2.91e-02, 3.15e-02, 1.57e-01, 8.90e-02, 1.02e-01, 2.81e-01}; |
652 |
> |
Double_t cutdphiinlHyperTight2[9] = { |
653 |
> |
2.13e-02, 3.79e-02, 1.25e-01, 2.24e-02, 3.69e-02, 1.64e-01, 9.99e-02, 9.23e-02, 2.37e-01}; |
654 |
> |
Double_t cuteseedopcorHyperTight2[9] = { |
655 |
> |
1.03e+00, 9.95e-01, 1.03e+00, 1.01e+00, 9.46e-01, 9.03e-01, 9.97e-01, 1.14e+00, 8.00e-01}; |
656 |
> |
Double_t cutfmishitsHyperTight2[9] = { |
657 |
> |
1.50e+00, 1.50e+00, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, -5.00e-01}; |
658 |
> |
Double_t cuthoeHyperTight2[9] = { |
659 |
> |
4.94e-02, 3.45e-02, 1.40e-01, 2.02e-01, 3.82e-02, 1.19e-01, 1.23e-01, 3.82e-01, 2.50e-01}; |
660 |
> |
Double_t cuthoelHyperTight2[9] = { |
661 |
> |
4.04e-02, 3.42e-02, 1.31e-01, 1.85e-01, 3.01e-02, 1.27e-01, 2.27e-01, 3.80e-01, 1.32e-01}; |
662 |
> |
Double_t cutip_gsfHyperTight2[9] = { |
663 |
> |
1.14e-02, 1.38e-02, 5.29e-02, 1.87e-02, 1.31e-01, 8.63e-02, 7.74e-02, 1.04e-01, 2.42e-02}; |
664 |
> |
Double_t cutip_gsflHyperTight2[9] = { |
665 |
> |
9.83e-03, 1.35e-02, 4.27e-02, 1.72e-02, 1.25e-01, 7.92e-02, 7.90e-02, 1.30e-01, 3.40e-02}; |
666 |
> |
Double_t cutiso_sumHyperTight2[9] = { |
667 |
> |
6.40e+00, 5.77e+00, 6.54e+00, 5.22e+00, 3.86e+00, 4.63e+00, 6.31e+00, 1.02e+01, 1.78e+00}; |
668 |
> |
Double_t cutiso_sumoetHyperTight2[9] = { |
669 |
> |
4.03e+00, 3.03e+00, 3.24e+00, 3.13e+00, 2.05e+00, 2.01e+00, 2.99e+00, 3.44e+00, 2.76e+00}; |
670 |
> |
Double_t cutiso_sumoetlHyperTight2[9] = { |
671 |
> |
3.08e+00, 2.31e+00, 2.84e+00, 2.53e+00, 1.65e+00, 1.72e+00, 2.34e+00, 3.11e+00, 1.35e+00}; |
672 |
> |
Double_t cutseeHyperTight2[9] = { |
673 |
> |
1.03e-02, 1.03e-02, 9.88e-03, 3.03e-02, 2.79e-02, 2.79e-02, 9.67e-03, 2.52e-02, 2.58e-02}; |
674 |
> |
Double_t cutseelHyperTight2[9] = { |
675 |
> |
1.02e-02, 1.02e-02, 9.80e-03, 2.90e-02, 2.74e-02, 2.75e-02, 9.58e-03, 2.49e-02, 2.50e-02}; |
676 |
> |
|
677 |
> |
// HyperTight3 cuts |
678 |
> |
Double_t cutdcotdistHyperTight3[9] = { |
679 |
> |
9.63e-03, 5.11e-03, 1.95e-04, 2.97e-02, 2.85e-02, 2.18e-02, 2.61e-05, 2.57e-02, 2.82e-07}; |
680 |
> |
Double_t cutdetainHyperTight3[9] = { |
681 |
> |
4.86e-03, 2.29e-03, 4.40e-03, 7.79e-03, 4.07e-03, 6.33e-03, 7.70e-03, 7.93e-03, 5.94e-03}; |
682 |
> |
Double_t cutdetainlHyperTight3[9] = { |
683 |
> |
4.48e-03, 2.30e-03, 4.14e-03, 6.04e-03, 3.87e-03, 6.09e-03, 7.97e-03, 8.04e-03, -4.81e-03}; |
684 |
> |
Double_t cutdphiinHyperTight3[9] = { |
685 |
> |
2.41e-02, 2.88e-02, 7.39e-02, 2.91e-02, 1.91e-02, 1.14e-01, 3.61e-02, 8.92e-02, 2.81e-01}; |
686 |
> |
Double_t cutdphiinlHyperTight3[9] = { |
687 |
> |
1.95e-02, 3.42e-02, 8.06e-02, 2.22e-02, 2.26e-02, 9.73e-02, 4.51e-02, 9.23e-02, 2.37e-01}; |
688 |
> |
Double_t cuteseedopcorHyperTight3[9] = { |
689 |
> |
1.07e+00, 1.01e+00, 1.08e+00, 1.01e+00, 9.69e-01, 9.10e-01, 1.04e+00, 1.20e+00, 8.00e-01}; |
690 |
> |
Double_t cutfmishitsHyperTight3[9] = { |
691 |
> |
5.00e-01, 1.50e+00, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, -5.00e-01}; |
692 |
> |
Double_t cuthoeHyperTight3[9] = { |
693 |
> |
3.52e-02, 3.45e-02, 1.33e-01, 1.88e-01, 2.72e-02, 1.19e-01, 9.28e-02, 2.46e-01, 2.50e-01}; |
694 |
> |
Double_t cuthoelHyperTight3[9] = { |
695 |
> |
4.04e-02, 3.40e-02, 1.31e-01, 1.84e-01, 2.64e-02, 1.18e-01, 9.76e-02, 2.53e-01, 1.32e-01}; |
696 |
> |
Double_t cutip_gsfHyperTight3[9] = { |
697 |
> |
1.14e-02, 1.26e-02, 3.79e-02, 1.68e-02, 1.21e-01, 5.29e-02, 7.74e-02, 3.35e-02, 2.42e-02}; |
698 |
> |
Double_t cutip_gsflHyperTight3[9] = { |
699 |
> |
9.83e-03, 1.18e-02, 3.59e-02, 1.56e-02, 1.20e-01, 5.36e-02, 7.90e-02, 2.88e-02, 3.40e-02}; |
700 |
> |
Double_t cutiso_sumHyperTight3[9] = { |
701 |
> |
5.40e+00, 5.41e+00, 5.88e+00, 4.32e+00, 3.86e+00, 4.33e+00, 5.87e+00, 9.05e+00, 1.78e+00}; |
702 |
> |
Double_t cutiso_sumoetHyperTight3[9] = { |
703 |
> |
3.03e+00, 2.50e+00, 2.58e+00, 2.44e+00, 1.91e+00, 1.76e+00, 2.92e+00, 3.13e+00, 2.76e+00}; |
704 |
> |
Double_t cutiso_sumoetlHyperTight3[9] = { |
705 |
> |
2.36e+00, 2.02e+00, 2.29e+00, 1.89e+00, 1.65e+00, 1.69e+00, 2.03e+00, 2.79e+00, 1.35e+00}; |
706 |
> |
Double_t cutseeHyperTight3[9] = { |
707 |
> |
1.03e-02, 1.01e-02, 9.84e-03, 2.89e-02, 2.74e-02, 2.73e-02, 9.47e-03, 2.44e-02, 2.58e-02}; |
708 |
> |
Double_t cutseelHyperTight3[9] = { |
709 |
> |
1.02e-02, 1.00e-02, 9.73e-03, 2.79e-02, 2.73e-02, 2.69e-02, 9.40e-03, 2.46e-02, 2.50e-02}; |
710 |
> |
|
711 |
> |
// HyperTight4 cuts |
712 |
> |
Double_t cutdcotdistHyperTight4[9] = { |
713 |
> |
2.70e-04, 1.43e-04, 1.95e-04, 2.64e-03, 2.82e-02, 1.64e-02, 2.61e-05, 2.57e-02, 2.82e-07}; |
714 |
> |
Double_t cutdetainHyperTight4[9] = { |
715 |
> |
2.44e-03, 1.67e-03, 2.26e-03, 3.43e-03, 3.51e-03, 3.52e-03, 2.98e-03, 4.79e-03, 5.94e-03}; |
716 |
> |
Double_t cutdetainlHyperTight4[9] = { |
717 |
> |
2.34e-03, 1.29e-03, 2.30e-03, 3.30e-03, 3.61e-03, 3.84e-03, 2.53e-03, 3.66e-03, -4.81e-03}; |
718 |
> |
Double_t cutdphiinHyperTight4[9] = { |
719 |
> |
8.44e-03, 5.21e-03, 2.18e-02, 1.39e-02, 7.82e-03, 1.52e-02, 2.59e-02, 3.87e-02, 2.81e-01}; |
720 |
> |
Double_t cutdphiinlHyperTight4[9] = { |
721 |
> |
5.77e-03, 3.20e-03, 2.85e-02, 2.22e-02, 7.00e-03, 1.84e-02, 2.91e-02, 4.40e-02, 2.37e-01}; |
722 |
> |
Double_t cuteseedopcorHyperTight4[9] = { |
723 |
> |
1.15e+00, 1.01e+00, 1.21e+00, 1.07e+00, 9.69e-01, 9.10e-01, 1.08e+00, 1.36e+00, 8.00e-01}; |
724 |
> |
Double_t cutfmishitsHyperTight4[9] = { |
725 |
> |
5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, 5.00e-01, -5.00e-01}; |
726 |
> |
Double_t cuthoeHyperTight4[9] = { |
727 |
> |
2.39e-02, 2.68e-02, 2.12e-02, 1.03e-01, 9.92e-03, 7.07e-02, 7.12e-02, 1.48e-01, 2.50e-01}; |
728 |
> |
Double_t cuthoelHyperTight4[9] = { |
729 |
> |
2.87e-02, 1.94e-02, 2.16e-02, 5.68e-02, 1.35e-02, 4.04e-02, 7.98e-02, 1.50e-01, 1.32e-01}; |
730 |
> |
Double_t cutip_gsfHyperTight4[9] = { |
731 |
> |
7.61e-03, 5.22e-03, 3.79e-02, 1.02e-02, 4.62e-02, 1.82e-02, 7.74e-02, 3.35e-02, 2.42e-02}; |
732 |
> |
Double_t cutip_gsflHyperTight4[9] = { |
733 |
> |
7.81e-03, 4.25e-03, 3.08e-02, 1.04e-02, 2.35e-02, 2.45e-02, 7.90e-02, 2.88e-02, 3.40e-02}; |
734 |
> |
Double_t cutiso_sumHyperTight4[9] = { |
735 |
> |
5.40e+00, 5.41e+00, 5.88e+00, 4.32e+00, 3.86e+00, 4.33e+00, 5.86e+00, 9.05e+00, 1.78e+00}; |
736 |
> |
Double_t cutiso_sumoetHyperTight4[9] = { |
737 |
> |
2.53e+00, 2.10e+00, 1.87e+00, 1.84e+00, 1.79e+00, 1.61e+00, 2.53e+00, 1.98e+00, 2.76e+00}; |
738 |
> |
Double_t cutiso_sumoetlHyperTight4[9] = { |
739 |
> |
2.28e+00, 2.02e+00, 2.04e+00, 1.69e+00, 1.65e+00, 1.61e+00, 2.03e+00, 1.82e+00, 1.35e+00}; |
740 |
> |
Double_t cutseeHyperTight4[9] = { |
741 |
> |
9.99e-03, 9.61e-03, 9.65e-03, 2.75e-02, 2.61e-02, 2.64e-02, 9.18e-03, 2.44e-02, 2.58e-02}; |
742 |
> |
Double_t cutseelHyperTight4[9] = { |
743 |
> |
9.66e-03, 9.69e-03, 9.58e-03, 2.73e-02, 2.66e-02, 2.66e-02, 8.64e-03, 2.46e-02, 2.50e-02}; |
744 |
> |
|
745 |
> |
Double_t cutdcotdist[9]; |
746 |
> |
Double_t cutdetain[9]; |
747 |
> |
Double_t cutdetainl[9]; |
748 |
> |
Double_t cutdphiin[9]; |
749 |
> |
Double_t cutdphiinl[9]; |
750 |
> |
Double_t cuteseedopcor[9]; |
751 |
> |
Double_t cutfmishits[9]; |
752 |
> |
Double_t cuthoe[9]; |
753 |
> |
Double_t cuthoel[9]; |
754 |
> |
Double_t cutip_gsf[9]; |
755 |
> |
Double_t cutip_gsfl[9]; |
756 |
> |
Double_t cutiso_sum[9]; |
757 |
> |
Double_t cutiso_sumoet[9]; |
758 |
> |
Double_t cutiso_sumoetl[9]; |
759 |
> |
Double_t cutsee[9]; |
760 |
> |
Double_t cutseel[9]; |
761 |
> |
if (typeCuts == 0) { |
762 |
> |
memcpy(cutdcotdist ,cutdcotdistMedium ,sizeof(cutdcotdistMedium)); |
763 |
> |
memcpy(cutdetain ,cutdetainMedium ,sizeof(cutdetainMedium)); |
764 |
> |
memcpy(cutdetainl ,cutdetainlMedium ,sizeof(cutdetainlMedium)); |
765 |
> |
memcpy(cutdphiin ,cutdphiinMedium ,sizeof(cutdphiinMedium)); |
766 |
> |
memcpy(cutdphiinl ,cutdphiinlMedium ,sizeof(cutdphiinlMedium)); |
767 |
> |
memcpy(cuteseedopcor ,cuteseedopcorMedium ,sizeof(cuteseedopcorMedium)); |
768 |
> |
memcpy(cutfmishits ,cutfmishitsMedium ,sizeof(cutfmishitsMedium)); |
769 |
> |
memcpy(cuthoe ,cuthoeMedium ,sizeof(cuthoeMedium)); |
770 |
> |
memcpy(cuthoel ,cuthoelMedium ,sizeof(cuthoelMedium)); |
771 |
> |
memcpy(cutip_gsf ,cutip_gsfMedium ,sizeof(cutip_gsfMedium)); |
772 |
> |
memcpy(cutip_gsfl ,cutip_gsflMedium ,sizeof(cutip_gsflMedium)); |
773 |
> |
memcpy(cutiso_sum ,cutiso_sumMedium ,sizeof(cutiso_sumMedium)); |
774 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetMedium ,sizeof(cutiso_sumoetMedium)); |
775 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlMedium,sizeof(cutiso_sumoetlMedium)); |
776 |
> |
memcpy(cutsee ,cutseeMedium ,sizeof(cutseeMedium)); |
777 |
> |
memcpy(cutseel ,cutseelMedium ,sizeof(cutseelMedium)); |
778 |
> |
} |
779 |
> |
else if(typeCuts == 1) { |
780 |
> |
memcpy(cutdcotdist ,cutdcotdistTight ,sizeof(cutdcotdistTight)); |
781 |
> |
memcpy(cutdetain ,cutdetainTight ,sizeof(cutdetainTight)); |
782 |
> |
memcpy(cutdetainl ,cutdetainlTight ,sizeof(cutdetainlTight)); |
783 |
> |
memcpy(cutdphiin ,cutdphiinTight ,sizeof(cutdphiinTight)); |
784 |
> |
memcpy(cutdphiinl ,cutdphiinlTight ,sizeof(cutdphiinlTight)); |
785 |
> |
memcpy(cuteseedopcor ,cuteseedopcorTight ,sizeof(cuteseedopcorTight)); |
786 |
> |
memcpy(cutfmishits ,cutfmishitsTight ,sizeof(cutfmishitsTight)); |
787 |
> |
memcpy(cuthoe ,cuthoeTight ,sizeof(cuthoeTight)); |
788 |
> |
memcpy(cuthoel ,cuthoelTight ,sizeof(cuthoelTight)); |
789 |
> |
memcpy(cutip_gsf ,cutip_gsfTight ,sizeof(cutip_gsfTight)); |
790 |
> |
memcpy(cutip_gsfl ,cutip_gsflTight ,sizeof(cutip_gsflTight)); |
791 |
> |
memcpy(cutiso_sum ,cutiso_sumTight ,sizeof(cutiso_sumTight)); |
792 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetTight ,sizeof(cutiso_sumoetTight)); |
793 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlTight,sizeof(cutiso_sumoetlTight)); |
794 |
> |
memcpy(cutsee ,cutseeTight ,sizeof(cutseeTight)); |
795 |
> |
memcpy(cutseel ,cutseelTight ,sizeof(cutseelTight)); |
796 |
> |
} |
797 |
> |
else if(typeCuts == 2) { |
798 |
> |
memcpy(cutdcotdist ,cutdcotdistSuperTight ,sizeof(cutdcotdistSuperTight)); |
799 |
> |
memcpy(cutdetain ,cutdetainSuperTight ,sizeof(cutdetainSuperTight)); |
800 |
> |
memcpy(cutdetainl ,cutdetainlSuperTight ,sizeof(cutdetainlSuperTight)); |
801 |
> |
memcpy(cutdphiin ,cutdphiinSuperTight ,sizeof(cutdphiinSuperTight)); |
802 |
> |
memcpy(cutdphiinl ,cutdphiinlSuperTight ,sizeof(cutdphiinlSuperTight)); |
803 |
> |
memcpy(cuteseedopcor ,cuteseedopcorSuperTight ,sizeof(cuteseedopcorSuperTight)); |
804 |
> |
memcpy(cutfmishits ,cutfmishitsSuperTight ,sizeof(cutfmishitsSuperTight)); |
805 |
> |
memcpy(cuthoe ,cuthoeSuperTight ,sizeof(cuthoeSuperTight)); |
806 |
> |
memcpy(cuthoel ,cuthoelSuperTight ,sizeof(cuthoelSuperTight)); |
807 |
> |
memcpy(cutip_gsf ,cutip_gsfSuperTight ,sizeof(cutip_gsfSuperTight)); |
808 |
> |
memcpy(cutip_gsfl ,cutip_gsflSuperTight ,sizeof(cutip_gsflSuperTight)); |
809 |
> |
memcpy(cutiso_sum ,cutiso_sumSuperTight ,sizeof(cutiso_sumSuperTight)); |
810 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetSuperTight ,sizeof(cutiso_sumoetSuperTight)); |
811 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlSuperTight,sizeof(cutiso_sumoetlSuperTight)); |
812 |
> |
memcpy(cutsee ,cutseeSuperTight ,sizeof(cutseeSuperTight)); |
813 |
> |
memcpy(cutseel ,cutseelSuperTight ,sizeof(cutseelSuperTight)); |
814 |
> |
} |
815 |
> |
else if(typeCuts == 3) { |
816 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight1 ,sizeof(cutdcotdistHyperTight1)); |
817 |
> |
memcpy(cutdetain ,cutdetainHyperTight1 ,sizeof(cutdetainHyperTight1)); |
818 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight1 ,sizeof(cutdetainlHyperTight1)); |
819 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight1 ,sizeof(cutdphiinHyperTight1)); |
820 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight1 ,sizeof(cutdphiinlHyperTight1)); |
821 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight1 ,sizeof(cuteseedopcorHyperTight1)); |
822 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight1 ,sizeof(cutfmishitsHyperTight1)); |
823 |
> |
memcpy(cuthoe ,cuthoeHyperTight1 ,sizeof(cuthoeHyperTight1)); |
824 |
> |
memcpy(cuthoel ,cuthoelHyperTight1 ,sizeof(cuthoelHyperTight1)); |
825 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight1 ,sizeof(cutip_gsfHyperTight1)); |
826 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight1 ,sizeof(cutip_gsflHyperTight1)); |
827 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight1 ,sizeof(cutiso_sumHyperTight1)); |
828 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight1 ,sizeof(cutiso_sumoetHyperTight1)); |
829 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight1,sizeof(cutiso_sumoetlHyperTight1)); |
830 |
> |
memcpy(cutsee ,cutseeHyperTight1 ,sizeof(cutseeHyperTight1)); |
831 |
> |
memcpy(cutseel ,cutseelHyperTight1 ,sizeof(cutseelHyperTight1)); |
832 |
> |
} |
833 |
> |
else if(typeCuts == 4) { |
834 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight2 ,sizeof(cutdcotdistHyperTight2)); |
835 |
> |
memcpy(cutdetain ,cutdetainHyperTight2 ,sizeof(cutdetainHyperTight2)); |
836 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight2 ,sizeof(cutdetainlHyperTight2)); |
837 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight2 ,sizeof(cutdphiinHyperTight2)); |
838 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight2 ,sizeof(cutdphiinlHyperTight2)); |
839 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight2 ,sizeof(cuteseedopcorHyperTight2)); |
840 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight2 ,sizeof(cutfmishitsHyperTight2)); |
841 |
> |
memcpy(cuthoe ,cuthoeHyperTight2 ,sizeof(cuthoeHyperTight2)); |
842 |
> |
memcpy(cuthoel ,cuthoelHyperTight2 ,sizeof(cuthoelHyperTight2)); |
843 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight2 ,sizeof(cutip_gsfHyperTight2)); |
844 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight2 ,sizeof(cutip_gsflHyperTight2)); |
845 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight2 ,sizeof(cutiso_sumHyperTight2)); |
846 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight2 ,sizeof(cutiso_sumoetHyperTight2)); |
847 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight2,sizeof(cutiso_sumoetlHyperTight2)); |
848 |
> |
memcpy(cutsee ,cutseeHyperTight2 ,sizeof(cutseeHyperTight2)); |
849 |
> |
memcpy(cutseel ,cutseelHyperTight2 ,sizeof(cutseelHyperTight2)); |
850 |
> |
} |
851 |
> |
else if(typeCuts == 5) { |
852 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight3 ,sizeof(cutdcotdistHyperTight3)); |
853 |
> |
memcpy(cutdetain ,cutdetainHyperTight3 ,sizeof(cutdetainHyperTight3)); |
854 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight3 ,sizeof(cutdetainlHyperTight3)); |
855 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight3 ,sizeof(cutdphiinHyperTight3)); |
856 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight3 ,sizeof(cutdphiinlHyperTight3)); |
857 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight3 ,sizeof(cuteseedopcorHyperTight3)); |
858 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight3 ,sizeof(cutfmishitsHyperTight3)); |
859 |
> |
memcpy(cuthoe ,cuthoeHyperTight3 ,sizeof(cuthoeHyperTight3)); |
860 |
> |
memcpy(cuthoel ,cuthoelHyperTight3 ,sizeof(cuthoelHyperTight3)); |
861 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight3 ,sizeof(cutip_gsfHyperTight3)); |
862 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight3 ,sizeof(cutip_gsflHyperTight3)); |
863 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight3 ,sizeof(cutiso_sumHyperTight3)); |
864 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight3 ,sizeof(cutiso_sumoetHyperTight3)); |
865 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight3,sizeof(cutiso_sumoetlHyperTight3)); |
866 |
> |
memcpy(cutsee ,cutseeHyperTight3 ,sizeof(cutseeHyperTight3)); |
867 |
> |
memcpy(cutseel ,cutseelHyperTight3 ,sizeof(cutseelHyperTight3)); |
868 |
> |
} |
869 |
> |
else if(typeCuts == 6) { |
870 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight4 ,sizeof(cutdcotdistHyperTight4)); |
871 |
> |
memcpy(cutdetain ,cutdetainHyperTight4 ,sizeof(cutdetainHyperTight4)); |
872 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight4 ,sizeof(cutdetainlHyperTight4)); |
873 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight4 ,sizeof(cutdphiinHyperTight4)); |
874 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight4 ,sizeof(cutdphiinlHyperTight4)); |
875 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight4 ,sizeof(cuteseedopcorHyperTight4)); |
876 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight4 ,sizeof(cutfmishitsHyperTight4)); |
877 |
> |
memcpy(cuthoe ,cuthoeHyperTight4 ,sizeof(cuthoeHyperTight4)); |
878 |
> |
memcpy(cuthoel ,cuthoelHyperTight4 ,sizeof(cuthoelHyperTight4)); |
879 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight4 ,sizeof(cutip_gsfHyperTight4)); |
880 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight4 ,sizeof(cutip_gsflHyperTight4)); |
881 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight4 ,sizeof(cutiso_sumHyperTight4)); |
882 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight4 ,sizeof(cutiso_sumoetHyperTight4)); |
883 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight4,sizeof(cutiso_sumoetlHyperTight4)); |
884 |
> |
memcpy(cutsee ,cutseeHyperTight4 ,sizeof(cutseeHyperTight4)); |
885 |
> |
memcpy(cutseel ,cutseelHyperTight4 ,sizeof(cutseelHyperTight4)); |
886 |
> |
} |
887 |
> |
else { |
888 |
> |
return 0; |
889 |
> |
} |
890 |
> |
int result = 0; |
891 |
|
|
892 |
< |
Int_t bin = 0; |
892 |
> |
const int ncuts = 10; |
893 |
> |
std::vector<bool> cut_results(ncuts, false); |
894 |
|
|
895 |
< |
Double_t WantBin = kFALSE; |
896 |
< |
if(WantBin) { |
897 |
< |
if (scEt < 20.) |
898 |
< |
bin = 2; |
899 |
< |
else if (scEt > 30.) |
900 |
< |
bin = 0; |
901 |
< |
else |
902 |
< |
bin = 1; |
903 |
< |
} |
479 |
< |
|
480 |
< |
if (fBrem > 0) |
481 |
< |
eSeedOverPin = eSeedOverPin + fBrem; |
482 |
< |
|
483 |
< |
if(typeCuts == 3 || typeCuts == 4){ |
484 |
< |
// Loose robust cuts |
485 |
< |
Double_t robustlooseEleIDCuts[52] = { |
486 |
< |
0.05, 0.0103, 0.8, 0.00688, -1, -1, 7.33, 4.68, 9999., 9999., 9999.,9999., 9999.,9999., 9999., 9999.,9999., 9999., 0.000, -9999., 9999., 9999., 9999, -1, 0, 0, |
487 |
< |
0.0389, 0.0307, 0.7, 0.00944, -1, -1, 7.76, 3.09, 2.23, 9999., 9999.,9999., 9999.,9999., 9999., 9999.,9999., 9999., 0.000, -9999., 9999., 9999., 9999, -1, 0, 0 |
488 |
< |
}; |
489 |
< |
// Tight robust cuts |
490 |
< |
Double_t robusttightEleIDCuts[52] = { |
491 |
< |
0.0201, 0.0102, 0.0211, 0.00606, -1, -1, 2.34, 3.24, 4.51, 9999., 9999.,9999., 9999.,9999., 9999., 9999.,9999., 9999., 0.000, -9999., 9999., 9999., 9999, -1, 0, 0, |
492 |
< |
0.00253, 0.0291, 0.022, 0.0032, -1, -1, 0.826, 2.7, 0.255, 9999., 9999.,9999., 9999.,9999., 9999., 9999.,9999., 9999., 0.000, -9999., 9999., 9999., 9999, -1, 0, 0 |
493 |
< |
}; |
494 |
< |
Double_t cut[52]; |
495 |
< |
if (typeCuts == 3) { |
496 |
< |
memcpy(cut ,robustlooseEleIDCuts ,sizeof(cut)); |
497 |
< |
} |
498 |
< |
else { |
499 |
< |
memcpy(cut ,robusttightEleIDCuts ,sizeof(cut)); |
500 |
< |
} |
895 |
> |
float iso_sum = tkIso + ecalIso + hcalIso; |
896 |
> |
if(fabs(scEta)>1.5) |
897 |
> |
iso_sum += (fabs(scEta)-1.5)*1.09; |
898 |
> |
|
899 |
> |
float iso_sumoet = iso_sum*(40./scEt); |
900 |
> |
|
901 |
> |
float eseedopincor = eSeedOverPin + fBrem; |
902 |
> |
if(fBrem < 0) |
903 |
> |
eseedopincor = eSeedOverPin; |
904 |
|
|
905 |
< |
if ((tkIso > cut[26*eb+6]) || (ecalIso > cut[26*eb+7]) || (hcalIso > cut[26*eb+8]) || (hcalIso1 > cut[26*eb+9]) || (hcalIso2 > cut[26*eb+10]) || |
906 |
< |
(tkIso/ele->Pt() > cut[26*eb+11]) || (ecalIso/ele->Pt() > cut[26*eb+12]) || (hcalIso/ele->Pt() > cut[26*eb+13]) || |
504 |
< |
((tkIso+ecalIso+hcalIso)>cut[26*eb+14]) || (((tkIso+ecalIso+hcalIso)/ ele->Pt()) > cut[26*eb+15]) || |
505 |
< |
((tkIso+ecalIsoPed+hcalIso)>cut[26*eb+16]) || (((tkIso+ecalIsoPed+hcalIso)/ ele->Pt()) > cut[26*eb+17]) ) |
506 |
< |
result = 0.; |
507 |
< |
else |
508 |
< |
result = 2.; |
905 |
> |
float dist = (TMath::Abs(ele->ConvPartnerDist()) == -9999.? 9999:TMath::Abs(ele->ConvPartnerDist())); |
906 |
> |
float dcot = (TMath::Abs(ele->ConvPartnerDCotTheta()) == -9999.? 9999:TMath::Abs(ele->ConvPartnerDCotTheta())); |
907 |
|
|
908 |
< |
if (hOverE > cut[26*eb+0]) |
511 |
< |
return result; |
908 |
> |
float dcotdistcomb = ((0.04 - std::max(dist, dcot)) > 0?(0.04 - std::max(dist, dcot)):0); |
909 |
|
|
910 |
< |
if (sigmaee > cut[26*eb+1]) |
911 |
< |
return result; |
910 |
> |
Double_t ip = 99999; |
911 |
> |
for(UInt_t i0 = 0; i0 < vertices->GetEntries(); i0++) { |
912 |
> |
if(vertices->At(i0)->NTracks() > 0){ |
913 |
> |
Double_t pD0 = ele->GsfTrk()->D0Corrected(*vertices->At(i0)); |
914 |
> |
ip = TMath::Abs(pD0); |
915 |
> |
break; |
916 |
> |
} |
917 |
> |
} |
918 |
|
|
919 |
< |
if (fabs(deltaPhiIn) > cut[26*eb+2]) |
920 |
< |
return result; |
919 |
> |
for (int cut=0; cut<ncuts; cut++) { |
920 |
> |
switch (cut) { |
921 |
> |
case 0: |
922 |
> |
cut_results[cut] = compute_cut(fabs(deltaEtaIn), scEt, cutdetainl[cat], cutdetain[cat]); |
923 |
> |
break; |
924 |
> |
case 1: |
925 |
> |
cut_results[cut] = compute_cut(fabs(deltaPhiIn), scEt, cutdphiinl[cat], cutdphiin[cat]); |
926 |
> |
break; |
927 |
> |
case 2: |
928 |
> |
cut_results[cut] = (eseedopincor > cuteseedopcor[cat]); |
929 |
> |
break; |
930 |
> |
case 3: |
931 |
> |
cut_results[cut] = compute_cut(hOverE, scEt, cuthoel[cat], cuthoe[cat]); |
932 |
> |
break; |
933 |
> |
case 4: |
934 |
> |
cut_results[cut] = compute_cut(sigmaee, scEt, cutseel[cat], cutsee[cat]); |
935 |
> |
break; |
936 |
> |
case 5: |
937 |
> |
cut_results[cut] = compute_cut(iso_sumoet, scEt, cutiso_sumoetl[cat], cutiso_sumoet[cat]); |
938 |
> |
break; |
939 |
> |
case 6: |
940 |
> |
cut_results[cut] = (iso_sum < cutiso_sum[cat]); |
941 |
> |
break; |
942 |
> |
case 7: |
943 |
> |
cut_results[cut] = compute_cut(fabs(ip), scEt, cutip_gsfl[cat], cutip_gsf[cat]); |
944 |
> |
break; |
945 |
> |
case 8: |
946 |
> |
cut_results[cut] = (mishits < cutfmishits[cat]); |
947 |
> |
break; |
948 |
> |
case 9: |
949 |
> |
cut_results[cut] = (dcotdistcomb < cutdcotdist[cat]); |
950 |
> |
break; |
951 |
> |
} |
952 |
> |
} |
953 |
> |
|
954 |
> |
// ID part |
955 |
> |
if (cut_results[0] & cut_results[1] & cut_results[2] & cut_results[3] & cut_results[4]) |
956 |
> |
result = result + 1; |
957 |
> |
|
958 |
> |
// ISO part |
959 |
> |
if (cut_results[5] & cut_results[6]) |
960 |
> |
result = result + 2; |
961 |
> |
|
962 |
> |
// IP part |
963 |
> |
if (cut_results[7]) |
964 |
> |
result = result + 8; |
965 |
> |
|
966 |
> |
// Conversion part |
967 |
> |
if (cut_results[8] and cut_results[9]) |
968 |
> |
result = result + 4; |
969 |
> |
|
970 |
> |
return result; |
971 |
> |
} |
972 |
|
|
973 |
< |
if (fabs(deltaEtaIn) > cut[26*eb+3]) |
974 |
< |
return result; |
521 |
< |
|
522 |
< |
if (e25Maxoe55 < cut[26*eb+4] && e15oe55 < cut[26*eb+5]) |
523 |
< |
return result; |
524 |
< |
// some extra electron id cuts |
525 |
< |
if (sigmaee < cut[26*eb+18]) // inverted sigmaee cut - spike removal related |
526 |
< |
return result; |
973 |
> |
//-------------------------------------------------------------------------------------------------- |
974 |
> |
bool ElectronTools::compute_cut(double x, double et, double cut_min, double cut_max, bool gtn) { |
975 |
|
|
976 |
< |
if ( eOverP < cut[26*eb+19] || eOverP > cut[26*eb+20]) // lower and upper cut in E/P |
977 |
< |
return result; |
530 |
< |
|
531 |
< |
result = result + 1; |
976 |
> |
float et_min = 10; |
977 |
> |
float et_max = 40; |
978 |
|
|
979 |
< |
Bool_t passD0cut = PassD0Cut(ele, vertices, cut[26*eb+21], kFALSE); |
980 |
< |
if (!passD0cut) |
535 |
< |
return result; |
536 |
< |
|
537 |
< |
if (mishits > cut[26*eb+22]) // expected missing hits |
538 |
< |
return result; |
539 |
< |
|
540 |
< |
Bool_t passConvVeto = PassConversionFilter(ele, conversions, kTRUE); |
541 |
< |
if (passConvVeto == kFALSE) |
542 |
< |
return result; |
543 |
< |
|
544 |
< |
result += 4; |
545 |
< |
} |
546 |
< |
else if(typeCuts == 0 || typeCuts == 1 || typeCuts == 2){ |
547 |
< |
// Loose cuts |
548 |
< |
Double_t cutdcotdistLoose[9] = {9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999. |
549 |
< |
}; |
550 |
< |
Double_t cutdetainLoose[9] = {1.30e-02, 5.95e-03, 3.10e-02, 1.68e-02, 8.44e-03, 1.70e-02, 1.55e-02, 5.13e-02, 1.61e-02 |
551 |
< |
}; |
552 |
< |
Double_t cutdphiinLoose[9] = {7.51e-02, 3.30e-01, 4.20e-01, 9.86e-02, 2.84e-01, 3.28e-01, 3.77e-01, 4.32e-01, 3.74e-01 |
553 |
< |
}; |
554 |
< |
Double_t cuteseedopcorLoose[9] = {6.31e-01, 3.02e-01, 3.04e-01, 8.10e-01, 2.23e-01, 5.03e-01, 2.78e-01, 3.10e-01, 4.69e-01 |
555 |
< |
}; |
556 |
< |
Double_t cutetLoose[9] = {0., 0., 0., 0., 0., 0., 0., 0., 0. |
557 |
< |
}; |
558 |
< |
Double_t cutfmishitsLoose[9] = {4.50e+00, 1.50e+00, 1.50e+00, 2.50e+00, 2.50e+00, 1.50e+00, 2.50e+00, 4.50e+00, 5.00e-01 |
559 |
< |
}; |
560 |
< |
Double_t cuthoeLoose[9] = {2.47e-01, 7.78e-02, 1.49e-01, 3.82e-01, 4.70e-02, 1.12e-01, 1.16e+00, 5.04e+00, 1.35e+00 |
561 |
< |
}; |
562 |
< |
Double_t cutip_gsfLoose[9] = {0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02 |
563 |
< |
}; |
564 |
< |
Double_t cutiso_sumLoose[9] = {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 |
565 |
< |
}; |
566 |
< |
Double_t cutiso_sumoetLoose[9] = {9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999. |
567 |
< |
}; |
568 |
< |
Double_t cutseeLoose[9] = {1.92e-02, 1.31e-02, 2.53e-02, 5.27e-02, 3.29e-02, 4.19e-02, 2.65e-02, 6.58e-02, 1.38e-01 |
569 |
< |
}; |
570 |
< |
|
571 |
< |
// Medium cuts |
572 |
< |
Double_t cutdcotdistMedium[9] = {9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999. |
573 |
< |
}; |
574 |
< |
Double_t cutdetainMedium[9] = {1.19e-02, 4.20e-03, 1.07e-02, 1.49e-02, 6.56e-03, 1.19e-02, 1.16e-02, 5.13e-02, 6.37e-03 |
575 |
< |
}; |
576 |
< |
Double_t cutdphiinMedium[9] = {7.51e-02, 2.93e-01, 3.58e-01, 9.53e-02, 1.62e-01, 2.99e-01, 2.76e-01, 4.32e-01, 2.57e-01 |
577 |
< |
}; |
578 |
< |
Double_t cuteseedopcorMedium[9] = {6.31e-01, 8.14e-01, 7.60e-01, 8.18e-01, 7.56e-01, 5.35e-01, 6.20e-01, 7.88e-01, 8.85e-01 |
579 |
< |
}; |
580 |
< |
Double_t cutetMedium[9] = {0., 0., 0., 0., 0., 0., 0., 0., 0. |
581 |
< |
}; |
582 |
< |
Double_t cutfmishitsMedium[9] = {1.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 2.50e+00, 1.50e+00, 5.00e-01 |
583 |
< |
}; |
584 |
< |
Double_t cuthoeMedium[9] = {2.46e-01, 6.80e-02, 1.35e-01, 3.73e-01, 2.33e-02, 5.58e-02, 8.80e-01, 5.04e+00, 3.78e-02 |
585 |
< |
}; |
586 |
< |
Double_t cutip_gsfMedium[9] = {0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02 |
587 |
< |
}; |
588 |
< |
Double_t cutiso_sumMedium[9] = {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 |
589 |
< |
}; |
590 |
< |
Double_t cutiso_sumoetMedium[9] = {9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999. |
591 |
< |
}; |
592 |
< |
Double_t cutseeMedium[9] = {1.92e-02, 1.13e-02, 1.47e-02, 3.84e-02, 3.05e-02, 3.36e-02, 1.35e-02, 5.05e-02, 2.79e-02 |
593 |
< |
}; |
594 |
< |
|
595 |
< |
// Tight cuts |
596 |
< |
Double_t cutdcotdistTight[9] = {9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999. |
597 |
< |
}; |
598 |
< |
Double_t cutdetainTight[9] = {9.28e-03, 3.56e-03, 7.16e-03, 1.31e-02, 5.81e-03, 9.79e-03, 1.15e-02, 1.66e-02, 3.19e-03 |
599 |
< |
}; |
600 |
< |
Double_t cutdphiinTight[9] = {4.66e-02, 7.80e-02, 2.64e-01, 4.42e-02, 3.20e-02, 2.37e-01, 8.25e-02, 2.07e-01, 5.39e-02 |
601 |
< |
}; |
602 |
< |
Double_t cuteseedopcorTight[9] = {6.48e-01, 8.97e-01, 8.91e-01, 8.39e-01, 8.35e-01, 6.49e-01, 6.76e-01, 8.70e-01, 9.91e-01 |
603 |
< |
}; |
604 |
< |
Double_t cutetTight[9] = {0., 0., 0., 0., 0., 0., 0., 0., 0. |
605 |
< |
}; |
606 |
< |
Double_t cutfmishitsTight[9] = {1.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 1.50e+00, 5.00e-01, 2.50e+00, 5.00e-01, 5.00e-01 |
607 |
< |
}; |
608 |
< |
Double_t cuthoeTight[9] = {9.94e-02, 5.61e-02, 1.05e-01, 9.73e-02, 1.81e-02, 3.06e-02, 5.57e-01, 5.04e+00, 1.06e-03 |
609 |
< |
}; |
610 |
< |
Double_t cutip_gsfTight[9] = {0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02 |
611 |
< |
}; |
612 |
< |
Double_t cutiso_sumTight[9] = {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 |
613 |
< |
}; |
614 |
< |
Double_t cutiso_sumoetTight[9] = {9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999., 9999. |
615 |
< |
}; |
616 |
< |
Double_t cutseeTight[9] = {1.56e-02, 1.07e-02, 1.23e-02, 3.35e-02, 2.98e-02, 3.06e-02, 1.07e-02, 3.79e-02, 1.01e-02 |
617 |
< |
}; |
618 |
< |
|
619 |
< |
Double_t cutdcotdist[9]; |
620 |
< |
Double_t cutdetain[9]; |
621 |
< |
Double_t cutdphiin[9]; |
622 |
< |
Double_t cuteseedopcor[9]; |
623 |
< |
Double_t cutet[9]; |
624 |
< |
Double_t cutfmishits[9]; |
625 |
< |
Double_t cuthoe[9]; |
626 |
< |
Double_t cutip_gsf[9]; |
627 |
< |
Double_t cutiso_sum[9]; |
628 |
< |
Double_t cutiso_sumoet[9]; |
629 |
< |
Double_t cutsee[9]; |
630 |
< |
if (typeCuts == 0) { |
631 |
< |
memcpy(cutdcotdist ,cutdcotdistLoose ,sizeof(cutdcotdistLoose)); |
632 |
< |
memcpy(cutdetain ,cutdetainLoose ,sizeof(cutdetainLoose)); |
633 |
< |
memcpy(cutdphiin ,cutdphiinLoose ,sizeof(cutdphiinLoose)); |
634 |
< |
memcpy(cuteseedopcor,cuteseedopcorLoose,sizeof(cuteseedopcorLoose)); |
635 |
< |
memcpy(cutet ,cutetLoose ,sizeof(cutetLoose)); |
636 |
< |
memcpy(cutfmishits ,cutfmishitsLoose ,sizeof(cutfmishitsLoose)); |
637 |
< |
memcpy(cuthoe ,cuthoeLoose ,sizeof(cuthoeLoose)); |
638 |
< |
memcpy(cutip_gsf ,cutip_gsfLoose ,sizeof(cutip_gsfLoose)); |
639 |
< |
memcpy(cutiso_sum ,cutiso_sumLoose ,sizeof(cutiso_sumLoose)); |
640 |
< |
memcpy(cutiso_sumoet,cutiso_sumoetLoose,sizeof(cutiso_sumoetLoose)); |
641 |
< |
memcpy(cutsee ,cutseeLoose ,sizeof(cutseeLoose)); |
642 |
< |
} |
643 |
< |
else if(typeCuts == 1) { |
644 |
< |
memcpy(cutdcotdist ,cutdcotdistMedium ,sizeof(cutdcotdistMedium)); |
645 |
< |
memcpy(cutdetain ,cutdetainMedium ,sizeof(cutdetainMedium)); |
646 |
< |
memcpy(cutdphiin ,cutdphiinMedium ,sizeof(cutdphiinMedium)); |
647 |
< |
memcpy(cuteseedopcor,cuteseedopcorMedium,sizeof(cuteseedopcorMedium)); |
648 |
< |
memcpy(cutet ,cutetMedium ,sizeof(cutetMedium)); |
649 |
< |
memcpy(cutfmishits ,cutfmishitsMedium ,sizeof(cutfmishitsMedium)); |
650 |
< |
memcpy(cuthoe ,cuthoeMedium ,sizeof(cuthoeMedium)); |
651 |
< |
memcpy(cutip_gsf ,cutip_gsfMedium ,sizeof(cutip_gsfMedium)); |
652 |
< |
memcpy(cutiso_sum ,cutiso_sumMedium ,sizeof(cutiso_sumMedium)); |
653 |
< |
memcpy(cutiso_sumoet,cutiso_sumoetMedium,sizeof(cutiso_sumoetMedium)); |
654 |
< |
memcpy(cutsee ,cutseeMedium ,sizeof(cutseeMedium)); |
655 |
< |
} |
656 |
< |
else { |
657 |
< |
memcpy(cutdcotdist ,cutdcotdistTight ,sizeof(cutdcotdistTight)); |
658 |
< |
memcpy(cutdetain ,cutdetainTight ,sizeof(cutdetainTight)); |
659 |
< |
memcpy(cutdphiin ,cutdphiinTight ,sizeof(cutdphiinTight)); |
660 |
< |
memcpy(cuteseedopcor,cuteseedopcorTight,sizeof(cuteseedopcorTight)); |
661 |
< |
memcpy(cutet ,cutetTight ,sizeof(cutetTight)); |
662 |
< |
memcpy(cutfmishits ,cutfmishitsTight ,sizeof(cutfmishitsTight)); |
663 |
< |
memcpy(cuthoe ,cuthoeTight ,sizeof(cuthoeTight)); |
664 |
< |
memcpy(cutip_gsf ,cutip_gsfTight ,sizeof(cutip_gsfTight)); |
665 |
< |
memcpy(cutiso_sum ,cutiso_sumTight ,sizeof(cutiso_sumTight)); |
666 |
< |
memcpy(cutiso_sumoet,cutiso_sumoetTight,sizeof(cutiso_sumoetTight)); |
667 |
< |
memcpy(cutsee ,cutseeTight ,sizeof(cutseeTight)); |
668 |
< |
} |
979 |
> |
bool accept = false; |
980 |
> |
float cut = cut_max; // the cut at et=40 GeV |
981 |
|
|
982 |
< |
// CAREFUL, I HAVE COMMENTED OUT WHAT SANI IS DOING |
983 |
< |
//Double_t iso_sum = tkIso + ecalIso + hcalIso; |
984 |
< |
Double_t iso_sum = (ele->TrackIsolationDr03() + TMath::Max(ele->EcalRecHitIsoDr03() - 1.0, 0.0) + |
985 |
< |
ele->HcalTowerSumEtDr03()) / ele->Pt(); |
986 |
< |
Double_t iso_sum_corrected = iso_sum*pow(40./scEt, 2); |
987 |
< |
if ((iso_sum < cutiso_sum[cat+bin*9]) && |
988 |
< |
(iso_sum_corrected < cutiso_sumoet[cat+bin*9])) |
677 |
< |
result += 2; |
678 |
< |
|
679 |
< |
if (fBrem > -2) { |
680 |
< |
if ((hOverE < cuthoe[cat+bin*9]) and |
681 |
< |
(sigmaee < cutsee[cat+bin*9]) and |
682 |
< |
(fabs(deltaPhiIn) < cutdphiin[cat+bin*9]) and |
683 |
< |
(fabs(deltaEtaIn) < cutdetain[cat+bin*9]) and |
684 |
< |
(eSeedOverPin > cuteseedopcor[cat+bin*9]) and |
685 |
< |
(scEt > cutet[cat+bin*9])) |
686 |
< |
result += 1.; |
687 |
< |
} |
982 |
> |
if(et < et_max) { |
983 |
> |
cut = cut_min + (1/et_min - 1/et)*(cut_max - cut_min)/(1/et_min - 1/et_max); |
984 |
> |
} |
985 |
> |
|
986 |
> |
if(et < et_min) { |
987 |
> |
cut = cut_min; |
988 |
> |
} |
989 |
|
|
990 |
< |
Bool_t passD0cut = PassD0Cut(ele, vertices, cutip_gsf[cat+bin*9], kFALSE); |
991 |
< |
if (passD0cut) |
992 |
< |
result += 4; |
993 |
< |
|
994 |
< |
Bool_t passConvVeto = PassConversionFilter(ele, conversions, kTRUE); |
995 |
< |
if (mishits < cutfmishits[cat+bin*9] && |
695 |
< |
passConvVeto) |
696 |
< |
result += 8; |
697 |
< |
} // classbased |
990 |
> |
if(gtn) { // useful for e/p cut which is gt |
991 |
> |
accept = (x >= cut); |
992 |
> |
} |
993 |
> |
else { |
994 |
> |
accept = (x <= cut); |
995 |
> |
} |
996 |
|
|
997 |
< |
return result; |
997 |
> |
return accept; |
998 |
|
} |