From 324859822bb0ed611ce1e38cbe8291a46307c70c Mon Sep 17 00:00:00 2001 From: Federica Date: Fri, 31 Jan 2020 10:17:13 +0100 Subject: [PATCH] moved/added LogTrace --- SimMuon/MCTruth/plugins/MuonSimClassifier.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SimMuon/MCTruth/plugins/MuonSimClassifier.cc b/SimMuon/MCTruth/plugins/MuonSimClassifier.cc index 6c301e98b5e55..2588e79400e03 100644 --- a/SimMuon/MCTruth/plugins/MuonSimClassifier.cc +++ b/SimMuon/MCTruth/plugins/MuonSimClassifier.cc @@ -321,10 +321,12 @@ void MuonSimClassifier::produce(edm::Event &iEvent, const edm::EventSetup &iSetu if (mMom->numberOfMothers() > 0) { mMom = mMom->motherRef(); } else { - LogTrace("MuonSimClassifier") << "\t\t backtracking mother " << jm << ", pdgId = " << mMom->pdgId() - << ", status= " << mMom->status(); + LogTrace("MuonSimClassifier") << "\t No Mother is found "; break; } + + LogTrace("MuonSimClassifier") << "\t\t backtracking mother " << jm << ", pdgId = " << mMom->pdgId() + << ", status= " << mMom->status(); } genMom = mMom; // redefine genMom simInfo[i].motherPdgId = genMom->pdgId();