Skip to content
Snippets Groups Projects
Commit 71ee1b7b authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: mute the info in simulation.

parent ae3518c6
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,13 @@
DECLARE_COMPONENT(GenPrinter)
bool GenPrinter::mutate(MyHepMC::GenEvent& event){
auto msglevel = msgLevel();
// only print when current msglevel is MSG::DEBUG/VERBOSE
if (msglevel != MSG::NIL && msglevel != MSG::VERBOSE && msglevel != MSG::DEBUG) {
return true;
}
std::cout << "print mc info for event "<< event.getID() << ", mc size ="<< event.m_mc_vec.size() << std::endl;
for ( int i =0; i < event.m_mc_vec.size(); i++ ) {
auto p = event.m_mc_vec.at(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment