4 #include "TStopwatch.h" 37 const std::vector<std::vector<util::PxHit>>& clusters)
40 TStopwatch localWatch;
51 ::cluster::ClusterParamsAlg tmp_alg;
53 tmp_alg.SetVerbose(
false);
55 for (
auto const&
c : clusters) {
62 (*
_in_clusters.rbegin()).FillParams(gser,
false,
false,
false,
false,
false,
false);
67 std::cout << Form(
" CMManagerBase Time Report: SetClusters (CPAN computation) = %g [s]",
68 localWatch.RealTime())
73 c.TimeReport(std::cout);
80 TStopwatch localWatch;
87 std::cout << Form(
" CMManagerBase Time Report: SetClusters (copy) = %g [s]",
88 localWatch.RealTime())
98 TStopwatch localWatch;
105 std::cout << Form(
" CMManagerBase Time Report: EventBegin = %g [s]", localWatch.RealTime())
108 bool keep_going =
true;
117 std::cout << Form(
" CMManagerBase Time Report: IterationBegin = %g [s]",
118 localWatch.RealTime())
126 std::cout << Form(
" CMManagerBase Time Report: IterationProcess = %g [s]",
127 localWatch.RealTime())
134 std::cout << Form(
" CMManagerBase Time Report: IterationEnd = %g [s]",
135 localWatch.RealTime())
143 <<
"\033[93m Iterative approach = OFF ... exiting from iteration loop. \033[00m" 155 std::cout << Form(
" CMManagerBase Time Report: EventEnd = %g [s]", localWatch.RealTime())
163 TStopwatch localWatch;
169 if (!clusters.size())
return;
175 for (
size_t i = 0; i < clusters.size(); ++i) {
177 size_t c_index = clusters.size() - i - 1;
179 float priority = clusters.at(c_index).GetNHits();
185 _priority.insert(std::make_pair(priority, c_index));
189 _planes.insert(clusters.at(c_index).Plane());
194 std::cout << Form(
" CMManagerBase Time Report: ComputePriority = %g [s]",
195 localWatch.RealTime())
Class def header for a class CPriorityAlgoBase.
Class def header for a class CMManagerBase.
QTextStream & endl(QTextStream &s)