From 2ade8b56572a8d584107973eade8839f5c698f09 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 14 Jun 2023 14:55:05 +0200 Subject: [PATCH 1/2] Extended_eta V3 : plugins part --- .../RecoEgamma/plugins/ElectronMcSignalValidator.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc b/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc index d72e49718001e..0a608584cac05 100644 --- a/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc +++ b/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc @@ -3433,6 +3433,10 @@ void ElectronMcSignalValidator::analyze(const edm::Event &iEvent, const edm::Eve matchingMotherID = true; } } // end of mother if test + if (mother != nullptr) { + std::cout << "Matching mc-reco : matchingMotherID[" << i << "] : " << matchingMotherIDs_[i] << ", evt ID = " << iEvent.id() << ", mother Id : " << mother->pdgId() << "\n"; + //std::cout << "Matching mc-reco : matchingMotherID[" << i << "] : " << matchingMotherIDs_[i] << ", evt ID = " << iEvent.id() << ", mother : " << mother ; + } } if (matchingMotherID) { if (mcIter->pt() > maxPt_ || std::abs(mcIter->eta()) > maxAbsEta_) { @@ -3659,8 +3663,8 @@ void ElectronMcSignalValidator::analyze(const edm::Event &iEvent, const edm::Eve h2_scl_EoEtrueVsrecOfflineVertices->Fill((*vertexCollectionHandle).size(), bestGsfElectron.ecalEnergy() / mcIter->p()); - h2_scl_EoEtrueVsrecOfflineVertices_Extended->Fill((*vertexCollectionHandle).size(), - bestGsfElectron.ecalEnergy() / mcIter->p()); + //h2_scl_EoEtrueVsrecOfflineVertices_Extended->Fill((*vertexCollectionHandle).size(), + // bestGsfElectron.ecalEnergy() / mcIter->p()); if (isEBflag) h2_scl_EoEtrueVsrecOfflineVertices_barrel->Fill((*vertexCollectionHandle).size(), bestGsfElectron.ecalEnergy() / mcIter->p()); From 2ca50ddc937b893e3dbd071220504268fff828d1 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 19 Jun 2023 16:29:43 +0200 Subject: [PATCH 2/2] Extended_eta V3 : plugins part --- Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc b/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc index 0a608584cac05..d3ddfff156b82 100644 --- a/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc +++ b/Validation/RecoEgamma/plugins/ElectronMcSignalValidator.cc @@ -3433,10 +3433,6 @@ void ElectronMcSignalValidator::analyze(const edm::Event &iEvent, const edm::Eve matchingMotherID = true; } } // end of mother if test - if (mother != nullptr) { - std::cout << "Matching mc-reco : matchingMotherID[" << i << "] : " << matchingMotherIDs_[i] << ", evt ID = " << iEvent.id() << ", mother Id : " << mother->pdgId() << "\n"; - //std::cout << "Matching mc-reco : matchingMotherID[" << i << "] : " << matchingMotherIDs_[i] << ", evt ID = " << iEvent.id() << ", mother : " << mother ; - } } if (matchingMotherID) { if (mcIter->pt() > maxPt_ || std::abs(mcIter->eta()) > maxAbsEta_) { @@ -3663,8 +3659,6 @@ void ElectronMcSignalValidator::analyze(const edm::Event &iEvent, const edm::Eve h2_scl_EoEtrueVsrecOfflineVertices->Fill((*vertexCollectionHandle).size(), bestGsfElectron.ecalEnergy() / mcIter->p()); - //h2_scl_EoEtrueVsrecOfflineVertices_Extended->Fill((*vertexCollectionHandle).size(), - // bestGsfElectron.ecalEnergy() / mcIter->p()); if (isEBflag) h2_scl_EoEtrueVsrecOfflineVertices_barrel->Fill((*vertexCollectionHandle).size(), bestGsfElectron.ecalEnergy() / mcIter->p());