3171 using namespace edm;
3175 const float BARL = 1.4442;
3177 const float END_HI = 2.5;
3182 e.getByLabel(
"trackAssociatorByHitsForPhotonValidation", theHitsAssociator);
3186 LogInfo(
"PhotonValidator") <<
"PhotonValidator Analyzing event number: " <<
e.id() <<
" Global Counter " <<
nEvt_ 3203 if (!photonHandle.
isValid()) {
3204 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the Photon collection " << std::endl;
3211 if (!pfCandidateHandle.
isValid()) {
3212 edm::LogError(
"PhotonValidator") <<
"Error! Can't get the product pfCandidates " << std::endl;
3217 if (
fName_ ==
"pfPhotonValidator") {
3219 if (!phoToParticleBasedIsoMapHandle.
isValid()) {
3220 edm::LogInfo(
"PhotonValidator") <<
"Error! Can't get the product: valueMap photons to particle based iso " 3223 phoToParticleBasedIsoMap = *(phoToParticleBasedIsoMapHandle.
product());
3248 std::vector<SimTrack> theSimTracks;
3249 std::vector<SimVertex> theSimVertices;
3261 theSimTracks.insert(theSimTracks.end(), SimTk->begin(), SimTk->end());
3262 theSimVertices.insert(theSimVertices.end(), SimVtx->begin(), SimVtx->end());
3289 std::vector<reco::PhotonCollection::const_iterator> StoRMatchedConvertedPhotons;
3299 OISimToReco =
trackAssociator->associateSimToReco(outInTrkHandle, ElectronTPHandle);
3300 IOSimToReco =
trackAssociator->associateSimToReco(inOutTrkHandle, ElectronTPHandle);
3302 OIRecoToSim =
trackAssociator->associateRecoToSim(outInTrkHandle, ElectronTPHandle);
3303 IORecoToSim =
trackAssociator->associateRecoToSim(inOutTrkHandle, ElectronTPHandle);
3307 vector<reco::SimToRecoCollection*> StoRCollPtrs;
3308 StoRCollPtrs.push_back(&OISimToReco);
3309 StoRCollPtrs.push_back(&IOSimToReco);
3310 vector<reco::RecoToSimCollection*> RtoSCollPtrs;
3311 RtoSCollPtrs.push_back(&OIRecoToSim);
3312 RtoSCollPtrs.push_back(&IORecoToSim);
3314 for (
int i = 0;
i < 2;
i++)
3316 for (
int i = 0;
i < 2;
i++)
3319 std::vector<reco::PhotonRef> myPhotons;
3321 for (
unsigned int iPho = 0; iPho < photonHandle->size(); iPho++) {
3324 if (fabs(phoRef->eta()) > 2.5)
3326 myPhotons.push_back(phoRef);
3329 std::sort(myPhotons.begin(), myPhotons.end(), sortPhotons());
3331 if (myPhotons.size() >= 2) {
3332 if (myPhotons[0]->
et() > 40 && myPhotons[1]->et() > 25) {
3338 float gamgamMass2 = p12.Dot(p12);
3339 float gamgamMass2_regr1 = p12_regr1.Dot(p12_regr1);
3340 float gamgamMass2_regr2 = p12_regr2.Dot(p12_regr2);
3343 if (gamgamMass2 > 0) {
3346 if (myPhotons[0]->isEB() && myPhotons[1]->isEB())
3348 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3349 (myPhotons[0]->isEB() && myPhotons[1]->isEE()))
3352 if (myPhotons[0]->
r9() > 0.94 && myPhotons[1]->
r9() > 0.94) {
3354 if (myPhotons[0]->isEB() && myPhotons[1]->isEB())
3356 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3357 (myPhotons[0]->isEB() && myPhotons[1]->isEE()))
3367 if (chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005) {
3369 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3372 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3373 (myPhotons[0]->isEB() && myPhotons[1]->isEE())) {
3379 myPhotons[1]->
r9() > 0.93) {
3383 if (chi2Prob1 > 0.0005) {
3385 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3388 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3394 myPhotons[0]->
r9() > 0.93) {
3398 if (chi2Prob1 > 0.0005) {
3400 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3403 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3412 if (gamgamMass2_regr1 > 0) {
3415 if (myPhotons[0]->isEB() && myPhotons[1]->isEB())
3417 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3418 (myPhotons[0]->isEB() && myPhotons[1]->isEE()))
3421 if (myPhotons[0]->
r9() > 0.94 && myPhotons[1]->
r9() > 0.94) {
3423 if (myPhotons[0]->isEB() && myPhotons[1]->isEB())
3425 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3426 (myPhotons[0]->isEB() && myPhotons[1]->isEE()))
3437 if (chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005) {
3439 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3442 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3443 (myPhotons[0]->isEB() && myPhotons[1]->isEE())) {
3449 myPhotons[1]->
r9() > 0.93) {
3453 if (chi2Prob1 > 0.0005) {
3455 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3458 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3464 myPhotons[0]->
r9() > 0.93) {
3468 if (chi2Prob1 > 0.0005) {
3470 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3473 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3482 if (gamgamMass2_regr2 > 0) {
3485 if (myPhotons[0]->isEB() && myPhotons[1]->isEB())
3487 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3488 (myPhotons[0]->isEB() && myPhotons[1]->isEE()))
3491 if (myPhotons[0]->
r9() > 0.94 && myPhotons[1]->
r9() > 0.94) {
3493 if (myPhotons[0]->isEB() && myPhotons[1]->isEB())
3495 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3496 (myPhotons[0]->isEB() && myPhotons[1]->isEE()))
3507 if (chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005) {
3509 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3512 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->isEB()) ||
3513 (myPhotons[0]->isEB() && myPhotons[1]->isEE())) {
3519 myPhotons[1]->
r9() > 0.93) {
3523 if (chi2Prob1 > 0.0005) {
3525 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3528 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3534 myPhotons[0]->
r9() > 0.93) {
3538 if (chi2Prob1 > 0.0005) {
3540 if (myPhotons[0]->isEB() && myPhotons[1]->isEB()) {
3543 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3554 for (std::vector<PhotonMCTruth>::const_iterator mcPho = mcPhotons.begin(); mcPho != mcPhotons.end(); mcPho++) {
3558 for (HepMC::GenEvent::particle_const_iterator mcIter = myGenEvent->particles_begin();
3559 mcIter != myGenEvent->particles_end();
3561 if ((*mcIter)->pdg_id() != 22)
3563 bool isTheSame =
false;
3565 if ((*mcIter)->production_vertex()) {
3566 if ((*mcIter)->production_vertex()->particles_begin(
HepMC::parents) !=
3568 mother = *((*mcIter)->production_vertex()->particles_begin(
HepMC::parents));
3571 float mcPhi = (*mcPho).fourMomentum().phi();
3573 mcEta_ = (*mcPho).fourMomentum().pseudoRapidity();
3575 mcConvR_ = (*mcPho).vertex().perp();
3582 if (fabs(
mcEta_) > END_HI)
3585 if (mother ==
nullptr || (mother !=
nullptr && mother->pdg_id() == 22) ||
3586 (mother !=
nullptr && mother->pdg_id() == 25) || (mother !=
nullptr && mother->pdg_id() == 35)) {
3587 double dPt = fabs((*mcIter)->momentum().perp() - (*mcPho).fourMomentum().et());
3588 float phiMother = (*mcIter)->momentum().phi();
3590 double dEta = fabs((*mcIter)->momentum().eta() - (*mcPho).fourMomentum().pseudoRapidity());
3592 if (
dEta <= 0.0001 &&
dPhi <= 0.0001 && dPt <= 0.0001)
3610 bool goodSimConversion =
false;
3611 bool visibleConversion =
false;
3612 bool visibleConversionsWithTwoSimTracks =
false;
3613 if ((*mcPho).isAConversion() == 1) {
3627 (fabs(
mcEta_) > BARL && fabs(
mcEta_) <= END_HI && fabs((*mcPho).vertex().z()) < 210))
3628 visibleConversion =
true;
3633 if (fabs(
tp->vx() - (*mcPho).vertex().x()) < 0.001 && fabs(
tp->vy() - (*mcPho).vertex().y()) < 0.001 &&
3634 fabs(
tp->vz() - (*mcPho).vertex().z()) < 0.001) {
3639 visibleConversionsWithTwoSimTracks =
true;
3640 goodSimConversion =
false;
3642 if (visibleConversion && visibleConversionsWithTwoSimTracks)
3643 goodSimConversion =
true;
3644 if (goodSimConversion) {
3665 float minDelta = 10000.;
3666 std::vector<reco::PhotonRef> thePhotons;
3671 for (
unsigned int iPho = 0; iPho < photonHandle->size(); iPho++) {
3673 thePhotons.push_back(aPho);
3674 float phiPho = aPho->phi();
3675 float etaPho = aPho->eta();
3708 bool phoIsInBarrel =
false;
3709 bool phoIsInEndcap =
false;
3710 bool phoIsInEndcapP =
false;
3711 bool phoIsInEndcapM =
false;
3715 if (fabs(matchingPho->superCluster()->position().eta()) < 1.479) {
3716 phoIsInBarrel =
true;
3718 phoIsInEndcap =
true;
3719 if (matchingPho->superCluster()->position().eta() > 0)
3720 phoIsInEndcapP =
true;
3721 if (matchingPho->superCluster()->position().eta() < 0)
3722 phoIsInEndcapM =
true;
3726 if (phoIsInBarrel) {
3729 if (!ecalRecHitHandle.
isValid()) {
3732 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
3736 }
else if (phoIsInEndcap) {
3739 if (!ecalRecHitHandle.
isValid()) {
3742 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
3749 float photonE = matchingPho->energy();
3750 float sigmaEoE = matchingPho->getCorrectedEnergyError(matchingPho->getCandidateP4type()) / matchingPho->energy();
3752 float photonEt = matchingPho->pt();
3755 float r9 = matchingPho->r9();
3757 float r1 = matchingPho->r1x5();
3758 float r2 = matchingPho->r2x5();
3759 float sigmaIetaIeta = matchingPho->sigmaIetaIeta();
3761 float hOverE = matchingPho->hadronicOverEm();
3762 float newhOverE = matchingPho->hadTowOverEm();
3763 float ecalIso = matchingPho->ecalRecHitSumEtConeDR04();
3764 float hcalIso = matchingPho->hcalTowerSumEtConeDR04();
3765 float newhcalIso = matchingPho->hcalTowerSumEtBcConeDR04();
3766 float trkIso = matchingPho->trkSumPtSolidConeDR04();
3767 float nIsoTrk = matchingPho->nTrkSolidConeDR04();
3769 float chargedHadIso = matchingPho->chargedHadronIso();
3770 float neutralHadIso = matchingPho->neutralHadronIso();
3771 float photonIso = matchingPho->photonIso();
3772 float etOutsideMustache = matchingPho->etOutsideMustache();
3773 int nClusterOutsideMustache = matchingPho->nClusterOutsideMustache();
3774 float pfMVA = matchingPho->pfMVA();
3776 std::vector<std::pair<DetId, float> >::const_iterator rhIt;
3777 bool atLeastOneDeadChannel =
false;
3779 bcIt != matchingPho->superCluster()->clustersEnd();
3781 for (rhIt = (*bcIt)->hitsAndFractions().begin(); rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
3784 if (rhIt->first == (*it).id()) {
3785 if ((*it).recoFlag() == 9) {
3786 atLeastOneDeadChannel =
true;
3794 if (atLeastOneDeadChannel) {
3812 h_scEt_[
type][0]->
Fill(matchingPho->superCluster()->energy() / cosh(matchingPho->superCluster()->eta()));
3814 h_psE_->
Fill(matchingPho->superCluster()->preshowerEnergy());
3887 h_phoDEta_[0]->
Fill(matchingPho->eta() - (*mcPho).fourMomentum().eta());
3891 h_nConv_[0][0]->
Fill(
float(matchingPho->conversions().size()));
3892 h_nConv_[1][0]->
Fill(
float(matchingPho->conversionsOneLeg().size()));
3902 p_eResVsEt_[0][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3907 h2_eResVsEt_[0][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3911 h2_sceResVsR9_[0]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
3915 p_sceResVsR9_[0]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
3917 if ((*mcPho).isAConversion() == 0) {
3948 if (photonE / (*mcPho).fourMomentum().e() < 0.3 && photonE / (*mcPho).fourMomentum().e() > 0.1) {
3951 if ((
r9 > 0.94 && phoIsInBarrel) || (
r9 > 0.95 && phoIsInEndcap)) {
3957 h2_eResVsEt_[0][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3958 p_eResVsEt_[0][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3963 }
else if ((
r9 <= 0.94 && phoIsInBarrel) || (
r9 <= 0.95 && phoIsInEndcap)) {
3968 p_eResVsEt_[0][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3974 h2_eResVsEt_[0][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3979 if (phoIsInBarrel) {
3981 h_scEt_[
type][1]->
Fill(matchingPho->superCluster()->energy() / cosh(matchingPho->superCluster()->eta()));
4005 h_nConv_[1][1]->
Fill(
float(matchingPho->conversionsOneLeg().size()));
4011 p_sceResVsR9_[1]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4014 h2_sceResVsR9_[1]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4017 h2_eResVsEt_[1][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4019 p_eResVsEt_[1][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4020 p_eResVsNVtx_[1][0]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4030 h2_eResVsEt_[1][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4031 p_eResVsEt_[1][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4032 p_eResVsNVtx_[1][1]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4041 p_eResVsEt_[1][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4042 p_eResVsNVtx_[1][2]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4046 h2_eResVsEt_[1][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4051 if (phoIsInEndcap) {
4053 h_scEt_[
type][2]->
Fill(matchingPho->superCluster()->energy() / cosh(matchingPho->superCluster()->eta()));
4077 h_nConv_[1][2]->
Fill(
float(matchingPho->conversionsOneLeg().size()));
4083 p_sceResVsR9_[2]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4086 h2_sceResVsR9_[2]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4089 h2_eResVsEt_[2][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4092 p_eResVsEt_[2][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4093 p_eResVsNVtx_[2][0]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4103 h2_eResVsEt_[2][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4104 p_eResVsEt_[2][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4105 p_eResVsNVtx_[2][1]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4114 p_eResVsEt_[2][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4115 p_eResVsNVtx_[2][2]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4120 h2_eResVsEt_[2][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4127 if (
fName_ ==
"pfPhotonValidator") {
4128 float SumPtIsoValCh = 0.;
4129 float SumPtIsoValNh = 0.;
4130 float SumPtIsoValPh = 0.;
4132 float SumPtIsoValCleanCh = 0.;
4133 float SumPtIsoValCleanNh = 0.;
4134 float SumPtIsoValCleanPh = 0.;
4136 for (
unsigned int lCand = 0; lCand < pfCandidateHandle->size(); lCand++) {
4138 float dR =
deltaR(matchingPho->eta(), matchingPho->phi(), pfCandRef->eta(), pfCandRef->phi());
4148 SumPtIsoValCh += pfCandRef->pt();
4156 SumPtIsoValNh += pfCandRef->pt();
4164 SumPtIsoValPh += pfCandRef->pt();
4173 for (std::vector<reco::PFCandidateRef>::const_iterator
i = phoToParticleBasedIsoMap[matchingPho].
begin();
4174 i != phoToParticleBasedIsoMap[matchingPho].
end();
4176 if ((*
i) == pfCandRef) {
4184 SumPtIsoValCleanCh += pfCandRef->pt();
4192 SumPtIsoValCleanNh += pfCandRef->pt();
4200 SumPtIsoValCleanPh += pfCandRef->pt();
4217 if (phoIsInBarrel) {
4235 if (!(visibleConversion && visibleConversionsWithTwoSimTracks))
4246 if (fabs(
mcEta_) <= 1.) {
4256 bool atLeastOneRecoTwoTrackConversion =
false;
4257 for (
unsigned int iConv = 0; iConv <
conversions.size(); iConv++) {
4259 double like = aConv->MVAout();
4268 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
4271 atLeastOneRecoTwoTrackConversion =
true;
4275 if (
tracks.size() == 2) {
4290 std::map<const reco::Track*, TrackingParticleRef> myAss;
4291 std::map<const reco::Track*, TrackingParticleRef>::const_iterator itAss;
4292 std::map<reco::TrackRef, TrackingParticleRef>::const_iterator itAssMin;
4293 std::map<reco::TrackRef, TrackingParticleRef>::const_iterator itAssMax;
4297 for (
unsigned int i = 0;
i <
tracks.size();
i++) {
4314 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV;
4318 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[0]];
4320 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[1]];
4334 float refP = -99999.;
4335 float refPt = -99999.;
4336 if (aConv->conversionVertex().isValid()) {
4337 refP =
sqrt(aConv->refittedPairMomentum().Mag2());
4338 refPt =
sqrt(aConv->refittedPairMomentum().perp2());
4340 float invM = aConv->pairInvariantMass();
4349 if (
tracks.size() == 2) {
4356 if (!aConv->caloCluster().empty())
4359 float trkProvenance = 3;
4360 if (
tracks[0]->
algoName() ==
"outInEcalSeededConv" &&
tracks[1]->algoName() ==
"outInEcalSeededConv")
4362 if (
tracks[0]->
algoName() ==
"inOutEcalSeededConv" &&
tracks[1]->algoName() ==
"inOutEcalSeededConv")
4365 (
tracks[1]->algoName() ==
"outInEcalSeededConv" &&
tracks[0]->algoName() ==
"inOutEcalSeededConv"))
4367 if (trkProvenance == 3) {
4384 if (!aConv->caloCluster().empty())
4394 if (aConv->conversionVertex().isValid()) {
4404 if (chi2Prob > 0.0005) {
4412 if (chi2Prob > 0.0005) {
4413 if (!aConv->caloCluster().empty()) {
4416 h_convERes_[0][0]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
4426 if (phoIsInBarrel) {
4427 if (!aConv->caloCluster().empty())
4428 h_convERes_[0][1]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
4433 if (phoIsInEndcap) {
4434 if (!aConv->caloCluster().empty())
4435 h_convERes_[0][2]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
4449 float eoverp = -99999.;
4451 if (aConv->conversionVertex().isValid()) {
4452 eoverp = photonE /
sqrt(aConv->refittedPairMomentum().Mag2());
4459 matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4476 matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4479 matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4487 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
4504 if (phoIsInBarrel) {
4506 if (aConv->conversionVertex().isValid()) {
4518 eoverp, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4526 if (phoIsInEndcap) {
4528 if (aConv->conversionVertex().isValid()) {
4534 eoverp, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4542 if (aConv->conversionVertex().isValid()) {
4568 float signX = aConv->refittedPairMomentum().x() / fabs(aConv->refittedPairMomentum().x());
4569 float signY = aConv->refittedPairMomentum().y() / fabs(aConv->refittedPairMomentum().y());
4570 float signZ = aConv->refittedPairMomentum().z() / fabs(aConv->refittedPairMomentum().z());
4579 float thetaConv = aConv->refittedPairMomentum().Theta();
4580 float thetaSC = matchingPho->superCluster()->position().theta();
4582 sqrt(matchingPho->superCluster()->position().x() * matchingPho->superCluster()->position().x() +
4583 matchingPho->superCluster()->position().y() * matchingPho->superCluster()->position().y());
4584 float zSC = matchingPho->superCluster()->position().z();
4585 float zPV =
sqrt(rSC * rSC + zSC * zSC) *
sin(thetaConv - thetaSC) /
sin(thetaConv);
4590 if (phoIsInBarrel) {
4593 }
else if (phoIsInEndcap) {
4596 }
else if (phoIsInEndcapP) {
4599 }
else if (phoIsInEndcapM) {
4610 float dPhiTracksAtEcal = -99;
4611 float dEtaTracksAtEcal = -99;
4612 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[0].
isNonnull() &&
4613 aConv->bcMatchingWithTracks()[1].
isNonnull()) {
4615 float recoPhi1 = aConv->ecalImpactPosition()[0].phi();
4616 float recoPhi2 = aConv->ecalImpactPosition()[1].phi();
4617 float recoEta1 = aConv->ecalImpactPosition()[0].eta();
4618 float recoEta2 = aConv->ecalImpactPosition()[1].eta();
4625 dPhiTracksAtEcal = recoPhi1 - recoPhi2;
4627 dEtaTracksAtEcal = recoEta1 - recoEta2;
4639 if (phoIsInBarrel) {
4643 if (phoIsInEndcap) {
4649 for (
unsigned int i = 0;
i <
tracks.size();
i++) {
4651 itAss = myAss.find(tfrb.
get());
4652 if (itAss == myAss.end())
4655 float trkProvenance = 3;
4656 if (
tracks[0]->
algoName() ==
"outInEcalSeededConv" &&
tracks[1]->algoName() ==
"outInEcalSeededConv")
4658 if (
tracks[0]->
algoName() ==
"inOutEcalSeededConv" &&
tracks[1]->algoName() ==
"inOutEcalSeededConv")
4662 (
tracks[1]->algoName() ==
"outInEcalSeededConv" &&
tracks[0]->algoName() ==
"inOutEcalSeededConv"))
4680 float simPt =
sqrt(((*itAss).second)->momentum().perp2());
4682 float refPt = -9999.;
4683 float px = 0,
py = 0;
4685 if (aConv->conversionVertex().isValid()) {
4686 reco::Track refTrack = aConv->conversionVertex().refittedTracks()[
i];
4691 float ptres = refPt - simPt;
4693 float pterror = aConv->conversionVertex().refittedTracks()[
i].ptError();
4696 if (trkProvenance == 3)
4707 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[
i].
isNonnull())
4709 sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()));
4711 if (phoIsInBarrel) {
4717 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[
i].
isNonnull())
4719 sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()));
4721 if (phoIsInEndcap) {
4727 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[
i].
isNonnull())
4729 sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()));
4742 if (!atLeastOneRecoTwoTrackConversion) {
4743 for (
unsigned int iConv = 0; iConv < conversionsOneLeg.
size(); iConv++) {
4745 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
4751 std::map<const reco::Track*, TrackingParticleRef> myAss;
4752 for (
unsigned int i = 0;
i <
tracks.size();
i++) {
4757 float eoverp = photonE /
tracks[0]->p();
4759 if (phoIsInBarrel) {
4765 if (fabs(
mcEta_) <= 1.) {
4775 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV;
4779 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[0]];
4781 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[1]];
4820 for (
unsigned int iConv = 0; iConv <
conversions.size(); iConv++) {
4822 double like = aConv->MVAout();
4826 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
4836 bool phoIsInBarrel =
false;
4837 bool phoIsInEndcap =
false;
4838 if (fabs(aPho.
superCluster()->position().eta()) < 1.479) {
4839 phoIsInBarrel =
true;
4841 phoIsInEndcap =
true;
4853 if (aConv->conversionVertex().isValid())
4859 for (std::vector<PhotonMCTruth>::const_iterator mcPho = mcPhotons.begin(); mcPho != mcPhotons.end(); mcPho++) {
4861 float mcPhi = (*mcPho).fourMomentum().phi();
4864 mcEta_ = (*mcPho).fourMomentum().pseudoRapidity();
4872 if (fabs(
mcEta_) > END_HI)
4879 if ((*mcPho).isAConversion() != 1)
4882 (fabs(
mcEta_) > BARL && fabs(
mcEta_) <= END_HI && fabs((*mcPho).vertex().z()) < 210)))
4888 if (fabs(
tp->vx() - (*mcPho).vertex().x()) < 0.0001 && fabs(
tp->vy() - (*mcPho).vertex().y()) < 0.0001 &&
4889 fabs(
tp->vz() - (*mcPho).vertex().z()) < 0.0001) {
4899 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV1, trackV2;
4901 auto itP1 =
p1.find(tk1);
4902 auto itP2 =
p2.find(tk2);
4903 bool good = (itP1 !=
p1.end()) and (not itP1->val.empty()) and (itP2 !=
p2.end()) and (not itP2->val.empty());
4905 itP1 =
p1.find(tk2);
4906 itP2 =
p2.find(tk1);
4907 good = (itP1 !=
p1.end()) and (not itP1->val.empty()) and (itP2 !=
p2.end()) and (not itP2->val.empty());
4910 std::vector<std::pair<TrackingParticleRef, double> >
const& tp1 = itP1->val;
4911 std::vector<std::pair<TrackingParticleRef, double> >
const& tp2 = itP2->val;
4916 if (
abs(tpr1->pdgId()) == 11 &&
abs(tpr2->pdgId()) == 11) {
4917 if ((tpr1->parentVertex()->sourceTracks_end() - tpr1->parentVertex()->sourceTracks_begin() == 1) &&
4918 (tpr2->parentVertex()->sourceTracks_end() - tpr2->parentVertex()->sourceTracks_begin() == 1)) {
4919 if (tpr1->parentVertex().
key() == tpr2->parentVertex().
key() &&
4920 ((*tpr1->parentVertex()->sourceTracks_begin())->
pdgId() == 22)) {
4933 if (aConv->conversionVertex().isValid())
4940 if (aConv->conversionVertex().isValid()) {
4941 float chi2Prob =
ChiSquaredProbability(aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof());
4942 double convR =
sqrt(aConv->conversionVertex().position().perp2());
4943 double scalar = aConv->conversionVertex().position().x() * aConv->pairMomentum().x() +
4944 aConv->conversionVertex().position().y() * aConv->pairMomentum().y();
4947 convR = -
sqrt(aConv->conversionVertex().position().perp2());
4949 sqrt(aConv->conversionVertex().position().perp2()));
4951 if (!aConv->caloCluster().empty()) {
4954 sqrt(aConv->conversionVertex().position().perp2()));
4955 if (fabs(aConv->caloCluster()[0]->eta()) <= 1.) {
4956 h_convVtxYvsX_->
Fill(aConv->conversionVertex().position().y(), aConv->conversionVertex().position().x());
4961 aConv->conversionVertex().position().x());
4963 aConv->conversionVertex().position().x());
4968 if (fabs(aConv->caloCluster()[0]->eta()) > 1.)
4974 if (phoIsInBarrel) {
4978 if (phoIsInEndcap) {
4990 for (reco::GenJetCollection::const_iterator genJetIter =
genJetCollection.begin();
4995 if (fabs(genJetIter->eta()) > 2.5)
4998 float mcJetPhi = genJetIter->phi();
5001 float mcJetPt = genJetIter->pt();
5007 std::vector<reco::Photon> thePhotons;
5014 float phiPho = aPho.
phi();
5015 float etaPho = aPho.
eta();
5026 matchingPho = *iPho;
5039 bool phoIsInBarrel =
false;
5040 bool phoIsInEndcap =
false;
5041 if (fabs(matchingPho.
superCluster()->position().eta()) < 1.479) {
5042 phoIsInBarrel =
true;
5044 phoIsInEndcap =
true;
5047 if (phoIsInBarrel) {
5050 if (!ecalRecHitHandle.
isValid()) {
5053 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
5057 }
else if (phoIsInEndcap) {
5060 if (!ecalRecHitHandle.
isValid()) {
5063 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
5069 float photonE = matchingPho.
energy();
5070 float photonEt = matchingPho.
et();
5071 float r9 = matchingPho.
r9();
5072 float r1 = matchingPho.
r1x5();
5073 float r2 = matchingPho.
r2x5();
5080 std::vector<std::pair<DetId, float> >::const_iterator rhIt;
5082 bool atLeastOneDeadChannel =
false;
5086 for (rhIt = (*bcIt)->hitsAndFractions().begin(); rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
5089 if (rhIt->first == (*it).id()) {
5090 if ((*it).recoFlag() == 9) {
5091 atLeastOneDeadChannel =
true;
5099 if (atLeastOneDeadChannel) {
5168 if (phoIsInBarrel) {
5192 }
else if (phoIsInEndcap) {
5221 for (
unsigned int iConv = 0; iConv <
conversions.size(); iConv++) {
5224 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
5225 double like = aConv->MVAout();
5230 if (!aConv->caloCluster().empty()) {
5235 float eoverp = aConv->EoverP();
5239 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
5242 if (phoIsInBarrel) {
5248 }
else if (phoIsInEndcap) {
5256 if (aConv->conversionVertex().isValid()) {
5257 double convR =
sqrt(aConv->conversionVertex().position().perp2());
5258 double scalar = aConv->conversionVertex().position().x() * aConv->pairMomentum().x() +
5259 aConv->conversionVertex().position().y() * aConv->pairMomentum().y();
5261 convR = -
sqrt(aConv->conversionVertex().position().perp2());
5265 sqrt(aConv->conversionVertex().position().perp2()));
5266 if (!aConv->caloCluster().empty() && fabs(aConv->caloCluster()[0]->eta()) <= 1.) {
5268 aConv->conversionVertex().position().x());
5282 if (!(mcIter->pdgId() == 22))
5284 if (mcIter->mother() !=
nullptr and !(mcIter->mother()->pdgId() == 25))
5286 if (fabs(mcIter->eta()) > 2.5)
5289 float mcPhi = mcIter->phi();
5290 float mcEta = mcIter->eta();
5292 float mcEnergy = mcIter->energy();
5294 double dR = 9999999.;
5295 float minDr = 10000.;
5299 for (
unsigned int ipho = 0; ipho < photonHandle->size(); ipho++) {
5302 double dphi = pho->phi() - mcPhi;
5304 dphi = dphi < 0 ? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi;
5306 double deta = pho->superCluster()->position().eta() - mcEta;
5309 if (
dR < 0.1 &&
dR < minDr) {
5322 bool phoIsInBarrel =
false;
5323 bool phoIsInEndcap =
false;
5325 float phoEta = matchingPho->
superCluster()->position().eta();
5326 if (fabs(phoEta) < 1.479) {
5327 phoIsInBarrel =
true;
5329 phoIsInEndcap =
true;
5332 float photonE = matchingPho->
energy();
5334 float photonEt = matchingPho->
energy() / cosh(matchingPho->
eta());
5337 float r9 = matchingPho->
r9();
5338 float full5x5_r9 = matchingPho->
full5x5_r9();
5339 float r1 = matchingPho->
r1x5();
5340 float r2 = matchingPho->
r2x5();
5358 if ((photonEt > 14 && newhOverE < 0.15) || (photonEt > 10 && photonEt < 14 && chargedHadIso < 10)) {
5390 if (phoIsInBarrel) {
5414 if (phoIsInEndcap) {
MonitorElement * p_DCotTracksVsR_
MonitorElement * p_sigmaEoEVsEta_[3]
MonitorElement * h_convVtxdX_endcap_
MonitorElement * h_SumPtOverPhoPt_NeuHad_unCleaned_[3]
MonitorElement * h_zPVFromTracks_[5]
MonitorElement * h_hOverE_miniAOD_[3][3]
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
MonitorElement * h_OIinnermostHitR_
MonitorElement * h2_nTrkSolidConeDR04VsEta_[3]
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
MonitorElement * p_hOverEVsEtBkg_
MonitorElement * h_nSimPho_[2]
MonitorElement * p_DPhiTracksAtEcalVsR_
MonitorElement * h_scBkgPhi_
MonitorElement * h2_Chi2VsR_[3]
T getParameter(std::string const &) const
MonitorElement * h_sigmaIetaIeta_[3][3]
auto const good
min quality of good
ParticleType
particle types
MonitorElement * p_sceResVsR9_[3]
MonitorElement * h_DPhiTracksAtEcal_[2][3]
MonitorElement * h_scPhi_miniAOD_[2]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEta_[3]
MonitorElement * h_IOinnermostHitR_
MonitorElement * h_phoBkgDPhi_
MonitorElement * p_nHitsVsEtaSL_[2]
MonitorElement * h_DPhiTracksAtVtx_[2][3]
MonitorElement * p_EoverEtrueVsEta_[3]
MonitorElement * p_EoverPVsEta_[3]
MonitorElement * h_convVtxdZ_
MonitorElement * h_dRPhoPFcand_Pho_Cleaned_[3]
MonitorElement * h_newhOverE_[3][3]
MonitorElement * h_phoBkgPhi_
MonitorElement * h_chHadIso_[3]
MonitorElement * h_phoPhi_[2]
edm::EDGetTokenT< edm::SimVertexContainer > g4_simVtx_Token_
MonitorElement * h_hcalTowerBcSumEtConeDR04_[3][3]
MonitorElement * h2_PoverPtrueVsEoverP_[3]
reco::ConversionRefVector conversions() const
vector of references to Conversion's
MonitorElement * h_mvaOut_[3]
MonitorElement * h_scE_[2][3]
edm::EDGetTokenT< reco::VertexCollection > offline_pvToken_
MonitorElement * h_nRecoVtx_
MonitorElement * h_convVtxRvsZ_zoom_[2]
MonitorElement * h2_hOverEVsEt_[3]
MonitorElement * h_hcalTowerSumEtConeDR04_miniAOD_[3][3]
MonitorElement * h_SumPtOverPhoPt_NeuHad_Cleaned_[3]
edm::EDGetTokenT< edm::HepMCProduct > hepMC_Token_
MonitorElement * p_hcalTowerSumEtConeDR04VsEt_[3]
MonitorElement * p_isoTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * h_DPhiTracksAtVtxBkg_[3]
edm::EDGetTokenT< edm::SimVertexContainer > famos_simVtx_Token_
MonitorElement * h2_EoverPVsR_[3]
MonitorElement * h_phoEt_[2][3]
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > transientTrackBuilderToken_
float ecalRecHitSumEtConeDR04() const
MonitorElement * h_DEtaTracksAtEcal_[2][3]
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidates_
MonitorElement * h_phoEResRegr2_[3][3]
MonitorElement * p_convVtxdYVsY_
MonitorElement * h_phoDEta_[2]
MonitorElement * h_SimJet_[3]
MonitorElement * h2_convVtxdRVsEta_
MonitorElement * h_RecoConvTwoMTracks_[5]
MonitorElement * h_convVtxdY_
MonitorElement * h_scEtaWidth_[2]
Sin< T >::type sin(const T &t)
MonitorElement * h2_hOverEVsEtaBkg_
MonitorElement * h2_DCotTracksVsEta_
std::vector< GenJet > GenJetCollection
collection of GenJet objects
T const * product() const
MonitorElement * h2_etaVsRsim_[3]
MonitorElement * h2_PtRecVsPtSim_[3]
MonitorElement * h2_PoverPtrueVsEta_[3]
MonitorElement * h_convVtxdZ_endcap_
std::vector< EcalRecHit >::const_iterator const_iterator
MonitorElement * h_scEt_[2][3]
edm::EDGetTokenT< edm::View< reco::Track > > conversionIOTrackPr_Token_
MonitorElement * h_dzPVFromTracks_[5]
MonitorElement * p_EoverEtrueVsR_[3]
MonitorElement * h2_sigmaIetaIetaVsEtBkg_[3]
MonitorElement * h_ecalRecHitSumEtConeDR04Bkg_[3]
MonitorElement * h_simConvVtxRvsZ_[4]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEt_[3]
MonitorElement * h_MatchedSimJet_[3]
MonitorElement * p_nHitsVsRSL_[2]
MonitorElement * p_r2VsEtBkg_
bool isNonnull() const
Checks for non-null.
MonitorElement * h_dRPhoPFcand_NeuHad_Cleaned_[3]
MonitorElement * h2_isoTrkSolidConeDR04VsEtaBkg_
MonitorElement * h_SimConvTwoMTracksAndVtxPGT0005_[5]
MonitorElement * h2_r1VsEtaBkg_
MonitorElement * h2_isoTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * h_TkD0_[3]
MonitorElement * h_dRPhoPFcand_ChHad_Cleaned_[3]
MonitorElement * h_chHadIso_miniAOD_[3]
MonitorElement * h_convVtxdY_endcap_
MonitorElement * h_EoverP_SL_[3]
std::unique_ptr< PhotonMCTruthFinder > thePhotonMCTruthFinder_
MonitorElement * p_eResVsR9_[3]
MonitorElement * h_etOutsideMustache_[3]
MonitorElement * h2_DPhiTracksAtVtxVsEta_
MonitorElement * p_DPhiTracksAtVtxVsR_
MonitorElement * h_SumPtOverPhoPt_ChHad_Cleaned_[3]
MonitorElement * p_sigmaEoEVsEt_[3][3]
MonitorElement * h_convVtxdR_endcap_
Log< level::Error, false > LogError
MonitorElement * h_convSLVtxRvsZ_[3]
MonitorElement * h_phoEt_miniAOD_[2][3]
MonitorElement * p_newhOverEVsEta_[3]
MonitorElement * h2_convVtxRrecVsTrue_
MonitorElement * h2_DCotTracksVsR_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
MonitorElement * h2_PtRecVsPtSimMixProv_
MonitorElement * h_SumPtOverPhoPt_ChHad_unCleaned_[3]
key_type key() const
Accessor for product key.
MonitorElement * h_convEtaBkg_
edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIso_token
static const double deltaEta
MonitorElement * h_phoE_miniAOD_[2][3]
MonitorElement * h_scPhi_[2]
MonitorElement * h2_r2VsEtaBkg_
MonitorElement * h_convVtxdPhi_
MonitorElement * h_scBkgE_[3]
MonitorElement * h_convERes_[2][3]
MonitorElement * p_Chi2VsR_[3]
MonitorElement * h_SimPho_[3]
Denominator for efficiencies.
const_iterator end() const
MonitorElement * h2_r2VsEtBkg_
MonitorElement * p_r2VsEtaBkg_
MonitorElement * h_convVtxRvsZ_[3]
MonitorElement * h_nTrkSolidConeDR04_miniAOD_[3][3]
MonitorElement * h_convPhi_[2]
MonitorElement * h_nConv_[2][3]
info per conversion
MonitorElement * h2_isoTrkSolidConeDR04VsEt_[3]
MonitorElement * h_full5x5_r9_miniAOD_[3][3]
P4type getCandidateP4type() const
MonitorElement * h_r9_[3][3]
MonitorElement * h2_sigmaIetaIetaVsEta_[3]
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
MonitorElement * h_dRPhoPFcand_Pho_unCleaned_[3]
MonitorElement * p_EoverPVsR_[3]
float trkSumPtSolidConeDR04() const
MonitorElement * h2_sceResVsR9_[3]
MonitorElement * h_phoEta_[2]
MonitorElement * h2_Chi2VsEta_[3]
MonitorElement * h_simTkPt_
MonitorElement * h_mvaOutBkg_[3]
MonitorElement * h_trkAlgo_
MonitorElement * h2_dzPVVsR_
edm::EDGetTokenT< edm::SimTrackContainer > g4_simTk_Token_
MonitorElement * h_scEta_[2]
MonitorElement * h_convVtxdX_barrel_
MonitorElement * h2_hOverEVsEta_[3]
MonitorElement * p_eResVsR_
MonitorElement * p_hcalTowerSumEtConeDR04VsEtBkg_[3]
MonitorElement * h_tkChi2Large_[2]
MonitorElement * h2_r1VsEt_[3]
MonitorElement * h_trkProv_[2]
MonitorElement * p_sigmaIetaIetaVsEtaBkg_
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
float hcalTowerSumEtConeDR04(int depth=0) const
edm::ParameterSet parameters_
MonitorElement * p_convVtxdRVsEta_
MonitorElement * h_r1_[3][3]
MonitorElement * h_EoverPTracks_[2][3]
MonitorElement * h_phoSigmaEoE_miniAOD_[3][3]
MonitorElement * h_scPhiWidth_[2]
MonitorElement * h2_etaVsRreco_[3]
float sigmaIetaIeta() const
MonitorElement * h2_r1VsEta_[3]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * p_ecalRecHitSumEtConeDR04VsEtaBkg_
float phiNormalization(float &a)
MonitorElement * h2_r2VsEta_[3]
MonitorElement * h_nHadIso_miniAOD_[3]
MonitorElement * h_isoTrkSolidConeDR04_[3][3]
MonitorElement * p_hOverEVsEt_[3]
MonitorElement * h_EtR9Less093_[3][3]
MonitorElement * h_tkChi2SL_[2]
float chargedHadronIso() const
Accessors for Particle Flow Isolation variables.
MonitorElement * h2_eResVsEt_[3][3]
MonitorElement * h_r9VsNofTracks_[2][3]
MonitorElement * h_ecalRecHitSumEtConeDR04_[3][3]
MonitorElement * h_ecalRecHitSumEtConeDR04_miniAOD_[3][3]
float full5x5_sigmaIetaIeta() const
MonitorElement * h_phoEResRegr1_[3][3]
MonitorElement * h2_r9VsEtBkg_
MonitorElement * p_hOverEVsEta_[3]
float getCorrectedEnergyError(P4type type) const
MonitorElement * h2_TkPtPull_[3]
Abs< T >::type abs(const T &t)
float hcalTowerSumEtBcConeDR04(int depth=0) const
MonitorElement * h_SumPtOverPhoPt_Pho_Cleaned_[3]
MonitorElement * h_MatchedSimPhoBadCh_[3]
MonitorElement * h_MatchedSimJetBadCh_[3]
MonitorElement * h_convVtxdEta_
MonitorElement * h_r2_[3][3]
MonitorElement * p_nHitsVsEta_[2]
MonitorElement * h_convVtxdY_barrel_
float ChiSquaredProbability(double chiSquared, double nrDOF)
MonitorElement * p_sigmaIetaIetaVsEtBkg_[3]
MonitorElement * h2_EoverEtrueVsEta_[3]
MonitorElement * h_phoBkgDEta_
MonitorElement * h_phoIso_miniAOD_[3]
MonitorElement * h_simTkEta_
MonitorElement * nHitsVsEta_[2]
const_iterator begin() const
MonitorElement * p_nTrkSolidConeDR04VsEtaBkg_
MonitorElement * h2_sigmaIetaIetaVsEtaBkg_
MonitorElement * h_gamgamMassRegr1_[3][3]
MonitorElement * p_convVtxdXVsX_
MonitorElement * p_dzPVVsR_
double convTrackMinPtCut_
MonitorElement * hBCEnergyOverTrackPout_[3]
MonitorElement * h_PoverETracksBkg_[3]
MonitorElement * h_invMass_[2][3]
edm::EDGetTokenT< TrackingParticleCollection > token_tp_
MonitorElement * h2_EoverEtrueVsEoverP_[3]
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
MonitorElement * h_phoE_[2][3]
MonitorElement * h_simConvVtxYvsX_
MonitorElement * h_hOverE_[3][3]
MonitorElement * h_hOverEBkg_[3]
MonitorElement * h_dRPhoPFcand_NeuHad_unCleaned_[3]
float hadTowOverEm(int depth=0) const
MonitorElement * h_SimPhoMotherEt_[2]
MonitorElement * h2_eResVsR9_[3]
MonitorElement * nHitsVsR_[2]
MonitorElement * h_r1Bkg_[3]
MonitorElement * h_scEta_miniAOD_[2]
Histos for comparison with miniAOD content.
const_iterator end() const
MonitorElement * h_convVtxdX_
MonitorElement * p_isoTrkSolidConeDR04VsEtaBkg_
MonitorElement * h2_DPhiTracksAtVtxVsR_
MonitorElement * h_convVtxYvsXBkg_
MonitorElement * h_TkPtPull_[3]
MonitorElement * h2_EoverPVsEta_[3]
edm::ESHandle< CaloGeometry > theCaloGeom_
MonitorElement * h_nTrkSolidConeDR04Bkg_[3]
Log< level::Info, false > LogInfo
int nTrkSolidConeDR04() const
MonitorElement * p_DCotTracksVsEta_
MonitorElement * h_convPtRes_[2][3]
MonitorElement * h2_nTrkSolidConeDR04VsEtaBkg_
MonitorElement * h_r2Bkg_[3]
MonitorElement * h_MatchedSimPho_[3]
Numerator for efficiencies.
MonitorElement * p_convVtxdRVsR_
static constexpr float d0
float hadronicOverEm(int depth=0) const
MonitorElement * h_convVtxRvsZBkg_[2]
MonitorElement * p_Chi2VsEta_[3]
MonitorElement * h_nHadIso_[3]
MonitorElement * h2_hOverEVsEtBkg_
MonitorElement * p_sigmaEoEVsNVtx_[3][3]
size_type size() const
Size of the RefVector.
MonitorElement * p_eResVsNVtx_[3][3]
MonitorElement * h_SumPtOverPhoPt_Pho_unCleaned_[3]
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEtBkg_[3]
void clear()
Clear the vector.
MonitorElement * h_nSimConv_[2]
MonitorElement * h_nTrkSolidConeDR04_[3][3]
MonitorElement * h_sigmaIetaIetaBkg_[3]
MonitorElement * h2_EoverEtrueVsR_[3]
MonitorElement * p_hcalTowerBcSumEtConeDR04VsEta_[3]
MonitorElement * h_SimConvTwoMTracksAndVtxPGT0_[5]
MonitorElement * h_gamgamMass_[3][3]
std::vector< Photon > PhotonCollection
collectin of Photon objects
MonitorElement * p_PoverPtrueVsEta_[3]
edm::EDGetTokenT< reco::GenParticleCollection > genpartToken_
const_iterator end() const
Termination of iteration.
MonitorElement * h_r9Bkg_[3]
MonitorElement * h_phoERes_[3][3]
MonitorElement * h_isoTrkSolidConeDR04Bkg_[3]
MonitorElement * h2_r9VsEtaBkg_
MonitorElement * h_convVtxYvsX_zoom_[2]
MonitorElement * h_convAlgo_
MonitorElement * h_nCluOutsideMustache_[3]
edm::EDGetTokenT< reco::GenJetCollection > genjets_Token_
MonitorElement * h_hcalTowerSumEtConeDR04_[3][3]
MonitorElement * h2_nTrkSolidConeDR04VsEt_[3]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEtBkg_[3]
MonitorElement * h2_r1VsEtBkg_
MonitorElement * h_DCotTracksBkg_[3]
MonitorElement * h_phoIso_[3]
MonitorElement * p_ecalRecHitSumEtConeDR04VsEta_[3]
MonitorElement * p_r1VsEtaBkg_
MonitorElement * h_PoverETracks_[2][3]
float etaTransformation(float a, float b)
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEt_[3]
MonitorElement * h_phoPixSeedSize_[2]
const Vector & momentum() const
track momentum vector
MonitorElement * h_vtxChi2_[3]
MonitorElement * p_nTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * p_hcalTowerBcSumEtConeDR04VsEt_[3]
MonitorElement * h_pfMva_[3]
edm::EDGetTokenT< reco::PhotonCollection > photonCollectionToken_
MonitorElement * p_ecalRecHitSumEtConeDR04VsEtBkg_[3]
MonitorElement * h_hcalTowerSumEtConeDR04Bkg_[3]
MonitorElement * p_convVtxdZVsZ_
MonitorElement * p_hcalTowerSumEtConeDR04VsEta_[3]
MonitorElement * h_r1_miniAOD_[3][3]
MonitorElement * p_r1VsEtBkg_
MonitorElement * h_phoBkgEt_[3]
double et() const final
transverse energy
MonitorElement * h2_isoTrkSolidConeDR04VsEta_[3]
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
MonitorElement * h_SimPhoMotherEta_[2]
MonitorElement * h_EoverPTracksBkg_[3]
MonitorElement * h_convVtxdR_barrel_
void push_back(const RefToBase< T > &)
MonitorElement * h_VisSimConv_[6]
MonitorElement * h_SimConvTwoMTracks_[5]
MonitorElement * h2_nTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEtaBkg_
MonitorElement * p_eResVsEt_[3][3]
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
MonitorElement * h_convVtxYvsX_
MonitorElement * h_phoBkgE_[3]
MonitorElement * p_hOverEVsEtaBkg_
MonitorElement * h_r2_miniAOD_[3][3]
MonitorElement * h_phoSigmaEoE_[3][3]
MonitorElement * h_RecoConvTwoTracks_[5]
MonitorElement * p_r9VsEta_[3]
MonitorElement * h_DCotTracks_[2][3]
MonitorElement * h_phoERes_miniAOD_[3][3]
MonitorElement * h2_DPhiTracksAtEcalVsR_
std::vector< TrackingParticle > TrackingParticleCollection
MonitorElement * p_eResVsEta_[3]
edm::RefVector< TrackingParticleCollection > theConvTP_
MonitorElement * h_newhOverE_miniAOD_[3][3]
MonitorElement * h_dRPhoPFcand_ChHad_unCleaned_[3]
MonitorElement * h_AllSimConv_[5]
MonitorElement * h_vtxChi2Prob_[3]
MonitorElement * h_scBkgEta_
MonitorElement * p_nHitsVsR_[2]
const_iterator begin() const
Initialize an iterator over the RefVector.
MonitorElement * h_hcalTowerBcSumEtConeDR04_miniAOD_[3][3]
MonitorElement * h_r9_miniAOD_[3][3]
MonitorElement * h2_convVtxdRVsR_
double phi() const final
momentum azimuthal angle
MonitorElement * h_gamgamMassRegr2_[3][3]
MonitorElement * p_newhOverEVsEt_[3]
MonitorElement * h2_r2VsEt_[3]
MonitorElement * h_convVtxdR_
MonitorElement * h_convVtxdZ_barrel_
value_type const * get() const
MonitorElement * h_full5x5_sigmaIetaIeta_miniAOD_[3][3]
MonitorElement * h_convEta_[3]
MonitorElement * p_hcalTowerSumEtConeDR04VsEtaBkg_
float neutralHadronIso() const
MonitorElement * p_ecalRecHitSumEtConeDR04VsEt_[3]
double mcPhi_
global variable for the MC photon
MonitorElement * h_SimConvTwoTracks_[5]
MonitorElement * h2_sigmaIetaIetaVsEt_[3]
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEtaBkg_
MonitorElement * h_scBkgEt_[3]
MonitorElement * h2_DPhiTracksAtEcalVsEta_
edm::EDGetTokenT< edm::View< reco::Track > > conversionOITrackPr_Token_
MonitorElement * h_sigmaIetaIeta_miniAOD_[3][3]
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEta_[3]
MonitorElement * h_SimConvEtaPix_[2]
MonitorElement * h2_eResVsEta_[3]
MonitorElement * p_DPhiTracksAtVtxVsEta_
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
MonitorElement * p_DPhiTracksAtEcalVsEta_
MonitorElement * h_phoDPhi_[2]
MonitorElement * h_convPhiBkg_
edm::EDGetTokenT< edm::SimTrackContainer > famos_simTk_Token_
MonitorElement * h_phoBkgEta_
MonitorElement * h2_r9VsEt_[3]
MonitorElement * h_tkChi2_[2]
MonitorElement * p_dzPVVsEta_
double scalar(const CLHEP::HepGenMatrix &m)
Return the matrix as a scalar. Raise an assertion if the matris is not .
MonitorElement * h_SimConvOneMTracks_[5]
double energy() const final
energy
MonitorElement * h_isoTrkSolidConeDR04_miniAOD_[3][3]
double eta() const final
momentum pseudorapidity