77 MsgStream log(
msgSvc(), name());
78 log << MSG::INFO <<
"in initialize()" << endreq;
82 if ( nt ) m_tuple = nt;
84 m_tuple=
ntupleSvc()->book(
"FILE102/n1",CLID_ColumnWiseTuple,
"MdcRecEvent");
87 m_tuple->addItem (
"NtrackMC",
g_ntrkMC,0,50);
94 m_tuple->addItem (
"Ntrack",
g_ntrk, 0, 50);
111 m_tuple->addItem (
"Testime",
g_estime);
114 log << MSG::ERROR <<
"Cannot book N-tuple:" << long(m_tuple) << endmsg;
128 g_hitmap[0] =
histoSvc()->book(
"hm0",
"2d hitmap1", 80, -80., 80., 80, -80., 80. );
129 g_hitmap[1] =
histoSvc()->book(
"hm1",
"2d hitmap2", 80, -80., 80., 80, -80., 80. );
130 g_hitmap[2] =
histoSvc()->book(
"hm2",
"2d hitmap3", 80, -80., 80., 80, -80., 80. );
131 g_hitmap[3] =
histoSvc()->book(
"hm3",
"2d hitmap4", 80, -80., 80., 80, -80., 80. );
132 g_hitmap[4] =
histoSvc()->book(
"hm4",
"2d hitmap5", 80, -80., 80., 80, -80., 80. );
133 g_hitmap[5] =
histoSvc()->book(
"hm5",
"2d hitmap6", 80, -80., 80., 80, -80., 80. );
134 g_hitmap[6] =
histoSvc()->book(
"hm6",
"2d hitmap7", 80, -80., 80., 80, -80., 80. );
135 g_hitmap[7] =
histoSvc()->book(
"hm7",
"2d hitmap8", 80, -80., 80., 80, -80., 80. );
136 g_hitmap[8] =
histoSvc()->book(
"hm8",
"2d hitmap9", 80, -80., 80., 80, -80., 80. );
137 g_hitmap[9] =
histoSvc()->book(
"hm9",
"2d hitmap10", 80, -80., 80., 80, -80., 80. );
138 g_hitmap[10] =
histoSvc()->book(
"hm10",
"2d hitmap11", 80, -80., 80., 80, -80., 80. );
168 m_ftFinder->setBunchtime(m_bunchtime_MC);
169 m_ftFinder->setT0cal(m_mdc_tcal);
170 m_ftFinder->setAlgorithmPointer(
this);
174 StatusCode sc = service(
"BesTimerSvc", m_timersvc);
175 if( sc.isFailure() ) {
176 log << MSG::WARNING << name() <<
": Unable to locate BesTimer Service" << endreq;
177 return StatusCode::FAILURE;
180 m_timer[1] = m_timersvc->addItem(
"Execution");
181 m_timer[1]->propName(
"nExecution");
184 return StatusCode::SUCCESS;