75 {
76
77 MsgStream log(
msgSvc(), name());
78 log << MSG::INFO << "in initialize()" << endreq;
79
80#ifndef OnlineMode
82 if ( nt ) m_tuple = nt;
83 else {
84 m_tuple=
ntupleSvc()->book(
"FILE102/n1",CLID_ColumnWiseTuple,
"MdcRecEvent");
85 if( m_tuple ) {
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);
112 }
113 else {
114 log << MSG::ERROR <<"Cannot book N-tuple:" << long(m_tuple) << endmsg;
115
116 }
117 }
118
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. );
139
140#endif
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159#ifndef OnlineMode
163#endif
164
165
171
172
173#ifndef OnlineMode
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;
178 }
179
180 m_timer[1] = m_timersvc->
addItem(
"Execution");
182#endif
183
184 return StatusCode::SUCCESS;
185}
IHistogram1D * g_nstereohit
NTuple::Array< float > g_pz
NTuple::Array< float > g_theta
NTuple::Array< float > g_pxMC
NTuple::Array< float > g_pzMC
NTuple::Array< float > g_pyMC
NTuple::Array< float > g_dr
IHistogram2D * g_hitmap[20]
NTuple::Array< float > g_kappa
NTuple::Item< long > g_eventNo
NTuple::Array< float > g_ptMC
NTuple::Item< float > g_estime
NTuple::Array< float > g_dz
NTuple::Array< float > g_tanl
NTuple::Item< long > g_ntrk
NTuple::Item< long > g_ntrkMC
NTuple::Array< float > g_phi0MC
NTuple::Array< float > g_py
NTuple::Array< float > g_px
NTuple::Array< float > g_pt
NTuple::Array< float > g_p
NTuple::Array< float > g_phi0
NTuple::Array< float > g_vx
IHistogram1D * g_naxialhit
NTuple::Array< float > g_vy
NTuple::Array< float > g_theta0MC
NTuple::Array< float > g_vz
NTuple::Array< float > g_phi
IHistogramSvc * histoSvc()
void propName(std::string name)
void init()
initializer(creates geometry)
void setT0cal(double t0cal)
set crude mdc time calibconst (~200 ns) for t0 calculation
void setAlgorithmPointer(Algorithm *)
returns FTFinder pointer
void setBunchtime(double bunchtime)
set bunchtime for MC events
virtual BesTimer * addItem(const std::string &name)=0