4 #include "TStopwatch.h" 35 const std::vector<std::vector<util::PxHit>>& clusters)
38 TStopwatch localWatch;
53 for (
auto const& c : clusters) {
60 (*
_in_clusters.rbegin()).FillParams(gser,
false,
false,
false,
false,
false,
false);
65 std::cout << Form(
" CMManagerBase Time Report: SetClusters (CPAN computation) = %g [s]",
66 localWatch.RealTime())
67 <<
" ... details below." << std::endl;
71 c.TimeReport(std::cout);
77 TStopwatch localWatch;
84 std::cout << Form(
" CMManagerBase Time Report: SetClusters (copy) = %g [s]",
85 localWatch.RealTime())
94 TStopwatch localWatch;
101 std::cout << Form(
" CMManagerBase Time Report: EventBegin = %g [s]", localWatch.RealTime())
104 bool keep_going =
true;
113 std::cout << Form(
" CMManagerBase Time Report: IterationBegin = %g [s]",
114 localWatch.RealTime())
122 std::cout << Form(
" CMManagerBase Time Report: IterationProcess = %g [s]",
123 localWatch.RealTime())
130 std::cout << Form(
" CMManagerBase Time Report: IterationEnd = %g [s]",
131 localWatch.RealTime())
139 <<
"\033[93m Iterative approach = OFF ... exiting from iteration loop. \033[00m" 151 std::cout << Form(
" CMManagerBase Time Report: EventEnd = %g [s]", localWatch.RealTime())
158 TStopwatch localWatch;
164 if (!clusters.size())
return;
170 for (
size_t i = 0; i < clusters.size(); ++i) {
172 size_t c_index = clusters.size() - i - 1;
174 float priority = clusters.at(c_index).GetNHits();
180 _priority.insert(std::make_pair(priority, c_index));
184 _planes.insert(clusters.at(c_index).Plane());
189 std::cout << Form(
" CMManagerBase Time Report: ComputePriority = %g [s]",
190 localWatch.RealTime())
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Class def header for a class CPriorityAlgoBase.
void SetMinNHits(size_t nhit)
Class def header for a class CMManagerBase.
void SetVerbose(bool yes=true)