Skip to content
Snippets Groups Projects

ATLIDTRKCP-257 Summary table in SiTrackMaker tool for 22.0 MT upgrade

Merged Jay Ajitbhai Sandesara requested to merge jsandesa/athena:summaryTable into master
1 file
+ 29
28
Compare changes
  • Side-by-side
  • Inline
@@ -28,21 +28,21 @@
InDet::SiTrackMaker_xk::SiTrackMaker_xk
(const std::string& t,const std::string& n,const IInterface* p)
: base_class(t, n, p),
m_totalInputSeeds{0,0,0,0},
m_totalUsedSeeds{0.,0.,0.,0.},
m_totalNoTrackPar{0,0,0,0},
m_totalBremSeeds{0,0,0,0},
m_twoClusters{0,0,0,0},
m_wrongRoad{0,0,0,0},
m_wrongInit{0,0,0,0},
m_noTrack{0,0,0,0},
m_notNewTrack{0,0,0,0},
m_bremAttempt{0,0,0,0},
m_outputTracks{0,0,0,0},
m_extraTracks{0,0,0,0},
m_bremTracks{0,0,0,0},
m_seedsWithTrack{0,0,0,0},
m_deSize{0.,0.,0.,0.},
m_totalInputSeeds{ },
m_totalUsedSeeds{ },
m_totalNoTrackPar{ },
m_totalBremSeeds{ },
m_twoClusters{ },
m_wrongRoad{ },
m_wrongInit{ },
m_noTrack{ },
m_notNewTrack{ },
m_bremAttempt{ },
m_outputTracks{ },
m_extraTracks{ },
m_bremTracks{ },
m_seedsWithTrack{ },
m_deSize{ },
m_usedSeedsEta( SiCombinatorialTrackFinderData_xk::kNSeedTypes, std::vector<double>(SiCombinatorialTrackFinderData_xk::kNRapidityRanges, 0.) ),
m_seedsWithTracksEta( SiCombinatorialTrackFinderData_xk::kNSeedTypes, std::vector<double>(SiCombinatorialTrackFinderData_xk::kNRapidityRanges, 0.) )
{
@@ -313,6 +313,18 @@ MsgStream& InDet::SiTrackMaker_xk::dumpStatistics(MsgStream &out) const
out<<"|----------------------|--------------|--------------|--------------|--------------|--------------|--------------|"
<<std::endl;
std::vector<std::pair<int,std::string>> rapidityTablePrint;
rapidityTablePrint.push_back(std::make_pair(0,std::string("| Track/Used 0.0-0.5 | ")));
rapidityTablePrint.push_back(std::make_pair(1,std::string("| 0.5-1.0 | ")));
rapidityTablePrint.push_back(std::make_pair(1,std::string("| 1.0-1.5 | ")));
rapidityTablePrint.push_back(std::make_pair(3,std::string("| 1.5-2.0 | ")));
rapidityTablePrint.push_back(std::make_pair(4,std::string("| 2.0-2.5 | ")));
rapidityTablePrint.push_back(std::make_pair(5,std::string("| 2.5-3.0 | ")));
rapidityTablePrint.push_back(std::make_pair(6,std::string("| 3.0-3.5 | ")));
rapidityTablePrint.push_back(std::make_pair(7,std::string("| 3.5-4.0 | ")));
for(int i=0; i!=SiCombinatorialTrackFinderData_xk::kNRapidityRanges; ++i) {
std::array<double,SiCombinatorialTrackFinderData_xk::kNSeedTypes+1> pu;
@@ -331,23 +343,12 @@ MsgStream& InDet::SiTrackMaker_xk::dumpStatistics(MsgStream &out) const
for(int j = 0; j != SiCombinatorialTrackFinderData_xk::kNSeedTypes; ++j){
pu[SiCombinatorialTrackFinderData_xk::kNSeedTypes+1] += m_seedsWithTracksEta[j][i];
pu[SiCombinatorialTrackFinderData_xk::kNSeedTypes] += m_seedsWithTracksEta[j][i];
}
pu[SiCombinatorialTrackFinderData_xk::kNSeedTypes+1] /= totalUsedSeedsEta;
pu[SiCombinatorialTrackFinderData_xk::kNSeedTypes] /= totalUsedSeedsEta;
}
std::vector<std::pair<int,std::string>> rapidityTablePrint;
rapidityTablePrint.push_back(std::make_pair(0,std::string("| Track/Used 0.0-0.5 | ")));
rapidityTablePrint.push_back(std::make_pair(1,std::string("| 0.5-1.0 | ")));
rapidityTablePrint.push_back(std::make_pair(1,std::string("| 1.0-1.5 | ")));
rapidityTablePrint.push_back(std::make_pair(3,std::string("| 1.5-2.0 | ")));
rapidityTablePrint.push_back(std::make_pair(4,std::string("| 2.0-2.5 | ")));
rapidityTablePrint.push_back(std::make_pair(5,std::string("| 2.5-3.0 | ")));
rapidityTablePrint.push_back(std::make_pair(6,std::string("| 3.0-3.5 | ")));
rapidityTablePrint.push_back(std::make_pair(7,std::string("| 3.5-4.0 | ")));
out<<rapidityTablePrint.at(i).second;
out<<std::setw(12)<<std::setprecision(4)<<pu[0]<<" | "
<<std::setw(12)<<std::setprecision(4)<<pu[1]<<" | "
Loading