43{
44 StatusCode sc;
45 MsgStream log(
msgSvc(), name() );
46
47 log << MSG::INFO << "================================================" << endreq;
48 log << MSG::INFO << "In execute()" << endreq;
49 log << MSG::INFO << "++++++++++++++++++++++++++++++++++++++++++++++++" << endreq;
50
51 static int evtnum = 0;
52 static int runnum = 999;
53
54
57 event->setRunNumber(runnum);
58
59 IDataManagerSvc* evtmgr = dynamic_cast<IDataManagerSvc*>(eventSvc());
60 sc = evtmgr->setRoot(EventModel::EventHeader , event);
61 if( sc.isFailure() ) {
62 log << MSG::ERROR << "Unable to register /Event object" << endreq;
63 return sc;
64 }
65
67 log << MSG::INFO <<
" DigiEvent clID :: " << digi->
clID() << endreq;
69 if( sc.isFailure() ) {
70 log << MSG::ERROR << "Unable to register /Event/Digi object" << endreq;
71 return sc;
72 }
73
74 sc = writeMdcDigiData();
75 if( sc.isFailure() ) {
76 log << MSG::ERROR << "Unable to register /Event/Digi/MdcDigiCol object" << endreq;
77 return sc;
78 }
79
80 sc = writeEmcDigiData();
81 if( sc.isFailure() ) {
82 log << MSG::ERROR << "Unable to register /Event/Digi/EmcDigiCol object" << endreq;
83 return sc;
84 }
85
86 sc = writeTofDigiData();
87 if( sc.isFailure() ) {
88 log << MSG::ERROR << "Unable to register /Event/Digi/EmcDigiCol object" << endreq;
89 return sc;
90 }
91
92 sc = writeMucDigiData();
93 if( sc.isFailure() ) {
94 log << MSG::ERROR << "Unable to register /Event/Digi/EmcDigiCol object" << endreq;
95 return sc;
96 }
97
98 m_count++;
99
100 return StatusCode::SUCCESS;
101}
virtual const CLID & clID() const
Retrieve reference to class definition structure.
_EXTERN_ std::string Event