CMS 3D CMS Logo

buildtestMPlex.cc
Go to the documentation of this file.
7 
8 #include "oneapi/tbb/parallel_for.h"
9 
10 #include <memory>
11 
12 namespace mkfit {
13 
14  inline bool sortByHitsChi2(const std::pair<Track, TrackState> &cand1, const std::pair<Track, TrackState> &cand2) {
15  if (cand1.first.nFoundHits() == cand2.first.nFoundHits())
16  return cand1.first.chi2() < cand2.first.chi2();
17 
18  return cand1.first.nFoundHits() > cand2.first.nFoundHits();
19  }
20 
21  inline bool sortByPhi(const Hit &hit1, const Hit &hit2) {
22  return std::atan2(hit1.y(), hit1.x()) < std::atan2(hit2.y(), hit2.x());
23  }
24 
25  inline bool sortByEta(const Hit &hit1, const Hit &hit2) { return hit1.eta() < hit2.eta(); }
26 
27  inline bool sortTracksByEta(const Track &track1, const Track &track2) { return track1.momEta() < track2.momEta(); }
28 
29  inline bool sortTracksByPhi(const Track &track1, const Track &track2) { return track1.momPhi() < track2.momPhi(); }
30 
32  const std::vector<std::vector<Track>> &m_track_candidates;
33 
34  sortTracksByPhiStruct(std::vector<std::vector<Track>> *track_candidates) : m_track_candidates(*track_candidates) {}
35 
36  bool operator()(const std::pair<int, int> &track1, const std::pair<int, int> &track2) {
37  return m_track_candidates[track1.first][track1.second].posPhi() <
38  m_track_candidates[track2.first][track2.second].posPhi();
39  }
40  };
41 
42  // within a layer with a "reasonable" geometry, ordering by Z is the same as eta
43  inline bool sortByZ(const Hit &hit1, const Hit &hit2) { return hit1.z() < hit2.z(); }
44 
45  //==============================================================================
46  // NaN and Silly track parameter check
47  //==============================================================================
48 
49  namespace {
50 
51  int check_nan_n_silly(TrackVec &tracks, const char *prefix) {
52  int count = 0;
53  for (auto &t : tracks) {
54  if (t.hasSillyValues(Const::nan_n_silly_print_bad_cands_bkfit, false, prefix)) {
55  ++count;
56  }
57  }
58  return count;
59  }
60 
61  void check_nan_n_silly_candidates(Event &ev) {
62  // MIMI -- nan_n_silly_per_layer_count is in MkBuilder, could be in MkJob.
63  // if (Const::nan_n_silly_check_cands_every_layer)
64  // {
65  // int sc = (int) ev.nan_n_silly_per_layer_count_;
66  // if (sc > 0)
67  // printf("Nan'n'Silly: Number of silly candidates over all layers = %d\n", sc);
68  // }
70  int sc = check_nan_n_silly(ev.candidateTracks_, "Pre-bkfit silly check");
71  if (sc > 0)
72  printf("Nan'n'Silly: Number of silly pre-bkfit candidates = %d\n", sc);
73  }
74  }
75 
76  void check_nan_n_silly_bkfit(Event &ev) {
78  int sc = check_nan_n_silly(ev.fitTracks_, "Post-bkfit silly check");
79  if (sc > 0)
80  printf("Nan'n'Silly: Number of silly post-bkfit candidates = %d\n", sc);
81  }
82  }
83 
84  } // namespace
85 
86  //==============================================================================
87  // runBuildTestPlexDumbCMSSW
88  //==============================================================================
89 
91  const IterationConfig &itconf = Config::ItrInfo[0];
92 
93  MkJob job({Config::TrkInfo, itconf, eoh, eoh.refBeamSpot()});
94 
95  builder.begin_event(&job, &ev, __func__);
96 
99  }
100 
101  builder.end_event();
102  }
103 
104  //==============================================================================
105  // runBuildTestPlexBestHit
106  //==============================================================================
107 
108  double runBuildingTestPlexBestHit(Event &ev, const EventOfHits &eoh, MkBuilder &builder) {
109  const IterationConfig &itconf = Config::ItrInfo[0];
110 
111  const bool validation_on = (Config::sim_val || Config::quality_val);
112 
113  TrackVec seeds1;
114  if (validation_on) {
115  unsigned int algorithms[] = {4}; //only initialStep
116 
117  for (auto const &s : ev.seedTracks_) {
118  //keep seeds form the first iteration for processing
119  if (std::find(algorithms, algorithms + 1, s.algoint()) != algorithms + 1)
120  seeds1.push_back(s);
121  }
122  ev.seedTracks_.swap(seeds1); //necessary for the validation - PrepareSeeds
123  ev.relabel_bad_seedtracks(); //necessary for the validation - PrepareSeeds
124  }
125 
126  IterationMaskIfc mask_ifc;
127 
128  // To disable hit-masks, pass nullptr in place of &mask_ifc to MkJob ctor
129  // and optionally comment out ev.fill_hitmask_bool_vectors() call.
130 
131  ev.fill_hitmask_bool_vectors(itconf.m_track_algorithm, mask_ifc.m_mask_vector);
132 
133  MkJob job({Config::TrkInfo, itconf, eoh, eoh.refBeamSpot(), &mask_ifc});
134 
135  builder.begin_event(&job, &ev, __func__);
136 
137  bool seeds_sorted = false;
138  // CCCC builder.PrepareSeeds();
139 
140  // EventOfCandidates event_of_cands;
141  builder.find_tracks_load_seeds_BH(ev.seedTracks_, seeds_sorted);
142 
143 #ifdef USE_VTUNE_PAUSE
144  __SSC_MARK(0x111); // use this to resume Intel SDE at the same point
145  __itt_resume();
146 #endif
147 
148  double time = dtime();
149 
150  builder.findTracksBestHit();
151 
152  time = dtime() - time;
153 
154 #ifdef USE_VTUNE_PAUSE
155  __itt_pause();
156  __SSC_MARK(0x222); // use this to pause Intel SDE at the same point
157 #endif
158 
159  // Hack, get the tracks out.
160  ev.candidateTracks_ = builder.ref_tracks();
161 
162  // For best hit, the candidateTracks_ vector is the direct input to the backward fit so only need to do clean_duplicates once
164  //Mark tracks as duplicates; if within CMSSW, remove duplicate tracks before backward fit
165  // CCCC if (Config::removeDuplicates) {
166  // CCCC StdSeq::clean_duplicates(ev.candidateTracks_);
167  // CCCC }
168  }
169 
170  job.switch_to_backward();
171 
172  // now do backwards fit... do we want to time this section?
173  if (Config::backwardFit) {
174  builder.backwardFitBH();
175  ev.fitTracks_ = builder.ref_tracks();
176  }
177 
178  if (Config::quality_val) {
179  StdSeq::Quality qval;
180  qval.quality_val(&ev);
181  } else if (Config::sim_val || Config::cmssw_val) {
183  }
184 
185  builder.end_event();
186 
187  // ev.print_tracks(ev.candidateTracks_, true);
188 
189  if (validation_on) {
190  ev.seedTracks_.swap(seeds1);
191  }
192 
193  return time;
194  }
195 
196  //==============================================================================
197  // runBuildTestPlex Combinatorial: Standard TBB
198  //==============================================================================
199 
200  double runBuildingTestPlexStandard(Event &ev, const EventOfHits &eoh, MkBuilder &builder) {
201  const IterationConfig &itconf = Config::ItrInfo[0];
202 
203  const bool validation_on = (Config::sim_val || Config::quality_val);
204 
205  TrackVec seeds1;
206  if (validation_on) {
207  unsigned int algorithms[] = {4}; //only initialStep
208 
209  for (auto const &s : ev.seedTracks_) {
210  //keep seeds form the first iteration for processing
211  if (std::find(algorithms, algorithms + 1, s.algoint()) != algorithms + 1)
212  seeds1.push_back(s);
213  }
214  ev.seedTracks_.swap(seeds1); //necessary for the validation - PrepareSeeds
215  ev.relabel_bad_seedtracks(); //necessary for the validation - PrepareSeeds
216  }
217 
218  IterationMaskIfc mask_ifc;
219 
220  // To disable hit-masks, pass nullptr in place of &mask_ifc to MkJob ctor
221  // and optionally comment out ev.fill_hitmask_bool_vectors() call.
222 
223  ev.fill_hitmask_bool_vectors(itconf.m_track_algorithm, mask_ifc.m_mask_vector);
224 
225  MkJob job({Config::TrkInfo, itconf, eoh, eoh.refBeamSpot(), &mask_ifc});
226 
227  builder.begin_event(&job, &ev, __func__);
228 
229  bool seeds_sorted = false;
230  // CCCC builder.PrepareSeeds();
231  ev.setCurrentSeedTracks(ev.seedTracks_);
232 
233  builder.find_tracks_load_seeds(ev.seedTracks_, seeds_sorted);
234 
235 #ifdef USE_VTUNE_PAUSE
236  __SSC_MARK(0x111); // use this to resume Intel SDE at the same point
237  __itt_resume();
238 #endif
239 
240  double time = dtime();
241 
242  builder.findTracksStandard();
243 
244  time = dtime() - time;
245 
246 #ifdef USE_VTUNE_PAUSE
247  __itt_pause();
248  __SSC_MARK(0x222); // use this to pause Intel SDE at the same point
249 #endif
250 
251  check_nan_n_silly_candidates(ev);
252 
253  // first store candidate tracks
254  ev.candidateTracks_.clear();
255  builder.export_best_comb_cands(ev.candidateTracks_);
256 
257  job.switch_to_backward();
258 
259  // now do backwards fit... do we want to time this section?
260  if (Config::backwardFit) {
261  // Using the TrackVec version until we home in on THE backward fit etc.
262  // builder.backwardFit();
263  builder.select_best_comb_cands();
264  builder.backwardFitBH();
265  ev.fitTracks_ = builder.ref_tracks();
266 
267  check_nan_n_silly_bkfit(ev);
268  }
269 
270  // CCCC StdSeq::handle_duplicates(&ev);
271 
272  if (Config::quality_val) {
273  StdSeq::Quality qval;
274  qval.quality_val(&ev);
275  } else if (Config::sim_val || Config::cmssw_val) {
277  }
278 
279  ev.resetCurrentSeedTracks();
280 
281  builder.end_event();
282 
283  // ev.print_tracks(ev.candidateTracks_, true);
284 
285  if (validation_on) {
286  ev.seedTracks_.swap(seeds1);
287  }
288 
289  return time;
290  }
291 
292  //==============================================================================
293  // runBuildTestPlex Combinatorial: CloneEngine TBB
294  //==============================================================================
295 
297  const IterationConfig &itconf = Config::ItrInfo[0];
298 
299  const bool validation_on = (Config::sim_val || Config::quality_val);
300 
301  TrackVec seeds1;
302  if (validation_on) {
303  unsigned int algorithms[] = {4}; //only initialStep
304 
305  for (auto const &s : ev.seedTracks_) {
306  //keep seeds form the first iteration for processing
307  if (std::find(algorithms, algorithms + 1, s.algoint()) != algorithms + 1)
308  seeds1.push_back(s);
309  }
310  ev.seedTracks_.swap(seeds1); //necessary for the validation - PrepareSeeds
311  ev.relabel_bad_seedtracks(); //necessary for the validation - PrepareSeeds
312  }
313 
314  IterationMaskIfc mask_ifc;
315 
316  // To disable hit-masks, pass nullptr in place of &mask_ifc to MkJob ctor
317  // and optionally comment out ev.fill_hitmask_bool_vectors() call.
318 
319  ev.fill_hitmask_bool_vectors(itconf.m_track_algorithm, mask_ifc.m_mask_vector);
320 
321  MkJob job({Config::TrkInfo, itconf, eoh, eoh.refBeamSpot(), &mask_ifc});
322 
323  builder.begin_event(&job, &ev, __func__);
324 
325  bool seeds_sorted = false;
326  // CCCC builder.PrepareSeeds();
327  ev.setCurrentSeedTracks(ev.seedTracks_);
328 
329  builder.find_tracks_load_seeds(ev.seedTracks_, seeds_sorted);
330 
331 #ifdef USE_VTUNE_PAUSE
332  __SSC_MARK(0x111); // use this to resume Intel SDE at the same point
333  __itt_resume();
334 #endif
335 
336  double time = dtime();
337 
338  builder.findTracksCloneEngine();
339 
340  time = dtime() - time;
341 
342 #ifdef USE_VTUNE_PAUSE
343  __itt_pause();
344  __SSC_MARK(0x222); // use this to pause Intel SDE at the same point
345 #endif
346 
347  check_nan_n_silly_candidates(ev);
348 
349  // first store candidate tracks - needed for BH backward fit and root_validation
350  ev.candidateTracks_.clear();
351  builder.export_best_comb_cands(ev.candidateTracks_);
352 
353  job.switch_to_backward();
354 
355  // now do backwards fit... do we want to time this section?
356  if (Config::backwardFit) {
357  // a) TrackVec version:
358  builder.select_best_comb_cands();
359  builder.backwardFitBH();
360  ev.fitTracks_ = builder.ref_tracks();
361 
362  // b) Version that runs on CombCand / TrackCand
363  // builder.backwardFit();
364  // builder.quality_store_tracks(ev.fitTracks_);
365 
366  check_nan_n_silly_bkfit(ev);
367  }
368 
369  // CCCC StdSeq::handle_duplicates(&ev);
370 
371  // validation section
372  if (Config::quality_val) {
373  StdSeq::Quality qval;
374  qval.quality_val(&ev);
375  } else if (Config::sim_val || Config::cmssw_val) {
377  }
378 
379  ev.resetCurrentSeedTracks();
380 
381  builder.end_event();
382 
383  // ev.print_tracks(ev.candidateTracks_, true);
384 
385  if (validation_on) {
386  ev.seedTracks_.swap(seeds1);
387  }
388 
389  return time;
390  }
391 
392  //==============================================================================
393  // runBtpCe_MultiIter
394  //
395  // Prototype for running multiple iterations, sequentially, using the same builder.
396  // For cmmsw seeds
397  //
398  // There is, in general, a mess in how tracks are processed, marked, or copied out
399  // in various validation scenarios and export flags.
400  //
401  // In particular, MkBuilder::PrepareSeeds does a lot of things to whole / complete
402  // event,seedTracks_ -- probably this would need to be split into common / and
403  // per-iteration part.
404  // - MkBuilder::prep_*** functions also mostly do not belong there (prep_sim is called from
405  // PrepareSeeds() for cmssw seeds).
406  //
407  // At this point we need to think about what should happen to Event before all the iterations and
408  // after all the iterations ... from the Validation perspective.
409  // And if we care about doing too muich work for seeds that will never get processed.
410  //==============================================================================
411 
412  namespace {
413  constexpr unsigned int algorithms[] = {4, 22, 23, 5, 24, 7, 8, 9, 10, 6}; //9 iterations
414  }
415 
416  std::vector<double> runBtpCe_MultiIter(Event &ev, const EventOfHits &eoh, MkBuilder &builder, int n) {
417  std::vector<double> timevec;
418  if (n <= 0)
419  return timevec;
420  timevec.resize(n + 1, 0.0);
421 
422  const bool validation_on = (Config::sim_val || Config::quality_val);
423 
424  TrackVec seeds_used;
425  TrackVec seeds1;
426 
427  if (validation_on) {
428  for (auto const &s : ev.seedTracks_) {
429  //keep seeds form the first n iterations for processing
430  if (std::find(algorithms, algorithms + n, s.algoint()) != algorithms + n)
431  seeds1.push_back(s);
432  }
433  ev.seedTracks_.swap(seeds1); //necessary for the validation - PrepareSeeds
434  ev.relabel_bad_seedtracks(); //necessary for the validation - PrepareSeeds
435  }
436 
437  IterationMaskIfc mask_ifc;
438  TrackVec seeds;
439  TrackVec tmp_tvec;
440 
441  for (int it = 0; it <= n - 1; ++it) {
442  const IterationConfig &itconf = Config::ItrInfo[it];
443 
444  // To disable hit-masks, pass nullptr in place of &mask_ifc to MkJob ctor
445  // and optionally comment out ev.fill_hitmask_bool_vectors() call.
446 
447  ev.fill_hitmask_bool_vectors(itconf.m_track_algorithm, mask_ifc.m_mask_vector);
448 
449  MkJob job({Config::TrkInfo, itconf, eoh, eoh.refBeamSpot(), &mask_ifc});
450 
451  builder.begin_event(&job, &ev, __func__);
452 
453  { // We could partition seeds once, store beg, end for each iteration in a map or vector.
454  seeds.clear();
455  int nc = 0;
456  for (auto &s : ev.seedTracks_) {
457  if (s.algoint() == itconf.m_track_algorithm) {
458  if (itconf.m_requires_seed_hit_sorting) {
459  s.sortHitsByLayer();
460  }
461  seeds.push_back(s);
462  ++nc;
463  } else if (nc > 0)
464  break;
465  }
466  }
467 
468  bool do_seed_clean = bool(itconf.m_seed_cleaner);
469 
470  if (do_seed_clean)
471  itconf.m_seed_cleaner(seeds, itconf, eoh.refBeamSpot());
472 
473  builder.seed_post_cleaning(seeds);
474 
475  // Add protection in case no seeds are found for iteration
476  if (seeds.size() <= 0)
477  continue;
478  ev.setCurrentSeedTracks(seeds);
479 
480  builder.find_tracks_load_seeds(seeds, do_seed_clean);
481 
482  double time = dtime();
483 
484  builder.findTracksCloneEngine();
485 
486  timevec[it] = dtime() - time;
487  timevec[n] += timevec[it];
488 
489  // Print min and max size of hots vectors of CombCands.
490  // builder.find_min_max_hots_size();
491 
492  if (validation_on)
493  seeds_used.insert(seeds_used.end(), seeds.begin(), seeds.end()); //cleaned seeds need to be stored somehow
494 
495  // Pre backward-fit filtering.
496  // Note -- slightly different logic than run_OneIteration as we always do nan filters for
497  // export for validation.
498  filter_candidates_func pre_filter;
499  if (itconf.m_pre_bkfit_filter)
500  pre_filter = [&](const TrackCand &tc, const MkJob &jb) -> bool {
501  return itconf.m_pre_bkfit_filter(tc, jb) && StdSeq::qfilter_nan_n_silly<TrackCand>(tc, jb);
502  };
503  else
504  pre_filter = StdSeq::qfilter_nan_n_silly<TrackCand>;
505  // pre_filter is always at least doing nan_n_silly filter.
506  builder.filter_comb_cands(pre_filter, true);
507 
508  builder.select_best_comb_cands();
509 
510  {
511  builder.export_tracks(tmp_tvec);
512  if (itconf.m_duplicate_cleaner)
513  itconf.m_duplicate_cleaner(builder.ref_tracks_nc(), itconf);
514  ev.candidateTracks_.reserve(ev.candidateTracks_.size() + tmp_tvec.size());
515  for (auto &&t : tmp_tvec)
516  ev.candidateTracks_.emplace_back(std::move(t));
517  tmp_tvec.clear();
518  }
519 
520  job.switch_to_backward();
521 
522  // now do backwards fit... do we want to time this section?
523  if (Config::backwardFit) {
524  // a) TrackVec version:
525  // builder.backwardFitBH();
526 
527  // b) Version that runs on CombCand / TrackCand
528  const bool do_backward_search = Config::backwardSearch && itconf.m_backward_search;
529 
530  // We copy seed-hits into Candidates ... now we have to remove them so backward fit stops
531  // before reaching seeding region. Ideally, we wouldn't add them in the first place but
532  // if we want to export full tracks above we need to hold on to them (alternatively, we could
533  // have a pointer to seed track in CombCandidate and copy them from there).
534  if (do_backward_search)
536 
537  builder.backwardFit();
538 
539  if (do_backward_search) {
540  builder.beginBkwSearch();
542  }
543 
544  // Post backward-fit filtering.
545  // Note -- slightly different logic than run_OneIteration as we export both pre and post
546  // backward-fit tracks.
547  filter_candidates_func post_filter;
548  if (itconf.m_post_bkfit_filter)
549  post_filter = [&](const TrackCand &tc, const MkJob &jb) -> bool {
550  return itconf.m_post_bkfit_filter(tc, jb) && StdSeq::qfilter_nan_n_silly<TrackCand>(tc, jb);
551  };
552  else
553  post_filter = StdSeq::qfilter_nan_n_silly<TrackCand>;
554  // post_filter is always at least doing nan_n_silly filter.
555  builder.filter_comb_cands(post_filter, true);
556 
557  if (do_backward_search)
558  builder.endBkwSearch();
559 
560  builder.select_best_comb_cands(true); // true -> clear m_tracks as they were already filled once above
561 
562  if (itconf.m_duplicate_cleaner)
563  itconf.m_duplicate_cleaner(builder.ref_tracks_nc(), itconf);
564 
565  builder.export_tracks(ev.fitTracks_);
566  }
567  ev.resetCurrentSeedTracks();
568 
569  builder.end_event();
570  }
571 
572  // MIMI - Fake back event pointer for final processing (that should be done elsewhere)
573  MkJob job({Config::TrkInfo, Config::ItrInfo[0], eoh, eoh.refBeamSpot()});
574  builder.begin_event(&job, &ev, __func__);
575 
576  if (validation_on) {
578  //swap for the cleaned seeds
579  ev.seedTracks_.swap(seeds_used);
580  }
581 
582  check_nan_n_silly_candidates(ev);
583 
585  check_nan_n_silly_bkfit(ev);
586 
587  // validation section
588  if (Config::quality_val) {
589  StdSeq::Quality qval;
590  qval.quality_val(&ev);
591  } else if (Config::sim_val || Config::cmssw_val) {
593  }
594 
595  // ev.print_tracks(ev.candidateTracks_, true);
596 
597  // MIMI Unfake.
598  builder.end_event();
599 
600  // In CMSSW runOneIter we now release memory for comb-cands:
601  builder.release_memory();
602 
603  return timevec;
604  }
605 
606 } // end namespace mkfit
float x() const
Definition: Hit.h:162
void export_tracks(TrackVec &out_vec)
Definition: MkBuilder.cc:408
void findTracksBestHit(SteeringParams::IterationType_e iteration_dir=SteeringParams::IT_FwdSearch)
Definition: MkBuilder.cc:466
const BeamSpot & refBeamSpot() const
constexpr bool nan_n_silly_check_cands_post_bkfit
Definition: Config.h:28
constexpr bool nan_n_silly_print_bad_cands_bkfit
Definition: Config.h:29
double runBuildingTestPlexStandard(Event &ev, const EventOfHits &eoh, MkBuilder &builder)
constexpr bool nan_n_silly_check_cands_pre_bkfit
Definition: Config.h:27
void compactifyHitStorageForBestCand(bool remove_seed_hits, int backward_fit_min_hits)
Definition: MkBuilder.h:63
bool sortTracksByPhi(const Track &track1, const Track &track2)
void root_val(Event *event)
void findTracksCloneEngine(SteeringParams::IterationType_e iteration_dir=SteeringParams::IT_FwdSearch)
Definition: MkBuilder.cc:948
void begin_event(MkJob *job, Event *ev, const char *build_type)
Definition: MkBuilder.cc:206
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
bool sortByHitsChi2(const std::pair< Track, TrackState > &cand1, const std::pair< Track, TrackState > &cand2)
clean_seeds_func m_seed_cleaner
void backwardFitBH()
Definition: MkBuilder.cc:1239
void prep_simtracks(Event *event)
float momEta() const
Definition: Track.h:161
void find_tracks_load_seeds_BH(const TrackVec &in_seeds, const bool seeds_sorted)
Definition: MkBuilder.cc:451
void findTracksStandard(SteeringParams::IterationType_e iteration_dir=SteeringParams::IT_FwdSearch)
Definition: MkBuilder.cc:758
std::function< filter_candidates_cf > filter_candidates_func
Definition: FunctionTypes.h:28
const std::vector< std::vector< Track > > & m_track_candidates
void find_tracks_load_seeds(const TrackVec &in_seeds, const bool seeds_sorted)
Definition: MkBuilder.cc:621
sortTracksByPhiStruct(std::vector< std::vector< Track >> *track_candidates)
void release_memory()
Definition: MkBuilder.cc:234
float eta() const
Definition: Hit.h:169
TrackVec & ref_tracks_nc()
Definition: MkBuilder.h:72
TrackerInfo TrkInfo
void seed_post_cleaning(TrackVec &tv)
Definition: MkBuilder.cc:419
void select_best_comb_cands(bool clear_m_tracks=false, bool remove_missing_hits=false)
Definition: MkBuilder.cc:390
void runBuildingTestPlexDumbCMSSW(Event &ev, const EventOfHits &eoh, MkBuilder &builder)
IterationsInfo ItrInfo
int filter_comb_cands(filter_candidates_func filter, bool attempt_all_cands)
Definition: MkBuilder.cc:313
const TrackVec & ref_tracks() const
Definition: MkBuilder.h:71
filter_candidates_func m_post_bkfit_filter
float y() const
Definition: Hit.h:163
bool sortByZ(const Hit &hit1, const Hit &hit2)
std::vector< Track > TrackVec
double runBuildingTestPlexCloneEngine(Event &ev, const EventOfHits &eoh, MkBuilder &builder)
clean_duplicates_func m_duplicate_cleaner
void beginBkwSearch()
Definition: MkBuilder.h:67
double dtime()
std::vector< double > runBtpCe_MultiIter(Event &ev, const EventOfHits &eoh, MkBuilder &builder, int n)
void export_best_comb_cands(TrackVec &out_vec, bool remove_missing_hits=false)
Definition: MkBuilder.cc:396
bool operator()(const std::pair< int, int > &track1, const std::pair< int, int > &track2)
float z() const
Definition: Hit.h:164
void endBkwSearch()
Definition: MkBuilder.h:68
void root_val_dumb_cmssw(Event *event)
void quality_val(Event *event)
bool sortTracksByEta(const Track &track1, const Track &track2)
std::vector< std::vector< bool > > m_mask_vector
bool sortByPhi(const Hit &hit1, const Hit &hit2)
filter_candidates_func m_pre_bkfit_filter
float momPhi() const
Definition: Track.h:160
def move(src, dest)
Definition: eostools.py:511
double runBuildingTestPlexBestHit(Event &ev, const EventOfHits &eoh, MkBuilder &builder)
bool sortByEta(const Hit &hit1, const Hit &hit2)