File indexing completed on 2024-04-06 11:57:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "AnalysisDataFormats/TopObjects/src/printParticle.h"
0017
0018 namespace ttevent {
0019
0020 void printParticle(edm::LogInfo& log, const char* name, const reco::Candidate* cand) {
0021 if (!cand) {
0022 log << std::setw(15) << name << ": not available!\n";
0023 return;
0024 }
0025 log << std::setprecision(3) << setiosflags(std::ios::fixed | std::ios::showpoint);
0026 log << std::setw(15) << name << ": " << std::setw(7) << cand->pt() << "; " << std::setw(7) << cand->eta() << "; "
0027 << std::setw(7) << cand->phi() << "; " << resetiosflags(std::ios::fixed | std::ios::showpoint)
0028 << setiosflags(std::ios::scientific) << std::setw(10) << cand->mass() << "\n";
0029 log << resetiosflags(std::ios::scientific);
0030 }
0031
0032 }