43 ATH_MSG_ERROR(
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" );
44 return StatusCode::FAILURE;
48 if (
i==std::string::npos) {
50 return StatusCode::FAILURE;
57 return StatusCode::FAILURE;
65 return StatusCode::FAILURE;
78 m_OffId = (
int)(
id.get_identifier32().get_compact());
86 SmartDataPtr<NTuple::Directory> dir_EMBA(
ntupleSvc(),
"/NTUPLES/PULSE/EMBA");
87 if ( !dir_EMBA ) dir_EMBA =
ntupleSvc()->createDirectory(PULSE,
"EMBA");
88 if ( !dir_EMBA )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
91 SmartDataPtr<NTuple::Directory> dir_EMBA_0(
ntupleSvc(),
"/NTUPLES/PULSE/EMBA/Presampler");
92 if ( !dir_EMBA_0 ) dir_EMBA_0 =
ntupleSvc()->createDirectory(PULSE,
"EMBA/Presampler");
93 if ( !dir_EMBA_0 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
98 SmartDataPtr<NTuple::Directory> dir_EMBA_1(
ntupleSvc(),
"/NTUPLES/PULSE/EMBA/Sampling1");
99 if ( !dir_EMBA_1 ) dir_EMBA_1 =
ntupleSvc()->createDirectory(PULSE,
"EMBA/Sampling1");
100 if ( !dir_EMBA_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
105 SmartDataPtr<NTuple::Directory> dir_EMBA_2(
ntupleSvc(),
"/NTUPLES/PULSE/EMBA/Sampling2");
106 if ( !dir_EMBA_2 ) dir_EMBA_2 =
ntupleSvc()->createDirectory(PULSE,
"EMBA/Sampling2");
107 if ( !dir_EMBA_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
112 SmartDataPtr<NTuple::Directory> dir_EMBA_3(
ntupleSvc(),
"/NTUPLES/PULSE/EMBA/Sampling3");
113 if ( !dir_EMBA_3 ) dir_EMBA_3 =
ntupleSvc()->createDirectory(PULSE,
"EMBA/Sampling3");
114 if ( !dir_EMBA_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
120 SmartDataPtr<NTuple::Directory> dir_EMBC(
ntupleSvc(),
"/NTUPLES/PULSE/EMBC");
121 if ( !dir_EMBC ) dir_EMBC =
ntupleSvc()->createDirectory(PULSE,
"EMBC");
122 if ( !dir_EMBC )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
124 SmartDataPtr<NTuple::Directory> dir_EMBC_0(
ntupleSvc(),
"/NTUPLES/PULSE/EMBC/Presampler");
125 if ( !dir_EMBC_0 ) dir_EMBC_0 =
ntupleSvc()->createDirectory(PULSE,
"EMBC/Presampler");
126 if ( !dir_EMBC_0 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
131 SmartDataPtr<NTuple::Directory> dir_EMBC_1(
ntupleSvc(),
"/NTUPLES/PULSE/EMBC/Sampling1");
132 if ( !dir_EMBC_1 ) dir_EMBC_1 =
ntupleSvc()->createDirectory(PULSE,
"EMBC/Sampling1");
133 if ( !dir_EMBC_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
138 SmartDataPtr<NTuple::Directory> dir_EMBC_2(
ntupleSvc(),
"/NTUPLES/PULSE/EMBC/Sampling2");
139 if ( !dir_EMBC_2 ) dir_EMBC_2 =
ntupleSvc()->createDirectory(PULSE,
"EMBC/Sampling2");
140 if ( !dir_EMBC_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
145 SmartDataPtr<NTuple::Directory> dir_EMBC_3(
ntupleSvc(),
"/NTUPLES/PULSE/EMBC/Sampling3");
146 if ( !dir_EMBC_3 ) dir_EMBC_3 =
ntupleSvc()->createDirectory(PULSE,
"EMBC/Sampling3");
147 if ( !dir_EMBC_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
159 SmartDataPtr<NTuple::Directory> dir_EMECA(
ntupleSvc(),
"/NTUPLES/PULSE/EMECA");
160 if ( !dir_EMECA ) dir_EMECA =
ntupleSvc()->createDirectory(PULSE,
"EMECA");
161 if ( !dir_EMECA )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
164 SmartDataPtr<NTuple::Directory> dir_EMECA_0(
ntupleSvc(),
"/NTUPLES/PULSE/EMECA/Presampler");
165 if ( !dir_EMECA_0 ) dir_EMECA_0 =
ntupleSvc()->createDirectory(PULSE,
"EMECA/Presampler");
166 if ( !dir_EMECA_0 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
174 SmartDataPtr<NTuple::Directory> dir_EMECA_1(
ntupleSvc(),
"/NTUPLES/PULSE/EMECA/Sampling1");
175 if ( !dir_EMECA_1 ) dir_EMECA_1 =
ntupleSvc()->createDirectory(PULSE,
"EMECA/Sampling1");
176 if ( !dir_EMECA_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
181 SmartDataPtr<NTuple::Directory> dir_EMECA_2(
ntupleSvc(),
"/NTUPLES/PULSE/EMECA/Sampling2");
182 if ( !dir_EMECA_2 ) dir_EMECA_2 =
ntupleSvc()->createDirectory(PULSE,
"EMECA/Sampling2");
183 if ( !dir_EMECA_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
188 SmartDataPtr<NTuple::Directory> dir_EMECA_3(
ntupleSvc(),
"/NTUPLES/PULSE/EMECA/Sampling3");
189 if ( !dir_EMECA_3 ) dir_EMECA_3 =
ntupleSvc()->createDirectory(PULSE,
"EMECA/Sampling3");
190 if ( !dir_EMECA_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
196 SmartDataPtr<NTuple::Directory> dir_EMECC(
ntupleSvc(),
"/NTUPLES/PULSE/EMECC");
197 if ( !dir_EMECC ) dir_EMECC =
ntupleSvc()->createDirectory(PULSE,
"EMECC");
198 if ( !dir_EMECC )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
200 SmartDataPtr<NTuple::Directory> dir_EMECC_0(
ntupleSvc(),
"/NTUPLES/PULSE/EMECC/Presampler");
201 if ( !dir_EMECC_0 ) dir_EMECC_0 =
ntupleSvc()->createDirectory(PULSE,
"EMECC/Presampler");
202 if ( !dir_EMECC_0 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
207 SmartDataPtr<NTuple::Directory> dir_EMECC_1(
ntupleSvc(),
"/NTUPLES/PULSE/EMECC/Sampling1");
208 if ( !dir_EMECC_1 ) dir_EMECC_1 =
ntupleSvc()->createDirectory(PULSE,
"EMECC/Sampling1");
209 if ( !dir_EMECC_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
214 SmartDataPtr<NTuple::Directory> dir_EMECC_2(
ntupleSvc(),
"/NTUPLES/PULSE/EMECC/Sampling2");
215 if ( !dir_EMECC_2 ) dir_EMECC_2 =
ntupleSvc()->createDirectory(PULSE,
"EMECC/Sampling2");
216 if ( !dir_EMECC_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
221 SmartDataPtr<NTuple::Directory> dir_EMECC_3(
ntupleSvc(),
"/NTUPLES/PULSE/EMECC/Sampling3");
222 if ( !dir_EMECC_3 ) dir_EMECC_3 =
ntupleSvc()->createDirectory(PULSE,
"EMECC/Sampling3");
223 if ( !dir_EMECC_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
238 SmartDataPtr<NTuple::Directory> dir_HECA(
ntupleSvc(),
"/NTUPLES/PULSE/HECA");
239 if ( !dir_HECA ) dir_HECA =
ntupleSvc()->createDirectory(PULSE,
"HECA");
240 if ( !dir_HECA )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
243 SmartDataPtr<NTuple::Directory> dir_HECA_0(
ntupleSvc(),
"/NTUPLES/PULSE/HECA/Layer1");
244 if ( !dir_HECA_0 ) dir_HECA_0 =
ntupleSvc()->createDirectory(PULSE,
"HECA/Layer1");
245 if ( !dir_HECA_0 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
250 SmartDataPtr<NTuple::Directory> dir_HECA_1(
ntupleSvc(),
"/NTUPLES/PULSE/HECA/Layer2");
251 if ( !dir_HECA_1 ) dir_HECA_1 =
ntupleSvc()->createDirectory(PULSE,
"HECA/Layer2");
252 if ( !dir_HECA_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
257 SmartDataPtr<NTuple::Directory> dir_HECA_2(
ntupleSvc(),
"/NTUPLES/PULSE/HECA/Layer3");
258 if ( !dir_HECA_2 ) dir_HECA_2 =
ntupleSvc()->createDirectory(PULSE,
"HECA/Layer3");
259 if ( !dir_HECA_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
264 SmartDataPtr<NTuple::Directory> dir_HECA_3(
ntupleSvc(),
"/NTUPLES/PULSE/HECA/Layer4");
265 if ( !dir_HECA_3 ) dir_HECA_3 =
ntupleSvc()->createDirectory(PULSE,
"HECA/Layer4");
266 if ( !dir_HECA_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
272 SmartDataPtr<NTuple::Directory> dir_HECC(
ntupleSvc(),
"/NTUPLES/PULSE/HECC");
273 if ( !dir_HECC ) dir_HECC =
ntupleSvc()->createDirectory(PULSE,
"HECC");
274 if ( !dir_HECC )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
276 SmartDataPtr<NTuple::Directory> dir_HECC_0(
ntupleSvc(),
"/NTUPLES/PULSE/HECC/Layer1");
277 if ( !dir_HECC_0 ) dir_HECC_0 =
ntupleSvc()->createDirectory(PULSE,
"HECC/Layer1");
278 if ( !dir_HECC_0 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
283 SmartDataPtr<NTuple::Directory> dir_HECC_1(
ntupleSvc(),
"/NTUPLES/PULSE/HECC/Layer2");
284 if ( !dir_HECC_1 ) dir_HECC_1 =
ntupleSvc()->createDirectory(PULSE,
"HECC/Layer2");
285 if ( !dir_HECC_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
290 SmartDataPtr<NTuple::Directory> dir_HECC_2(
ntupleSvc(),
"/NTUPLES/PULSE/HECC/Layer3");
291 if ( !dir_HECC_2 ) dir_HECC_2 =
ntupleSvc()->createDirectory(PULSE,
"HECC/Layer3");
292 if ( !dir_HECC_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
297 SmartDataPtr<NTuple::Directory> dir_HECC_3(
ntupleSvc(),
"/NTUPLES/PULSE/HECC/Layer4");
298 if ( !dir_HECC_3 ) dir_HECC_3 =
ntupleSvc()->createDirectory(PULSE,
"HECC/Layer4");
299 if ( !dir_HECC_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
309 SmartDataPtr<NTuple::Directory> dir_FCALA(
ntupleSvc(),
"/NTUPLES/PULSE/FCALA");
310 if ( !dir_FCALA ) dir_FCALA =
ntupleSvc()->createDirectory(PULSE,
"FCALA");
311 if ( !dir_FCALA )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
314 SmartDataPtr<NTuple::Directory> dir_FCALA_1(
ntupleSvc(),
"/NTUPLES/PULSE/FCALA/Sampling1");
315 if ( !dir_FCALA_1 ) dir_FCALA_1 =
ntupleSvc()->createDirectory(PULSE,
"FCALA/Sampling1");
316 if ( !dir_FCALA_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
321 SmartDataPtr<NTuple::Directory> dir_FCALA_2(
ntupleSvc(),
"/NTUPLES/PULSE/FCALA/Sampling2");
322 if ( !dir_FCALA_2 ) dir_FCALA_2 =
ntupleSvc()->createDirectory(PULSE,
"FCALA/Sampling2");
323 if ( !dir_FCALA_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
328 SmartDataPtr<NTuple::Directory> dir_FCALA_3(
ntupleSvc(),
"/NTUPLES/PULSE/FCALA/Sampling3");
329 if ( !dir_FCALA_3 ) dir_FCALA_3 =
ntupleSvc()->createDirectory(PULSE,
"FCALA/Sampling3");
330 if ( !dir_FCALA_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
336 SmartDataPtr<NTuple::Directory> dir_FCALC(
ntupleSvc(),
"/NTUPLES/PULSE/FCALC");
337 if ( !dir_FCALC ) dir_FCALC =
ntupleSvc()->createDirectory(PULSE,
"FCALC");
338 if ( !dir_FCALC )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
341 SmartDataPtr<NTuple::Directory> dir_FCALC_1(
ntupleSvc(),
"/NTUPLES/PULSE/FCALC/Sampling1");
342 if ( !dir_FCALC_1 ) dir_FCALC_1 =
ntupleSvc()->createDirectory(PULSE,
"FCALC/Sampling1");
343 if ( !dir_FCALC_1 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
348 SmartDataPtr<NTuple::Directory> dir_FCALC_2(
ntupleSvc(),
"/NTUPLES/PULSE/FCALC/Sampling2");
349 if ( !dir_FCALC_2 ) dir_FCALC_2 =
ntupleSvc()->createDirectory(PULSE,
"FCALC/Sampling2");
350 if ( !dir_FCALC_2 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
355 SmartDataPtr<NTuple::Directory> dir_FCALC_3(
ntupleSvc(),
"/NTUPLES/PULSE/FCALC/Sampling3");
356 if ( !dir_FCALC_3 ) dir_FCALC_3 =
ntupleSvc()->createDirectory(PULSE,
"FCALC/Sampling3");
357 if ( !dir_FCALC_3 )
ATH_MSG_ERROR (
" failed to get ntuple directory" );
365 SmartDataPtr<NTuple::Directory> dir_FCALC_3(
ntupleSvc(),
"/NTUPLES/PULSE/Check");
366 if ( !dir_FCALC_3 ) dir_FCALC_3 =
ntupleSvc()->createDirectory(PULSE,
"Check");
370 m_BCID =
new TH1D(
"BCID",
"BCID",3564, 0, 3564);
371 m_diffBCID =
new TH1D(
"diffBCID",
"BCID",3564, 0, 3564);
372 m_actualInt =
new TH1D(
"ActualInt",
"ActInt", 60, 0, 20);
380 return StatusCode::SUCCESS;