99 |
|
case kVBTFWorkingPoint80Id: |
100 |
|
memcpy(fCuts,VBTFWorkingPoint80,sizeof(fCuts)); |
101 |
|
break; |
102 |
+ |
case kVBTFWorkingPoint80LowPtId: |
103 |
+ |
memcpy(fCuts,VBTFWorkingPoint80,sizeof(fCuts)); |
104 |
+ |
break; |
105 |
|
case kVBTFWorkingPoint70Id: |
106 |
|
memcpy(fCuts,VBTFWorkingPoint70,sizeof(fCuts)); |
107 |
|
break; |
129 |
|
|
130 |
|
if(ele->SCluster() == 0) |
131 |
|
return kFALSE; |
132 |
< |
Double_t eSeedOverPin = ele->ESeedClusterOverPIn(); |
132 |
> |
Double_t eSeedOverPin = ele->ESeedClusterOverPIn(); |
133 |
|
Double_t hOverE = ele->HadronicOverEm(); |
134 |
|
Double_t sigmaee = ele->CoviEtaiEta(); |
135 |
|
Double_t deltaPhiIn = TMath::Abs(ele->DeltaPhiSuperClusterTrackAtVtx()); |
154 |
|
if(eSeedOverPin<fCuts[4][cat+4*eb]) |
155 |
|
return kFALSE; |
156 |
|
|
157 |
+ |
// Cuts only for pt<20 region and kVBTFWorkingPoint80LowPtId |
158 |
+ |
if(ele->Pt() < 20 && idType == kVBTFWorkingPoint80LowPtId) { |
159 |
+ |
Bool_t isGoodLowPtEl = fBrem > 0.15 || |
160 |
+ |
(ele->AbsEta() < 1.0 && eOverP > 0.95 && |
161 |
+ |
TMath::Abs(ele->Charge()*ele->DeltaPhiSuperClusterTrackAtVtx()) < 0.006); |
162 |
+ |
if(!isGoodLowPtEl) return kFALSE; |
163 |
+ |
} |
164 |
+ |
|
165 |
|
return kTRUE; |
166 |
|
} |
167 |
|
|
257 |
|
|
258 |
|
//-------------------------------------------------------------------------------------------------- |
259 |
|
Bool_t ElectronTools::PassConversionFilter(const Electron *ele, |
260 |
< |
const DecayParticleCol *conversions, |
261 |
< |
Bool_t WrongHitsRequirement) |
260 |
> |
const DecayParticleCol *conversions, |
261 |
> |
const BaseVertex *vtx, |
262 |
> |
UInt_t nWrongHitsMax, |
263 |
> |
Double_t probMin, |
264 |
> |
Double_t lxyMin, |
265 |
> |
Bool_t matchCkf, |
266 |
> |
Bool_t requireArbitratedMerged) |
267 |
|
{ |
268 |
|
Bool_t isGoodConversion = kFALSE; |
269 |
|
|
272 |
|
for (UInt_t d=0; d<conversions->At(ifc)->NDaughters(); d++) { |
273 |
|
const Track *trk = dynamic_cast<const ChargedParticle*> |
274 |
|
(conversions->At(ifc)->Daughter(d))->Trk(); |
275 |
< |
if (ele->GsfTrk() == trk) { |
275 |
> |
if (ele->GsfTrk() == trk || (matchCkf && ele->TrackerTrk()==trk) ) { |
276 |
|
ConversionMatchFound = kTRUE; |
277 |
|
break; |
278 |
|
} |
280 |
|
|
281 |
|
// if match between the e-track and one of the conversion legs |
282 |
|
if (ConversionMatchFound == kTRUE){ |
283 |
< |
isGoodConversion = (conversions->At(ifc)->Prob() > 1e-6) && |
284 |
< |
(conversions->At(ifc)->Lxy() > 0) && |
285 |
< |
(conversions->At(ifc)->Lz() > 0) && |
270 |
< |
(conversions->At(ifc)->Position().Rho() > 2.0); |
283 |
> |
isGoodConversion = (conversions->At(ifc)->Prob() > probMin) && |
284 |
> |
(!requireArbitratedMerged || conversions->At(ifc)->Quality().Quality(ConversionQuality::arbitratedMerged)) && |
285 |
> |
(conversions->At(ifc)->LxyCorrected(vtx) > lxyMin); |
286 |
|
|
287 |
|
if (isGoodConversion == kTRUE) { |
288 |
|
for (UInt_t d=0; d<conversions->At(ifc)->NDaughters(); d++) { |
289 |
|
const Track *trk = dynamic_cast<const ChargedParticle*> |
290 |
|
(conversions->At(ifc)->Daughter(d))->Trk(); |
291 |
|
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; |
292 |
|
const StableData *sd = dynamic_cast<const StableData*> |
293 |
|
(conversions->At(ifc)->DaughterDat(d)); |
294 |
< |
if (WrongHitsRequirement && sd->NWrongHits() != 0) |
294 |
> |
if (sd->NWrongHits() > nWrongHitsMax) |
295 |
|
isGoodConversion = kFALSE; |
296 |
|
} else { |
297 |
|
isGoodConversion = kFALSE; |
308 |
|
} |
309 |
|
|
310 |
|
//-------------------------------------------------------------------------------------------------- |
311 |
< |
Bool_t ElectronTools::PassD0Cut(const Electron *ele, const VertexCol *vertices, Double_t fD0Cut) |
311 |
> |
Bool_t ElectronTools::PassD0Cut(const Electron *ele, const VertexCol *vertices, Double_t fD0Cut, Int_t nVertex) |
312 |
|
{ |
313 |
|
Bool_t d0cut = kFALSE; |
314 |
< |
// d0 cut |
315 |
< |
Double_t d0_real = 99999; |
316 |
< |
for(UInt_t i0 = 0; i0 < vertices->GetEntries(); i0++) { |
317 |
< |
if(vertices->At(i0)->NTracks() > 0){ |
318 |
< |
Double_t pD0 = ele->GsfTrk()->D0Corrected(*vertices->At(i0)); |
319 |
< |
d0_real = TMath::Abs(pD0); |
320 |
< |
break; |
314 |
> |
|
315 |
> |
Double_t d0_real = 1e30; |
316 |
> |
if(nVertex >= 0) d0_real = TMath::Abs(ele->GsfTrk()->D0Corrected(*vertices->At(nVertex))); |
317 |
> |
else { |
318 |
> |
Double_t distVtx = 999.0; |
319 |
> |
Int_t closestVtx = 0; |
320 |
> |
for(UInt_t nv=0; nv<vertices->GetEntries(); nv++){ |
321 |
> |
double dz = TMath::Abs(ele->GsfTrk()->DzCorrected(*vertices->At(nv))); |
322 |
> |
if(dz < distVtx) { |
323 |
> |
distVtx = dz; |
324 |
> |
closestVtx = nv; |
325 |
> |
} |
326 |
|
} |
327 |
+ |
d0_real = TMath::Abs(ele->GsfTrk()->D0Corrected(*vertices->At(closestVtx))); |
328 |
|
} |
329 |
|
if(d0_real < fD0Cut) d0cut = kTRUE; |
330 |
|
|
347 |
|
} |
348 |
|
|
349 |
|
//-------------------------------------------------------------------------------------------------- |
350 |
+ |
Bool_t ElectronTools::PassDZCut(const Electron *ele, const VertexCol *vertices, Double_t fDZCut) |
351 |
+ |
{ |
352 |
+ |
Bool_t dzcut = kFALSE; |
353 |
+ |
|
354 |
+ |
Double_t distVtx = 999.0; |
355 |
+ |
for(UInt_t nv=0; nv<vertices->GetEntries(); nv++){ |
356 |
+ |
double dz = TMath::Abs(ele->GsfTrk()->DzCorrected(*vertices->At(nv))); |
357 |
+ |
if(dz < distVtx) { |
358 |
+ |
distVtx = dz; |
359 |
+ |
} |
360 |
+ |
} |
361 |
+ |
if(distVtx < fDZCut) dzcut = kTRUE; |
362 |
+ |
|
363 |
+ |
return dzcut; |
364 |
+ |
} |
365 |
+ |
|
366 |
+ |
//-------------------------------------------------------------------------------------------------- |
367 |
|
Bool_t ElectronTools::PassChargeFilter(const Electron *ele) |
368 |
|
{ |
369 |
|
Bool_t passChargeFilter = kTRUE; |
451 |
|
|
452 |
|
//-------------------------------------------------------------------------------------------------- |
453 |
|
Int_t ElectronTools::PassTightId(const Electron *ele, const VertexCol *vertices, |
454 |
< |
const DecayParticleCol *conversions, const Int_t typeCuts){ |
454 |
> |
const DecayParticleCol *conversions, const Int_t typeCuts, |
455 |
> |
Double_t beta){ |
456 |
|
|
457 |
|
// original code on |
458 |
|
// http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoEgamma/ElectronIdentification/src/CutBasedElectronID.cc |
459 |
+ |
// beta must be computed with a DR cone of 0.4 |
460 |
|
|
461 |
|
Double_t scEt = ele->SCluster()->Et(); |
462 |
|
Double_t scEta = ele->SCluster()->Eta(); |
470 |
|
|
471 |
|
Int_t mishits = ele->BestTrk()->NExpectedHitsInner(); |
472 |
|
Double_t tkIso = ele->TrackIsolationDr03(); |
473 |
< |
Double_t ecalIso = ele->EcalRecHitIsoDr04(); |
474 |
< |
Double_t hcalIso = ele->HcalTowerSumEtDr04(); |
473 |
> |
Double_t ecalIso = ele->EcalRecHitIsoDr04()*beta; |
474 |
> |
Double_t hcalIso = ele->HcalTowerSumEtDr04()*beta; |
475 |
|
|
476 |
|
int cat = Classify(ele); |
477 |
|
int eb; |
549 |
|
Double_t cutseelTight[9] = { |
550 |
|
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}; |
551 |
|
|
552 |
+ |
// SuperTight cuts |
553 |
|
Double_t cutdcotdistSuperTight[9] = { |
554 |
|
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}; |
555 |
|
Double_t cutdetainSuperTight[9] = { |
583 |
|
Double_t cutseelSuperTight[9] = { |
584 |
|
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}; |
585 |
|
|
586 |
+ |
// HyperTight1 cuts |
587 |
+ |
Double_t cutdcotdistHyperTight1[9] = { |
588 |
+ |
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}; |
589 |
+ |
Double_t cutdetainHyperTight1[9] = { |
590 |
+ |
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}; |
591 |
+ |
Double_t cutdetainlHyperTight1[9] = { |
592 |
+ |
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}; |
593 |
+ |
Double_t cutdphiinHyperTight1[9] = { |
594 |
+ |
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}; |
595 |
+ |
Double_t cutdphiinlHyperTight1[9] = { |
596 |
+ |
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}; |
597 |
+ |
Double_t cuteseedopcorHyperTight1[9] = { |
598 |
+ |
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}; |
599 |
+ |
Double_t cutfmishitsHyperTight1[9] = { |
600 |
+ |
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}; |
601 |
+ |
Double_t cuthoeHyperTight1[9] = { |
602 |
+ |
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}; |
603 |
+ |
Double_t cuthoelHyperTight1[9] = { |
604 |
+ |
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}; |
605 |
+ |
Double_t cutip_gsfHyperTight1[9] = { |
606 |
+ |
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}; |
607 |
+ |
Double_t cutip_gsflHyperTight1[9] = { |
608 |
+ |
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}; |
609 |
+ |
Double_t cutiso_sumHyperTight1[9] = { |
610 |
+ |
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}; |
611 |
+ |
Double_t cutiso_sumoetHyperTight1[9] = { |
612 |
+ |
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}; |
613 |
+ |
Double_t cutiso_sumoetlHyperTight1[9] = { |
614 |
+ |
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}; |
615 |
+ |
Double_t cutseeHyperTight1[9] = { |
616 |
+ |
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}; |
617 |
+ |
Double_t cutseelHyperTight1[9] = { |
618 |
+ |
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}; |
619 |
+ |
|
620 |
+ |
// HyperTight2 cuts |
621 |
+ |
Double_t cutdcotdistHyperTight2[9] = { |
622 |
+ |
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}; |
623 |
+ |
Double_t cutdetainHyperTight2[9] = { |
624 |
+ |
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}; |
625 |
+ |
Double_t cutdetainlHyperTight2[9] = { |
626 |
+ |
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}; |
627 |
+ |
Double_t cutdphiinHyperTight2[9] = { |
628 |
+ |
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}; |
629 |
+ |
Double_t cutdphiinlHyperTight2[9] = { |
630 |
+ |
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}; |
631 |
+ |
Double_t cuteseedopcorHyperTight2[9] = { |
632 |
+ |
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}; |
633 |
+ |
Double_t cutfmishitsHyperTight2[9] = { |
634 |
+ |
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}; |
635 |
+ |
Double_t cuthoeHyperTight2[9] = { |
636 |
+ |
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}; |
637 |
+ |
Double_t cuthoelHyperTight2[9] = { |
638 |
+ |
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}; |
639 |
+ |
Double_t cutip_gsfHyperTight2[9] = { |
640 |
+ |
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}; |
641 |
+ |
Double_t cutip_gsflHyperTight2[9] = { |
642 |
+ |
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}; |
643 |
+ |
Double_t cutiso_sumHyperTight2[9] = { |
644 |
+ |
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}; |
645 |
+ |
Double_t cutiso_sumoetHyperTight2[9] = { |
646 |
+ |
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}; |
647 |
+ |
Double_t cutiso_sumoetlHyperTight2[9] = { |
648 |
+ |
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}; |
649 |
+ |
Double_t cutseeHyperTight2[9] = { |
650 |
+ |
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}; |
651 |
+ |
Double_t cutseelHyperTight2[9] = { |
652 |
+ |
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}; |
653 |
+ |
|
654 |
+ |
// HyperTight3 cuts |
655 |
+ |
Double_t cutdcotdistHyperTight3[9] = { |
656 |
+ |
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}; |
657 |
+ |
Double_t cutdetainHyperTight3[9] = { |
658 |
+ |
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}; |
659 |
+ |
Double_t cutdetainlHyperTight3[9] = { |
660 |
+ |
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}; |
661 |
+ |
Double_t cutdphiinHyperTight3[9] = { |
662 |
+ |
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}; |
663 |
+ |
Double_t cutdphiinlHyperTight3[9] = { |
664 |
+ |
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}; |
665 |
+ |
Double_t cuteseedopcorHyperTight3[9] = { |
666 |
+ |
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}; |
667 |
+ |
Double_t cutfmishitsHyperTight3[9] = { |
668 |
+ |
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}; |
669 |
+ |
Double_t cuthoeHyperTight3[9] = { |
670 |
+ |
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}; |
671 |
+ |
Double_t cuthoelHyperTight3[9] = { |
672 |
+ |
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}; |
673 |
+ |
Double_t cutip_gsfHyperTight3[9] = { |
674 |
+ |
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}; |
675 |
+ |
Double_t cutip_gsflHyperTight3[9] = { |
676 |
+ |
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}; |
677 |
+ |
Double_t cutiso_sumHyperTight3[9] = { |
678 |
+ |
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}; |
679 |
+ |
Double_t cutiso_sumoetHyperTight3[9] = { |
680 |
+ |
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}; |
681 |
+ |
Double_t cutiso_sumoetlHyperTight3[9] = { |
682 |
+ |
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}; |
683 |
+ |
Double_t cutseeHyperTight3[9] = { |
684 |
+ |
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}; |
685 |
+ |
Double_t cutseelHyperTight3[9] = { |
686 |
+ |
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}; |
687 |
+ |
|
688 |
+ |
// HyperTight4 cuts |
689 |
+ |
Double_t cutdcotdistHyperTight4[9] = { |
690 |
+ |
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}; |
691 |
+ |
Double_t cutdetainHyperTight4[9] = { |
692 |
+ |
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}; |
693 |
+ |
Double_t cutdetainlHyperTight4[9] = { |
694 |
+ |
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}; |
695 |
+ |
Double_t cutdphiinHyperTight4[9] = { |
696 |
+ |
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}; |
697 |
+ |
Double_t cutdphiinlHyperTight4[9] = { |
698 |
+ |
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}; |
699 |
+ |
Double_t cuteseedopcorHyperTight4[9] = { |
700 |
+ |
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}; |
701 |
+ |
Double_t cutfmishitsHyperTight4[9] = { |
702 |
+ |
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}; |
703 |
+ |
Double_t cuthoeHyperTight4[9] = { |
704 |
+ |
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}; |
705 |
+ |
Double_t cuthoelHyperTight4[9] = { |
706 |
+ |
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}; |
707 |
+ |
Double_t cutip_gsfHyperTight4[9] = { |
708 |
+ |
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}; |
709 |
+ |
Double_t cutip_gsflHyperTight4[9] = { |
710 |
+ |
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}; |
711 |
+ |
Double_t cutiso_sumHyperTight4[9] = { |
712 |
+ |
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}; |
713 |
+ |
Double_t cutiso_sumoetHyperTight4[9] = { |
714 |
+ |
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}; |
715 |
+ |
Double_t cutiso_sumoetlHyperTight4[9] = { |
716 |
+ |
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}; |
717 |
+ |
Double_t cutseeHyperTight4[9] = { |
718 |
+ |
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}; |
719 |
+ |
Double_t cutseelHyperTight4[9] = { |
720 |
+ |
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}; |
721 |
+ |
|
722 |
|
Double_t cutdcotdist[9]; |
723 |
|
Double_t cutdetain[9]; |
724 |
|
Double_t cutdetainl[9]; |
771 |
|
memcpy(cutsee ,cutseeTight ,sizeof(cutseeTight)); |
772 |
|
memcpy(cutseel ,cutseelTight ,sizeof(cutseelTight)); |
773 |
|
} |
774 |
< |
else { |
774 |
> |
else if(typeCuts == 2) { |
775 |
|
memcpy(cutdcotdist ,cutdcotdistSuperTight ,sizeof(cutdcotdistSuperTight)); |
776 |
|
memcpy(cutdetain ,cutdetainSuperTight ,sizeof(cutdetainSuperTight)); |
777 |
|
memcpy(cutdetainl ,cutdetainlSuperTight ,sizeof(cutdetainlSuperTight)); |
789 |
|
memcpy(cutsee ,cutseeSuperTight ,sizeof(cutseeSuperTight)); |
790 |
|
memcpy(cutseel ,cutseelSuperTight ,sizeof(cutseelSuperTight)); |
791 |
|
} |
792 |
< |
|
792 |
> |
else if(typeCuts == 3) { |
793 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight1 ,sizeof(cutdcotdistHyperTight1)); |
794 |
> |
memcpy(cutdetain ,cutdetainHyperTight1 ,sizeof(cutdetainHyperTight1)); |
795 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight1 ,sizeof(cutdetainlHyperTight1)); |
796 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight1 ,sizeof(cutdphiinHyperTight1)); |
797 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight1 ,sizeof(cutdphiinlHyperTight1)); |
798 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight1 ,sizeof(cuteseedopcorHyperTight1)); |
799 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight1 ,sizeof(cutfmishitsHyperTight1)); |
800 |
> |
memcpy(cuthoe ,cuthoeHyperTight1 ,sizeof(cuthoeHyperTight1)); |
801 |
> |
memcpy(cuthoel ,cuthoelHyperTight1 ,sizeof(cuthoelHyperTight1)); |
802 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight1 ,sizeof(cutip_gsfHyperTight1)); |
803 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight1 ,sizeof(cutip_gsflHyperTight1)); |
804 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight1 ,sizeof(cutiso_sumHyperTight1)); |
805 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight1 ,sizeof(cutiso_sumoetHyperTight1)); |
806 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight1,sizeof(cutiso_sumoetlHyperTight1)); |
807 |
> |
memcpy(cutsee ,cutseeHyperTight1 ,sizeof(cutseeHyperTight1)); |
808 |
> |
memcpy(cutseel ,cutseelHyperTight1 ,sizeof(cutseelHyperTight1)); |
809 |
> |
} |
810 |
> |
else if(typeCuts == 4) { |
811 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight2 ,sizeof(cutdcotdistHyperTight2)); |
812 |
> |
memcpy(cutdetain ,cutdetainHyperTight2 ,sizeof(cutdetainHyperTight2)); |
813 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight2 ,sizeof(cutdetainlHyperTight2)); |
814 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight2 ,sizeof(cutdphiinHyperTight2)); |
815 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight2 ,sizeof(cutdphiinlHyperTight2)); |
816 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight2 ,sizeof(cuteseedopcorHyperTight2)); |
817 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight2 ,sizeof(cutfmishitsHyperTight2)); |
818 |
> |
memcpy(cuthoe ,cuthoeHyperTight2 ,sizeof(cuthoeHyperTight2)); |
819 |
> |
memcpy(cuthoel ,cuthoelHyperTight2 ,sizeof(cuthoelHyperTight2)); |
820 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight2 ,sizeof(cutip_gsfHyperTight2)); |
821 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight2 ,sizeof(cutip_gsflHyperTight2)); |
822 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight2 ,sizeof(cutiso_sumHyperTight2)); |
823 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight2 ,sizeof(cutiso_sumoetHyperTight2)); |
824 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight2,sizeof(cutiso_sumoetlHyperTight2)); |
825 |
> |
memcpy(cutsee ,cutseeHyperTight2 ,sizeof(cutseeHyperTight2)); |
826 |
> |
memcpy(cutseel ,cutseelHyperTight2 ,sizeof(cutseelHyperTight2)); |
827 |
> |
} |
828 |
> |
else if(typeCuts == 5) { |
829 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight3 ,sizeof(cutdcotdistHyperTight3)); |
830 |
> |
memcpy(cutdetain ,cutdetainHyperTight3 ,sizeof(cutdetainHyperTight3)); |
831 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight3 ,sizeof(cutdetainlHyperTight3)); |
832 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight3 ,sizeof(cutdphiinHyperTight3)); |
833 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight3 ,sizeof(cutdphiinlHyperTight3)); |
834 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight3 ,sizeof(cuteseedopcorHyperTight3)); |
835 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight3 ,sizeof(cutfmishitsHyperTight3)); |
836 |
> |
memcpy(cuthoe ,cuthoeHyperTight3 ,sizeof(cuthoeHyperTight3)); |
837 |
> |
memcpy(cuthoel ,cuthoelHyperTight3 ,sizeof(cuthoelHyperTight3)); |
838 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight3 ,sizeof(cutip_gsfHyperTight3)); |
839 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight3 ,sizeof(cutip_gsflHyperTight3)); |
840 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight3 ,sizeof(cutiso_sumHyperTight3)); |
841 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight3 ,sizeof(cutiso_sumoetHyperTight3)); |
842 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight3,sizeof(cutiso_sumoetlHyperTight3)); |
843 |
> |
memcpy(cutsee ,cutseeHyperTight3 ,sizeof(cutseeHyperTight3)); |
844 |
> |
memcpy(cutseel ,cutseelHyperTight3 ,sizeof(cutseelHyperTight3)); |
845 |
> |
} |
846 |
> |
else if(typeCuts == 6) { |
847 |
> |
memcpy(cutdcotdist ,cutdcotdistHyperTight4 ,sizeof(cutdcotdistHyperTight4)); |
848 |
> |
memcpy(cutdetain ,cutdetainHyperTight4 ,sizeof(cutdetainHyperTight4)); |
849 |
> |
memcpy(cutdetainl ,cutdetainlHyperTight4 ,sizeof(cutdetainlHyperTight4)); |
850 |
> |
memcpy(cutdphiin ,cutdphiinHyperTight4 ,sizeof(cutdphiinHyperTight4)); |
851 |
> |
memcpy(cutdphiinl ,cutdphiinlHyperTight4 ,sizeof(cutdphiinlHyperTight4)); |
852 |
> |
memcpy(cuteseedopcor ,cuteseedopcorHyperTight4 ,sizeof(cuteseedopcorHyperTight4)); |
853 |
> |
memcpy(cutfmishits ,cutfmishitsHyperTight4 ,sizeof(cutfmishitsHyperTight4)); |
854 |
> |
memcpy(cuthoe ,cuthoeHyperTight4 ,sizeof(cuthoeHyperTight4)); |
855 |
> |
memcpy(cuthoel ,cuthoelHyperTight4 ,sizeof(cuthoelHyperTight4)); |
856 |
> |
memcpy(cutip_gsf ,cutip_gsfHyperTight4 ,sizeof(cutip_gsfHyperTight4)); |
857 |
> |
memcpy(cutip_gsfl ,cutip_gsflHyperTight4 ,sizeof(cutip_gsflHyperTight4)); |
858 |
> |
memcpy(cutiso_sum ,cutiso_sumHyperTight4 ,sizeof(cutiso_sumHyperTight4)); |
859 |
> |
memcpy(cutiso_sumoet ,cutiso_sumoetHyperTight4 ,sizeof(cutiso_sumoetHyperTight4)); |
860 |
> |
memcpy(cutiso_sumoetl,cutiso_sumoetlHyperTight4,sizeof(cutiso_sumoetlHyperTight4)); |
861 |
> |
memcpy(cutsee ,cutseeHyperTight4 ,sizeof(cutseeHyperTight4)); |
862 |
> |
memcpy(cutseel ,cutseelHyperTight4 ,sizeof(cutseelHyperTight4)); |
863 |
> |
} |
864 |
> |
else { |
865 |
> |
return 0; |
866 |
> |
} |
867 |
|
int result = 0; |
868 |
|
|
869 |
|
const int ncuts = 10; |