Skip to content

Commit

Permalink
Merge pull request #38106 from Dr15Jones/moreInfoTauGenJetProducer
Browse files Browse the repository at this point in the history
Added # descendents to Error message in TauGenJetProducer
  • Loading branch information
cmsbuild committed May 29, 2022
2 parents 328410a + 83db208 commit fe953e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PhysicsTools/JetMCAlgos/plugins/TauGenJetProducer.cc
Expand Up @@ -84,7 +84,8 @@ void TauGenJetProducer::produce(edm::StreamID, Event& iEvent, const EventSetup&
if (charge != (*iTau)->charge())
edm::LogError("TauGenJetProducer") << " charge of Tau: " << (*iTau)
<< " not equal to charge of sum of charge of all descendents.\n"
<< " Tau's charge: " << (*iTau)->charge() << " sum: " << charge << "\n";
<< " Tau's charge: " << (*iTau)->charge() << " sum: " << charge
<< " # descendents: " << constituents.size() << "\n";

jet.setCharge(charge);
pOutVisTaus->push_back(jet);
Expand Down

0 comments on commit fe953e7

Please sign in to comment.