1 #ifndef RECOTOOL_CMMANAGERBASE_CXX 2 #define RECOTOOL_CMMANAGERBASE_CXX 29 TStopwatch localWatch;
44 for(
auto const &c : clusters) {
52 (*
_in_clusters.rbegin()).FillParams(
false,
false,
false,
false,
false,
false);
58 std::cout << Form(
" CMManagerBase Time Report: SetClusters (CPAN computation) = %g [s]",
59 localWatch.RealTime())
60 <<
" ... details below." << std::endl;
64 c.TimeReport(std::cout);
72 TStopwatch localWatch;
78 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: SetClusters (copy) = %g [s]",
79 localWatch.RealTime())
90 TStopwatch localWatch;
96 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: EventBegin = %g [s]",
97 localWatch.RealTime())
100 bool keep_going =
true;
108 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: IterationBegin = %g [s]",
109 localWatch.RealTime())
116 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: IterationProcess = %g [s]",
117 localWatch.RealTime())
123 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: IterationEnd = %g [s]",
124 localWatch.RealTime())
131 std::cout <<
"\033[93m Iterative approach = OFF ... exiting from iteration loop. \033[00m" << std::endl;
141 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: EventEnd = %g [s]",
142 localWatch.RealTime())
149 TStopwatch localWatch;
155 if(!clusters.size())
return;
161 for(
size_t i=0; i<clusters.size(); ++i) {
163 size_t c_index = clusters.size() - i - 1;
165 float priority = clusters.at(c_index).GetNHits();
175 _priority.insert(std::make_pair(priority,c_index));
179 _planes.insert(clusters.at(c_index).Plane());
185 if(
_time_report) std::cout << Form(
" CMManagerBase Time Report: ComputePriority = %g [s]",
186 localWatch.RealTime())
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
void SetMinNHits(size_t nhit)
Class def header for a class CMManagerBase.
void SetVerbose(bool yes=true)