67 MsgStream log(
msgSvc(), name());
68 log<<MSG::INFO<<
"PrintMcInfo::execute()"<<endreq;
77 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
78 int runNo=eventHeader->runNumber();
79 int event=eventHeader->eventNumber();
80 os<<
"run number:"<<
runNo<<endl
81 <<
"event number:"<<
event<<endl<<endl;
84 SmartDataPtr<Event::McParticleCol> mcPartCol(eventSvc(),
"/Event/MC/McParticleCol");
89 log << MSG::ERROR <<
"Could not retrieve McParticelCol" << endreq;
90 return StatusCode::FAILURE;
93 Event::McParticleCol::iterator iter_mc = mcPartCol->begin();
94 for (;iter_mc !=mcPartCol->end();iter_mc++)
96 bool primary = (*iter_mc)->primaryParticle();
97 bool gamma = ((*iter_mc)->particleProperty())==22?
true:
false;
105 os<<endl<<
"\n- - - - - - - - - - - - - - Information in this decay tree : particle level - - - - - - - - - - - - - -- - -- - -\n"<<endl;
111 os<<endl<<
"\n- - - - - - - - - - - - - - Information in this decay tree : hit level - - - - - - - - - - - - - - - - - - - -\n"<<endl;
118 os<<endl<<
"\n- - - - - - - - - - - - - - Digi Information in this EVENT - - - - - - - - - - - - - - - - - - -\n"<<endl;
122 os<<endl<<
"\n******************************** end of this event *********************************\n"<<endl;
126 return StatusCode::SUCCESS;