155 if(m_eventStat.m_events<=0)
return StatusCode::SUCCESS;
156 const auto & w13 = std::setw(13);
157 const auto & p5 = std::setprecision(5);
158 const auto topNtail=[](
const std::string &
str){
return "|" +
str +
"|";};
159 const std::string lineSeparator(83,
'-');
160 const std::string spaceSeparator(83,
' ');
161 std::stringstream out;
163 out<<topNtail(lineSeparator)<<
"\n";
164 out<<
"| TrackClusterAssValidation statistic for charge truth particles with |\n";
165 out<<topNtail(spaceSeparator)<<
"\n";
166 out<<
"| pT >="<<w13<<p5<<
m_ptcut.value()<<
" MeV"<<
" |\n";
168 out<<
"| pT <="<<w13<<p5<<
m_ptcutmax.value()<<
" MeV"<<
" |\n";
170 out<<
"| |rapidity| <="<<w13<<p5<<
m_rapcut.value()<<
" |\n";
171 out<<
"| max vertex radius <="<<w13<<p5<<
m_rmax.value()<<
" mm"<<
" |\n";
172 out<<
"| min vertex radius >="<<w13<<p5<<
m_rmin.value()<<
" mm"<<
" |\n";
173 out<<
"| particles pdg ="<<std::setw(8)<<
m_pdg.value()<<
" |\n";
175 auto yesNo=[](
const bool predicate){
return predicate ?
"yes" :
"no ";};
176 out<<
"| use Pixels information "<<yesNo(
m_usePIX)<<
" |\n";
177 out<<
"| use SCT information "<<yesNo(
m_useSCT)<<
" |\n";
178 out<<
"| use TRT information "<<yesNo(
m_useTRT)<<
" |\n";
179 out<<
"| take into account outliers "<<yesNo(
m_useOutliers)<<
" |\n";
180 out<<topNtail(spaceSeparator)<<
"\n";
182 enum Regions{Barrel, Transition, Endcap, Forward, NRegions};
183 auto incrementArray=[](
auto & array,
const int idx){
for (
int j{};j!=NRegions;++j) array[idx][j] += array[idx+1][j];};
184 for(
int i=48; i>=0; --i) {
185 m_eventStat.m_particleClusters [i] +=m_eventStat.m_particleClusters [i+1];
186 incrementArray(m_eventStat.m_particleClustersBTE, i);
187 m_eventStat.m_particleSpacePoints [i] +=m_eventStat.m_particleSpacePoints [i+1];
188 incrementArray(m_eventStat.m_particleSpacePointsBTE, i);
190 auto coerceToOne=[](
const double & initialVal)->
double {
return (initialVal<1.) ? 1. : initialVal; };
197 double pa = coerceToOne(m_eventStat.m_particleClusters[0]);
198 std::array<double, 10> pc2ff{};
199 size_t clusterIdx = 2;
200 for (
auto & thisCluster: pc2ff){
201 thisCluster = double(m_eventStat.m_particleClusters[ clusterIdx++ ])/ pa;
204 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Barrel]);
205 std::array<double, 10> pcBarrel2ff{};
206 size_t clusterBarrelIdx = 2;
207 for (
auto & thisClusterB: pcBarrel2ff){
208 thisClusterB = double(m_eventStat.m_particleClustersBTE[ clusterBarrelIdx++ ][Barrel])/ pa;
211 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Transition]);
212 std::array<double, 10> pcTransition2ff{};
213 size_t clusterTransitionIdx = 2;
214 for (
auto & thisClusterT: pcTransition2ff){
215 thisClusterT = double(m_eventStat.m_particleClustersBTE[ clusterTransitionIdx++ ][Transition])/ pa;
218 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Endcap]);
219 std::array<double, 10> pcEndcap2ff{};
220 size_t clusterEndcapIdx = 2;
221 for (
auto & thisClusterE: pcEndcap2ff){
222 thisClusterE = double(m_eventStat.m_particleClustersBTE[ clusterEndcapIdx++ ][Endcap])/ pa;
225 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][3]);
226 std::array<double, 10> pcFwd2ff{};
227 size_t clusterFwdIdx = 2;
228 for (
auto & thisClusterD: pcFwd2ff){
229 thisClusterD = double(m_eventStat.m_particleClustersBTE[ clusterFwdIdx++ ][Forward])/ pa;
235 pa = coerceToOne(m_eventStat.m_particleSpacePoints[0]);
236 std::array<double, 10> sp2ff{};
237 size_t spacepointIdx = 2;
238 for (
auto & thisSpacepoint: sp2ff){
239 thisSpacepoint = double(m_eventStat.m_particleSpacePoints[ spacepointIdx++ ])/ pa;
242 pa = coerceToOne(m_eventStat.m_particleSpacePointsBTE[0][Barrel]);
243 std::array<double, 10> spBarrel2ff{};
244 size_t spacepointBarrelIdx = 2;
245 for (
auto & thisSpacepoint: spBarrel2ff){
246 thisSpacepoint = double(m_eventStat.m_particleSpacePointsBTE[ spacepointBarrelIdx++ ][Barrel])/ pa;
249 pa = coerceToOne(m_eventStat.m_particleSpacePointsBTE[0][Transition]);
250 std::array<double, 10> spTransition2ff{};
251 size_t spacepointTransitionIdx = 2;
252 for (
auto & thisSpacepoint: spTransition2ff){
253 thisSpacepoint = double(m_eventStat.m_particleSpacePointsBTE[ spacepointTransitionIdx++ ][Transition])/ pa;
256 pa = coerceToOne(m_eventStat.m_particleSpacePointsBTE[0][Endcap]);
257 std::array<double, 10> spEndcap2ff{};
258 size_t spacepointEndcapIdx = 2;
259 for (
auto & thisSpacepoint: spEndcap2ff){
260 thisSpacepoint = double(m_eventStat.m_particleSpacePointsBTE[ spacepointEndcapIdx++ ][Endcap])/ pa;
263 pa = coerceToOne(m_eventStat.m_particleSpacePointsBTE[0][Forward]);
264 std::array<double, 10> spFwd2ff{};
265 size_t spacepointFwdIdx = 2;
266 for (
auto & thisSpacepoint: spFwd2ff){
267 thisSpacepoint = double(m_eventStat.m_particleSpacePointsBTE[ spacepointFwdIdx++ ][Forward])/ pa;
269 auto w8=std::setw(8);
270 out<<
"| Probability for such charge particles to have some number silicon |\n";
271 out<<
"| clusters | space points |\n";
272 out<<
"| Total Barrel Transi Endcap Forward | Total Barrel Transi Endcap Forward |\n";
274 for (
size_t idx{0};idx != 10;++idx){
275 out<<
"| >= "<<idx+2<< std::string((idx<8)?
" ":
" ")
277 <<w8<<p5<<pcBarrel2ff[idx]
278 <<w8<<p5<<pcTransition2ff[idx]
279 <<w8<<p5<<pcEndcap2ff[idx]
280 <<w8<<p5<<pcFwd2ff[idx]<<
" | "
283 <<w8<<p5<<spBarrel2ff[idx]
284 <<w8<<p5<<spTransition2ff[idx]
285 <<w8<<p5<<spEndcap2ff[idx]
286 <<w8<<p5<<spFwd2ff[idx]
290 out<<topNtail(spaceSeparator)<<
"\n";
291 out<<
"| Additional cuts for truth particles are |\n";
292 out<<
"| number silicon clusters >="<<w13<<
m_clcut.value()<<
" |\n";
293 out<<
"| number trt clusters >="<<w13<<
m_clcutTRT.value()<<
" |\n";
294 out<<
"| number space points >="<<w13<<
m_spcut.value()<<
" |\n";
296 pa = coerceToOne(m_eventStat.m_particleClusters[0]);
297 out<<
"| Probability find truth particles with this cuts is "<<w8<<p5<<double(m_eventStat.m_events)/pa<<
" |\n";
298 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Barrel]);
299 out<<
"| For barrel region "<<w8<<p5<<double(m_eventStat.m_eventsBTE[Barrel])/pa<<
" |\n";
300 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Transition]);
301 out<<
"| For transition region "<<w8<<p5<<double(m_eventStat.m_eventsBTE[Transition])/pa<<
" |\n";
302 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Endcap]);
303 out<<
"| For endcap region "<<w8<<p5<<double(m_eventStat.m_eventsBTE[Endcap])/pa<<
" |\n";
304 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Forward]);
305 out<<
"| For forward region "<<w8<<p5<<double(m_eventStat.m_eventsBTE[Forward])/pa<<
" |\n";
307 pa = coerceToOne(m_eventStat.m_nclustersNegBP);
308 double ratio = double(m_eventStat.m_nclustersPosBP)/pa;
309 double eratio = std::sqrt(ratio*(1.+ratio)/pa);
310 out<<
"| Ratio barrel pixels clusters for +/- particles ="<<w8<<p5<<ratio<<
" +-"<<w8<<p5<<eratio<<
" |\n";
311 pa = coerceToOne(m_eventStat.m_nclustersNegEP);
312 ratio = double(m_eventStat.m_nclustersPosEP)/pa;
313 eratio = std::sqrt(ratio*(1.+ratio)/pa);
314 out<<
"| Ratio endcap pixels clusters for +/- particles ="<<w8<<p5<<ratio<<
" +-"<<w8<<p5<<eratio<<
" |\n";
315 pa = coerceToOne(m_eventStat.m_nclustersNegBS);
316 ratio = double(m_eventStat.m_nclustersPosBS)/pa;
317 eratio = std::sqrt(ratio*(1.+ratio)/pa);
318 out<<
"| Ratio barrel SCT clusters for +/- particles ="<<w8<<p5<<ratio<<
" +-"<<w8<<p5<<eratio<<
" |\n";
319 pa = coerceToOne(m_eventStat.m_nclustersNegES);
320 ratio = double(m_eventStat.m_nclustersPosES)/pa;
321 eratio = std::sqrt(ratio*(1.+ratio)/pa);
322 out<<
"| Ratio endcap SCT clusters for +/- particles ="<<w8<<p5<<ratio<<
" +-"<<w8<<p5<<eratio<<
" |\n";
323 pa = double(m_eventStat.m_eventsNEG);
if(pa < 1.) pa = 1.;
324 ratio = double(m_eventStat.m_eventsPOS)/pa;
325 eratio = std::sqrt(ratio*(1.+ratio)/pa);
326 out<<
"| Number truth particles and +/- ratio ="<<std::setw(10)<<m_eventStat.m_events<<w8<<p5<<ratio<<
" +-"<<w8<<p5<<eratio<<
" |\n";
328 if(m_eventStat.m_nclustersPTOT!=0) ratio = double(m_eventStat.m_nclustersPTOTt)/double(m_eventStat.m_nclustersPTOT);
330 out<<
"| Number pix clusters, truth clusters and ratio = "
331 <<std::setw(10)<<m_eventStat.m_nclustersPTOT
332 <<std::setw(10)<<m_eventStat.m_nclustersPTOTt
333 <<std::setw(12)<<std::setprecision(5)<<ratio<<
" |\n";
335 if(m_eventStat.m_nclustersSTOT!=0) ratio = double(m_eventStat.m_nclustersSTOTt)/double(m_eventStat.m_nclustersSTOT);
336 out<<
"| Number sct clusters, truth clusters and ratio = "
337 <<std::setw(10)<<m_eventStat.m_nclustersSTOT
338 <<std::setw(10)<<m_eventStat.m_nclustersSTOTt
339 <<std::setw(12)<<std::setprecision(5)<<ratio<<
" |\n";
341 out<<
"|-----------------------------------------------------------------------------------|\n\n";
346 int n = 47-(t->key().
size());
347 std::string s1;
for(
int i=0; i<n; ++i) s1.append(
" "); s1.append(
"|");
350 out<<
"|-----------------------------------------------------------------------------------|\n";
351 out<<
"| Statistic for "<<(t->key())<<s1<<
"\n";
353 double ne = double(m_eventStat.m_events);
if(ne < 1.) ne = 1.;
354 double ef [6];
for(
int i=0; i!=6; ++i) ef [i] =
double(m_trackCollectionStat[nc].m_efficiency [i]) /ne;
355 double ef0[6];
for(
int i=0; i!=6; ++i) ef0[i] =
double(m_trackCollectionStat[nc].m_efficiencyN [i][0])/ne;
356 double ef1[6];
for(
int i=0; i!=6; ++i) ef1[i] =
double(m_trackCollectionStat[nc].m_efficiencyN [i][1])/ne;
357 double ef2[6];
for(
int i=0; i!=6; ++i) ef2[i] =
double(m_trackCollectionStat[nc].m_efficiencyN [i][2])/ne;
360 using EffArray_t = std::array<double, 6>;
362 auto makeEffArray = [](
const auto & threeDimArray,
const size_t secondIdx,
const size_t thirdIdx,
const double denom){
365 auto invDenom = 1./denom;
366 for (
auto & entry: result){
367 entry = threeDimArray[idx++][secondIdx][thirdIdx]*invDenom;
372 const auto & efficiencyArrayInput = m_trackCollectionStat[nc].m_efficiencyBTE;
374 double neBTE = coerceToOne(m_eventStat.m_eventsBTE[Barrel]);
375 const EffArray_t efB0 = makeEffArray(efficiencyArrayInput,0,Barrel,neBTE);
376 const EffArray_t efB1 = makeEffArray(efficiencyArrayInput,1,Barrel,neBTE);
377 const EffArray_t efB2 = makeEffArray(efficiencyArrayInput,2,Barrel,neBTE);
378 const EffArray_t efB3 = makeEffArray(efficiencyArrayInput,3,Barrel,neBTE);
379 const EffArray_t efB4 = makeEffArray(efficiencyArrayInput,4,Barrel,neBTE);
381 neBTE = coerceToOne(m_eventStat.m_eventsBTE[Transition]);
382 const EffArray_t efT0 = makeEffArray(efficiencyArrayInput,0,Transition,neBTE);
383 const EffArray_t efT1 = makeEffArray(efficiencyArrayInput,1,Transition,neBTE);
384 const EffArray_t efT2 = makeEffArray(efficiencyArrayInput,2,Transition,neBTE);
385 const EffArray_t efT3 = makeEffArray(efficiencyArrayInput,3,Transition,neBTE);
386 const EffArray_t efT4 = makeEffArray(efficiencyArrayInput,4,Transition,neBTE);
388 neBTE = coerceToOne(m_eventStat.m_eventsBTE[Endcap]);
389 const EffArray_t efE0 = makeEffArray(efficiencyArrayInput,0,Endcap,neBTE);
390 const EffArray_t efE1 = makeEffArray(efficiencyArrayInput,1,Endcap,neBTE);
391 const EffArray_t efE2 = makeEffArray(efficiencyArrayInput,2,Endcap,neBTE);
392 const EffArray_t efE3 = makeEffArray(efficiencyArrayInput,3,Endcap,neBTE);
393 const EffArray_t efE4 = makeEffArray(efficiencyArrayInput,4,Endcap,neBTE);
395 neBTE = coerceToOne(m_eventStat.m_eventsBTE[Forward]);
396 const EffArray_t efD0 = makeEffArray(efficiencyArrayInput,0,Forward,neBTE);
397 const EffArray_t efD1 = makeEffArray(efficiencyArrayInput,1,Forward,neBTE);
398 const EffArray_t efD2 = makeEffArray(efficiencyArrayInput,2,Forward,neBTE);
399 const EffArray_t efD3 = makeEffArray(efficiencyArrayInput,3,Forward,neBTE);
400 const EffArray_t efD4 = makeEffArray(efficiencyArrayInput,4,Forward,neBTE);
403 double efrec = ef0[0]+ef0[1]+ef0[2]+ef1[0]+ef1[1]+ef2[0];
404 double efrecB = efB0[0]+efB0[1]+efB0[2]+efB1[0]+efB1[1]+efB2[0];
405 double efrecT = efT0[0]+efT0[1]+efT0[2]+efT1[0]+efT1[1]+efT2[0];
406 double efrecE = efE0[0]+efE0[1]+efE0[2]+efE1[0]+efE1[1]+efE2[0];
407 double efrecD = efD0[0]+efD0[1]+efD0[2]+efD1[0]+efD1[1]+efD2[0];
409 ne = coerceToOne(m_eventStat.m_eventsPOS);
410 double efP[6];
for(
int i=0; i!=6; ++i) efP[i] =
double(m_trackCollectionStat[nc].m_efficiencyPOS[i])/ne;
411 ne = coerceToOne(m_eventStat.m_eventsNEG);
412 double efN[6];
for(
int i=0; i!=6; ++i) efN[i] =
double(m_trackCollectionStat[nc].m_efficiencyNEG[i])/ne;
414 out<<
"|-----------------------------------------------------------------------------------|\n";
415 out<<
"| Probability to lose 0 1 2 3 4 >=5 clusters |\n";
416 out<<
"|-----------------------------------------------------------------------------------|\n";
418 auto formattedOutput=[&out](
auto & effArray){
419 for (
size_t i{};i!=6;++i){
420 out<<std::setw(9)<<std::setprecision(4)<<effArray[i];
425 out<<
"| For all particles ";
427 out<<
"| For + particles ";
428 formattedOutput(efP);
429 out<<
"| For - particles ";
430 formattedOutput(efN);
431 out<<
"|-----------------------------------------------------------------------------------|\n";
432 out<<
"| Barrel region |\n";
433 out<<
"| 0 wrong clusters ";
434 formattedOutput(efB0);
435 out<<
"| 1 wrong clusters ";
436 formattedOutput(efB1);
437 out<<
"| 2 wrong clusters ";
438 formattedOutput(efB2);
439 out<<
"| 3 wrong clusters ";
440 formattedOutput(efB3);
441 out<<
"| >=4 wrong clusters ";
442 formattedOutput(efB4);
443 out<<
"|-----------------------------------------------------------------------------------|\n";
444 out<<
"| Transition region |\n";
445 out<<
"| 0 wrong clusters ";
446 formattedOutput(efT0);
447 out<<
"| 1 wrong clusters ";
448 formattedOutput(efT1);
449 out<<
"| 2 wrong clusters ";
450 formattedOutput(efT2);
451 out<<
"| 3 wrong clusters ";
452 formattedOutput(efT3);
453 out<<
"| >=4 wrong clusters ";
454 formattedOutput(efT4);
455 out<<
"|-----------------------------------------------------------------------------------|\n";
456 out<<
"| Endcap region |\n";
457 out<<
"| 0 wrong clusters ";
458 formattedOutput(efE0);
459 out<<
"| 1 wrong clusters ";
460 formattedOutput(efE1);
461 out<<
"| 2 wrong clusters ";
462 formattedOutput(efE2);
463 out<<
"| 3 wrong clusters ";
464 formattedOutput(efE3);
465 out<<
"| >=4 wrong clusters ";
466 formattedOutput(efE4);
467 out<<
"|-----------------------------------------------------------------------------------|\n";
468 out<<
"| Forward region |\n";
469 out<<
"| 0 wrong clusters ";
470 formattedOutput(efD0);
471 out<<
"| 1 wrong clusters ";
472 formattedOutput(efD1);
473 out<<
"| 2 wrong clusters ";
474 formattedOutput(efD2);
475 out<<
"| 3 wrong clusters ";
476 formattedOutput(efD3);
477 out<<
"| >=4 wrong clusters ";
478 formattedOutput(efD4);
480 out<<
"|-----------------------------------------------------------------------------------|\n";
481 pa = coerceToOne(m_eventStat.m_particleClusters[0]);
482 out<<
"| Efficiency reconstruction (number lose+wrong < 3) = "
483 <<std::setw(9)<<std::setprecision(5)<<efrec
485 <<std::setw(9)<<std::setprecision(5)<<efrec*double(m_eventStat.m_events)/pa
488 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Barrel]);
489 out<<
"| For barrel region = "
490 <<std::setw(9)<<std::setprecision(5)<<efrecB
492 <<std::setw(9)<<std::setprecision(5)<<efrecB*double(m_eventStat.m_eventsBTE[Barrel])/pa
495 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Transition]);
496 out<<
"| For transition region = "
497 <<std::setw(9)<<std::setprecision(5)<<efrecT
499 <<std::setw(9)<<std::setprecision(5)<<efrecT*double(m_eventStat.m_eventsBTE[Transition])/pa
502 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Endcap]);
503 out<<
"| For endcap region = "
504 <<std::setw(9)<<std::setprecision(5)<<efrecE
506 <<std::setw(9)<<std::setprecision(5)<<efrecE*double(m_eventStat.m_eventsBTE[Endcap])/pa
509 pa = coerceToOne(m_eventStat.m_particleClustersBTE[0][Forward]);
510 out<<
"| For forward region = "
511 <<std::setw(9)<<std::setprecision(5)<<efrecD
513 <<std::setw(9)<<std::setprecision(5)<<efrecD*double(m_eventStat.m_eventsBTE[Forward])/pa
517 out<<
"|-----------------------------------------------------------------------------------|\n";
518 out<<
"| Reconstructed tracks + - +/-ratio error |\n";
519 out<<
"|-----------------------------------------------------------------------------------|\n";
521 pa = coerceToOne(m_trackCollectionStat[nc].m_ntracksNEGB);
522 ratio = double(m_trackCollectionStat[nc].m_ntracksPOSB)/pa;
523 eratio = std::sqrt(ratio*(1.+ratio)/pa);
526 <<std::setw(10)<<m_trackCollectionStat[nc].m_ntracksPOSB
527 <<std::setw(11)<<m_trackCollectionStat[nc].m_ntracksNEGB
528 <<std::setw(11)<<std::setprecision(5)<<ratio
529 <<std::setw(11)<<std::setprecision(5)<<eratio<<
" |\n";
530 pa = coerceToOne(m_trackCollectionStat[nc].m_ntracksNEGE);
531 ratio = double(m_trackCollectionStat[nc].m_ntracksPOSE)/pa;
532 eratio = std::sqrt(ratio*(1.+ratio)/pa);
535 <<std::setw(10)<<m_trackCollectionStat[nc].m_ntracksPOSE
536 <<std::setw(11)<<m_trackCollectionStat[nc].m_ntracksNEGE
537 <<std::setw(11)<<std::setprecision(5)<<ratio
538 <<std::setw(11)<<std::setprecision(5)<<eratio<<
" |\n";
539 pa = coerceToOne(m_trackCollectionStat[nc].m_ntracksNEGFWD);
540 ratio = double(m_trackCollectionStat[nc].m_ntracksPOSFWD)/pa;
541 eratio = std::sqrt(ratio*(1.+ratio)/pa);
544 <<std::setw(10)<<m_trackCollectionStat[nc].m_ntracksPOSFWD
545 <<std::setw(11)<<m_trackCollectionStat[nc].m_ntracksNEGFWD
546 <<std::setw(11)<<std::setprecision(5)<<ratio
547 <<std::setw(11)<<std::setprecision(5)<<eratio<<
" |\n";
554 for(
int k = 0; k!=50; ++k) {
555 nt+=m_trackCollectionStat[nc].m_total[k];
556 ft+=m_trackCollectionStat[nc].m_fake [k];
557 if(!kf && nt) kf = k;
562 out<<
"|-----------------------------------------------------------------------------------|\n";
563 out<<
"| Fake tracks rate for different number of clusters on track |\n";
564 out<<
"|-----------------------------------------------------------------------------------|\n";
566 for(
int k = kf; k!=kf+6; ++k) {
567 out<<
"| >= "<<std::setw(2)<<k<<
" ";
571 for(
int k = kf; k!=kf+6; ++k) {
572 double eff = 0.;
if(nt>0) eff = double(ft)/double(nt);
573 out<<
"|"<<std::setw(12)<<std::setprecision(5)<<eff<<
" ";
574 nt-=m_trackCollectionStat[nc].m_total[k];
575 ft-=m_trackCollectionStat[nc].m_fake [k];
578 out<<
"|-----------------------------------------------------------------------------------|\n";
583 return StatusCode::SUCCESS;
695 std::unique_ptr<SG::ReadHandle<SiClusterContainer> > pixelcontainer;
696 std::unique_ptr<SG::ReadHandle<SiClusterContainer> > sctcontainer;
697 std::unique_ptr<SG::ReadHandle<TRT_DriftCircleContainer> > trtcontainer;
700 pixelcontainer = std::make_unique<SG::ReadHandle<SiClusterContainer> >(
m_clustersPixelname,ctx);
707 sctcontainer = std::make_unique<SG::ReadHandle<SiClusterContainer> >(
m_clustersSCTname,ctx);
714 trtcontainer = std::make_unique<SG::ReadHandle<TRT_DriftCircleContainer> >(
m_clustersTRTname,ctx);
723 if(pixelcontainer && pixelcontainer->isValid()) {
724 InDet::SiClusterContainer::const_iterator w = (*pixelcontainer)->begin();
725 InDet::SiClusterContainer::const_iterator we = (*pixelcontainer)->end ();
729 InDet::SiClusterCollection::const_iterator c = (*w)->begin();
730 InDet::SiClusterCollection::const_iterator ce = (*w)->end ();
735 ++m_eventStat.m_nclustersPTOT;
736 if(
isTruth(event_data,(*c))) ++m_eventStat.m_nclustersPTOTt;
739 int nk =
kine(event_data,(*c),Kine,999);
740 for(
int i=0; i!=nk; ++i) {
742 event_data.
m_kinecluster.insert(std::make_pair(Kine[i],(*c)));
753 if(sctcontainer && sctcontainer->isValid()) {
754 InDet::SiClusterContainer::const_iterator w = (*sctcontainer)->begin();
755 InDet::SiClusterContainer::const_iterator we = (*sctcontainer)->end ();
759 InDet::SiClusterCollection::const_iterator c = (*w)->begin();
760 InDet::SiClusterCollection::const_iterator ce = (*w)->end ();
765 ++m_eventStat.m_nclustersSTOT;
766 if(
isTruth(event_data,(*c))) ++m_eventStat.m_nclustersSTOTt;
768 int nk =
kine(event_data,(*c),Kine,999);
769 for(
int i=0; i!=nk; ++i) {
777 if(trtcontainer && trtcontainer->isValid()) {
780 InDet::TRT_DriftCircleContainer::const_iterator w = (*trtcontainer)->begin();
781 InDet::TRT_DriftCircleContainer::const_iterator we = (*trtcontainer)->end ();
785 InDet::TRT_DriftCircleCollection::const_iterator c = (*w)->begin();
786 InDet::TRT_DriftCircleCollection::const_iterator ce = (*w)->end ();
791 int nk =
kine(event_data,(*c),Kine,999);
792 for(
int i=0; i!=nk; ++i) event_data.
m_kineclusterTRT.insert(std::make_pair(Kine[i],(*c)));