11 ISvcLocator *pSvcLocator)
20 if (m_monitoringGroupNames.size() != m_seedingTools.size()) {
21 ATH_MSG_ERROR(
"Number of monitoring tools not equal to number of seeding tools! Please check!");
22 return StatusCode::FAILURE;
29 ATH_MSG_DEBUG(
" In SeedingAlgorithmAnalysisAlg::fillHistograms()" );
32 const auto& seedingTool = m_seedingTools[
index];
34 std::array<Monitored::Timer<std::chrono::milliseconds>, TimeMonitoringType::AllTypes> timeMonitors = {
45 timeMonitors[TimeMonitoringType::StripSeedInitialisation].start();
46 seedingTool->newEvent(ctx, seedEventData, 0);
47 timeMonitors[TimeMonitoringType::StripSeedInitialisation].stop();
48 auto stripSeedInitialisationTime =
Monitored::Scalar<float>(
"stripSeedInitialisationTime",
static_cast<float>(timeMonitors[TimeMonitoringType::StripSeedInitialisation]));
52 timeMonitors[TimeMonitoringType::StripSeedProduction].start();
53 seedingTool->find3Sp(ctx, seedEventData, {});
54 timeMonitors[TimeMonitoringType::StripSeedProduction].stop();
55 auto stripSeedProductionTime =
Monitored::Scalar<float>(
"stripSeedProductionTime",
static_cast<float>(timeMonitors[TimeMonitoringType::StripSeedProduction]));
59 numberStripSeeds = seedEventData.
i_ITkSeeds.size();
61 numberStripSeeds = seedEventData.
nsazv;
63 timeMonitors[TimeMonitoringType::PixelSeedInitialisation].start();
64 seedingTool->newEvent(ctx, seedEventData, 1);
65 timeMonitors[TimeMonitoringType::PixelSeedInitialisation].stop();
66 auto pixelSeedInitialisationTime =
Monitored::Scalar<float>(
"pixelSeedInitialisationTime",
static_cast<float>(timeMonitors[TimeMonitoringType::PixelSeedInitialisation]));
70 timeMonitors[TimeMonitoringType::PixelSeedProduction].start();
71 seedingTool->find3Sp(ctx, seedEventData, {});
72 timeMonitors[TimeMonitoringType::PixelSeedProduction].stop();
73 auto pixelSeedProductionTime =
Monitored::Scalar<float>(
"pixelSeedProductionTime",
static_cast<float>(timeMonitors[TimeMonitoringType::PixelSeedProduction]));
77 numberPixelSeeds = seedEventData.
i_ITkSeeds.size();
79 numberPixelSeeds = seedEventData.
nsazv;
84 stripSeedInitialisationTime,
85 stripSeedProductionTime,
86 pixelSeedInitialisationTime,
87 pixelSeedProductionTime,
88 numberPixelSpacePoints,
89 numberStripSpacePoints,
94 return StatusCode::SUCCESS;