66 MsgStream log(
msgSvc(), name());
67 log<<MSG::INFO<<
"PrintMcInfo::execute()"<<endreq;
76 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
77 int runNo=eventHeader->runNumber();
78 int event=eventHeader->eventNumber();
79 os<<
"run number:"<<
runNo<<endl
80 <<
"event number:"<<
event<<endl<<endl;
83 SmartDataPtr<Event::McParticleCol> mcPartCol(eventSvc(),
"/Event/MC/McParticleCol");
88 log << MSG::ERROR <<
"Could not retrieve McParticelCol" << endreq;
89 return StatusCode::FAILURE;
92 Event::McParticleCol::iterator iter_mc = mcPartCol->begin();
93 for (;iter_mc !=mcPartCol->end();iter_mc++)
95 bool primary = (*iter_mc)->primaryParticle();
96 bool gamma = ((*iter_mc)->particleProperty())==22?
true:
false;
104 os<<endl<<
"\n- - - - - - - - - - - - - - Information in this decay tree : particle level - - - - - - - - - - - - - -- - -- - -\n"<<endl;
110 os<<endl<<
"\n- - - - - - - - - - - - - - Information in this decay tree : hit level - - - - - - - - - - - - - - - - - - - -\n"<<endl;
117 os<<endl<<
"\n- - - - - - - - - - - - - - Digi Information in this EVENT - - - - - - - - - - - - - - - - - - -\n"<<endl;
121 os<<endl<<
"\n******************************** end of this event *********************************\n"<<endl;
125 return StatusCode::SUCCESS;