CMS 3D CMS Logo

CkfTrackCandidateMakerBase.cc
Go to the documentation of this file.
7 
12 
14 
19 
25 
27 
29 
32 
34 
35 #include <algorithm>
36 #include <functional>
37 
38 // #define VI_SORTSEED
39 // #define VI_REPRODUCIBLE
40 // #define VI_TBB
41 
42 #include <thread>
43 #ifdef VI_TBB
44 #include "oneapi/tbb/parallel_for.h"
45 #endif
46 
48 
49 using namespace edm;
50 using namespace std;
51 
52 namespace {
53  std::unique_ptr<BaseCkfTrajectoryBuilder> createBaseCkfTrajectoryBuilder(const edm::ParameterSet& pset,
55  return BaseCkfTrajectoryBuilderFactory::get()->create(pset.getParameter<std::string>("ComponentType"), pset, iC);
56  }
57 } // namespace
58 
59 namespace cms {
60  CkfTrackCandidateMakerBase::CkfTrackCandidateMakerBase(edm::ParameterSet const& conf, edm::ConsumesCollector&& iC)
61  : theTrackCandidateOutput(true),
62  theTrajectoryOutput(false),
63  useSplitting(conf.getParameter<bool>("useHitsSplitting")),
64  doSeedingRegionRebuilding(conf.getParameter<bool>("doSeedingRegionRebuilding")),
65  cleanTrajectoryAfterInOut(conf.getParameter<bool>("cleanTrajectoryAfterInOut")),
66  reverseTrajectories(conf.getParameter<bool>("reverseTrajectories")),
67  theMaxNSeeds(conf.getParameter<unsigned int>("maxNSeeds")),
68  theTrajectoryBuilder(
69  createBaseCkfTrajectoryBuilder(conf.getParameter<edm::ParameterSet>("TrajectoryBuilderPSet"), iC)),
70  theTrajectoryCleanerToken(
71  iC.esConsumes(edm::ESInputTag("", conf.getParameter<std::string>("TrajectoryCleaner")))),
72  theTrajectoryCleaner(nullptr),
73  theInitialState(std::make_unique<TransientInitialStateEstimator>(
74  conf.getParameter<ParameterSet>("TransientInitialStateEstimatorParameters"), iC)),
75  theNavigationSchoolToken(
76  iC.esConsumes(edm::ESInputTag("", conf.getParameter<std::string>("NavigationSchool")))),
77  theNavigationSchool(nullptr),
78  thePropagatorToken(iC.esConsumes(edm::ESInputTag("", "AnyDirectionAnalyticalPropagator"))),
79 #ifdef VI_REPRODUCIBLE
80  maxSeedsBeforeCleaning_(0),
81 #else
82  maxSeedsBeforeCleaning_(conf.getParameter<unsigned int>("maxSeedsBeforeCleaning")),
83 #endif
84  theMTELabel(iC.consumes<MeasurementTrackerEvent>(conf.getParameter<edm::InputTag>("MeasurementTrackerEvent"))),
85  clustersToSkipTag_(conf.getParameter<edm::InputTag>("clustersToSkip")),
86  skipClusters_(!clustersToSkipTag_.label().empty()),
87  phase2ClustersToSkipTag_(conf.getParameter<edm::InputTag>("phase2clustersToSkip")),
88  skipPhase2Clusters_(!phase2ClustersToSkipTag_.label().empty()) {
90 
91  if (skipClusters_) {
94  }
95  //FIXME:: just temporary solution for phase2!
96  if (skipPhase2Clusters_) {
99  }
100 #ifndef VI_REPRODUCIBLE
101  std::string cleaner = conf.getParameter<std::string>("RedundantSeedCleaner");
102  if (cleaner == "CachingSeedCleanerBySharedInput") {
103  int numHitsForSeedCleaner = conf.getParameter<int>("numHitsForSeedCleaner");
104  bool onlyPixelHits = conf.getParameter<bool>("onlyPixelHitsForSeedCleaner");
105  theSeedCleaner = std::make_unique<CachingSeedCleanerBySharedInput>(numHitsForSeedCleaner, onlyPixelHits);
106  } else if (cleaner != "none") {
107  throw cms::Exception("RedundantSeedCleaner not found, please use CachingSeedCleanerBySharedInput ro none",
108  cleaner);
109  }
110 #endif
111 
112 #ifdef EDM_ML_DEBUG
114  theTrackerToken = iC.esConsumes();
115  }
116 #endif
117 
118 #ifdef VI_REPRODUCIBLE
119  std::cout << "CkfTrackCandidateMaker in reproducible setting" << std::endl;
120  assert(nullptr == theSeedCleaner);
122 #endif
123  }
124 
125  // Virtual destructor needed.
127 
128  void CkfTrackCandidateMakerBase::beginRunBase(edm::Run const& r, EventSetup const& es) { /* no op*/
129  }
130 
132  //services
134 
136  theTrajectoryBuilder->setNavigationSchool(theNavigationSchool);
137  }
138 
139  // Functions that gets called by framework every event
141  // getting objects from the EventSetup
142  setEventSetup(es);
143 
144  // set the correct navigation
145  // NavigationSetter setter( *theNavigationSchool);
146 
147  // propagator
148  auto const& propagator = es.getData(thePropagatorToken);
149 
150  // method for Debugging
152 
153  // Step A: set Event for the TrajectoryBuilder
155  e.getByToken(theMTELabel, data);
156 
157  std::unique_ptr<MeasurementTrackerEvent> dataWithMasks;
158  if (skipClusters_) {
160  e.getByToken(maskPixels_, pixelMask);
162  e.getByToken(maskStrips_, stripMask);
163  dataWithMasks = std::make_unique<MeasurementTrackerEvent>(*data, *stripMask, *pixelMask);
164  //std::cout << "Trajectory builder " << conf_.getParameter<std::string>("@module_label") << " created with masks " << std::endl;
165  theTrajectoryBuilder->setEvent(e, es, &*dataWithMasks);
166  } else if (skipPhase2Clusters_) {
167  //FIXME:just temporary solution for phase2!
169  e.getByToken(maskPixels_, pixelMask);
171  e.getByToken(maskPhase2OTs_, phase2OTMask);
172  dataWithMasks = std::make_unique<MeasurementTrackerEvent>(*data, *pixelMask, *phase2OTMask);
173  //std::cout << "Trajectory builder " << conf_.getParameter<std::string>("@module_label") << " created with phase2 masks " << std::endl;
174  theTrajectoryBuilder->setEvent(e, es, &*dataWithMasks);
175  } else {
176  //std::cout << "Trajectory builder " << conf_.getParameter<std::string>("@module_label") << " created without masks " << std::endl;
177  theTrajectoryBuilder->setEvent(e, es, &*data);
178  }
179  // TISE ES must be set here due to dependence on theTrajectoryBuilder
180  theInitialState->setEventSetup(
181  es, static_cast<TkTransientTrackingRecHitBuilder const*>(theTrajectoryBuilder->hitBuilder())->cloner());
182 
183  // Step B: Retrieve seeds
184 
186  e.getByToken(theSeedLabel, collseed);
187 
188  // Step C: Create empty output collection
189  auto output = std::make_unique<TrackCandidateCollection>();
190  auto outputT = std::make_unique<std::vector<Trajectory>>();
191  auto outputSeedStopInfos = std::make_unique<std::vector<SeedStopInfo>>(collseed->size());
192 
193  if ((*collseed).size() > theMaxNSeeds) {
194  LogError("TooManySeeds") << "Exceeded maximum numeber of seeds! theMaxNSeeds=" << theMaxNSeeds
195  << " nSeed=" << (*collseed).size();
197  e.put(std::move(output));
198  }
199  if (theTrajectoryOutput) {
200  e.put(std::move(outputT));
201  }
202  e.put(std::move(outputSeedStopInfos));
203  return;
204  }
205 
206  // Step D: Invoke the building algorithm
207  if (!(*collseed).empty()) {
208  unsigned int lastCleanResult = 0;
209  std::vector<Trajectory> rawResult;
210  rawResult.reserve(collseed->size() * 4);
211 
212  if (theSeedCleaner)
213  theSeedCleaner->init(&rawResult);
214 
215  // method for debugging
217 
218  // the mutex
219  std::mutex theMutex;
220  using Lock = std::unique_lock<std::mutex>;
221 
222  // Loop over seeds
223  size_t collseed_size = collseed->size();
224 
225  unsigned int indeces[collseed_size];
226  for (auto i = 0U; i < collseed_size; ++i)
227  indeces[i] = i;
228 
229 #ifdef VI_SORTSEED
230  // std::random_shuffle(indeces,indeces+collseed_size);
231 
232  // here only for reference: does not seems to help
233 
234  auto const& seeds = *collseed;
235 
236  float val[collseed_size];
237  for (auto i = 0U; i < collseed_size; ++i) {
238  val[i] = seeds[i].startingState().pt();
239  };
240  // { val[i] = std::abs((*seeds[i].recHits().first).surface()->eta());}
241 
242  /*
243  unsigned long long val[collseed_size];
244  for (auto i=0U; i< collseed_size; ++i) {
245  if (seeds[i].nHits()<2) { val[i]=0; continue;}
246  auto h = seeds[i].recHits().first;
247  auto const & hit = static_cast<BaseTrackerRecHit const&>(*h);
248  val[i] = hit.firstClusterRef().key();
249  if (++h != seeds[i].recHits().second) {
250  auto const & hit = static_cast<BaseTrackerRecHit const&>(*h);
251  val[i] |= (unsigned long long)(hit.firstClusterRef().key())<<32;
252  }
253  }
254  */
255  std::sort(indeces, indeces + collseed_size, [&](unsigned int i, unsigned int j) { return val[i] < val[j]; });
256 
257  // std::cout << spt(indeces[0]) << ' ' << spt(indeces[collseed_size-1]) << std::endl;
258 #endif
259 
260  std::atomic<unsigned int> ntseed(0);
261  auto theLoop = [&](size_t ii) {
262  auto j = indeces[ii];
263 
264  ntseed++;
265 
266  // to be moved inside a par section (how with tbb??)
267  std::vector<Trajectory> theTmpTrajectories;
268 
269  LogDebug("CkfPattern") << "======== Begin to look for trajectories from seed " << j << " ========\n";
270 
271  {
272  Lock lock(theMutex);
273  // Check if seed hits already used by another track
274  if (theSeedCleaner && !theSeedCleaner->good(&((*collseed)[j]))) {
275  LogDebug("CkfTrackCandidateMakerBase") << " Seed cleaning kills seed " << j;
276  (*outputSeedStopInfos)[j].setStopReason(SeedStopReason::SEED_CLEANING);
277  return; // from the lambda!
278  }
279  }
280 
281  // Build trajectory from seed outwards
282  theTmpTrajectories.clear();
283  unsigned int nCandPerSeed = 0;
284  theTrajectoryBuilder->buildTrajectories((*collseed)[j], theTmpTrajectories, nCandPerSeed, nullptr);
285  {
286  Lock lock(theMutex);
287  (*outputSeedStopInfos)[j].setCandidatesPerSeed(nCandPerSeed);
288  if (theTmpTrajectories.empty()) {
289  (*outputSeedStopInfos)[j].setStopReason(SeedStopReason::NO_TRAJECTORY);
290  return; // from the lambda!
291  }
292  }
293 
294  LogDebug("CkfPattern") << "======== In-out trajectory building found " << theTmpTrajectories.size()
295  << " trajectories from seed " << j << " ========\n"
296  << PrintoutHelper::dumpCandidates(theTmpTrajectories);
297 
299  // Select the best trajectory from this seed (declare others invalid)
300  theTrajectoryCleaner->clean(theTmpTrajectories);
301 
302  LogDebug("CkfPattern") << "======== In-out trajectory cleaning gave the following "
303  << theTmpTrajectories.size() << " valid trajectories from seed " << j << " ========\n"
304  << PrintoutHelper::dumpCandidates(theTmpTrajectories);
305  }
306 
307  // Optionally continue building trajectory back through
308  // seed and if possible further inwards.
309 
311  theTrajectoryBuilder->rebuildTrajectories((*collseed)[j], theTmpTrajectories);
312 
313  LogDebug("CkfPattern") << "======== Out-in trajectory building found " << theTmpTrajectories.size()
314  << " valid/invalid trajectories from seed " << j << " ========\n"
315  << PrintoutHelper::dumpCandidates(theTmpTrajectories);
316  if (theTmpTrajectories.empty()) {
317  Lock lock(theMutex);
318  (*outputSeedStopInfos)[j].setStopReason(SeedStopReason::SEED_REGION_REBUILD);
319  return;
320  }
321  }
322 
323  // Select the best trajectory from this seed (after seed region rebuilding, can be more than one)
324  theTrajectoryCleaner->clean(theTmpTrajectories);
325 
326  LogDebug("CkfPattern") << "======== Trajectory cleaning gave the following " << theTmpTrajectories.size()
327  << " valid trajectories from seed " << j << " ========\n"
328  << PrintoutHelper::dumpCandidates(theTmpTrajectories);
329 
330  {
331  Lock lock(theMutex);
332  for (vector<Trajectory>::iterator it = theTmpTrajectories.begin(); it != theTmpTrajectories.end(); it++) {
333  if (it->isValid()) {
334  it->setSeedRef(collseed->refAt(j));
335  (*outputSeedStopInfos)[j].setStopReason(SeedStopReason::NOT_STOPPED);
336  // Store trajectory
337  rawResult.push_back(std::move(*it));
338  // Tell seed cleaner which hits this trajectory used.
339  //TO BE FIXED: this cut should be configurable via cfi file
340  if (theSeedCleaner && rawResult.back().foundHits() > 3)
341  theSeedCleaner->add(&rawResult.back());
342  //if (theSeedCleaner ) theSeedCleaner->add( & (*it) );
343  }
344  }
345  }
346 
347  theTmpTrajectories.clear();
348 
349  LogDebug("CkfPattern") << "rawResult trajectories found so far = " << rawResult.size();
350 
351  {
352  Lock lock(theMutex);
353  if (maxSeedsBeforeCleaning_ > 0 && rawResult.size() > maxSeedsBeforeCleaning_ + lastCleanResult) {
354  theTrajectoryCleaner->clean(rawResult);
355  rawResult.erase(
356  std::remove_if(rawResult.begin() + lastCleanResult, rawResult.end(), std::not_fn(&Trajectory::isValid)),
357  rawResult.end());
358  lastCleanResult = rawResult.size();
359  }
360  }
361  };
362  // end of loop over seeds
363 
364 #ifdef VI_TBB
365  tbb::parallel_for(0UL, collseed_size, 1UL, theLoop);
366 #else
367 #ifdef VI_OMP
368 #pragma omp parallel for schedule(dynamic, 4)
369 #endif
370  for (size_t j = 0; j < collseed_size; j++) {
371  theLoop(j);
372  }
373 #endif
374  assert(ntseed == collseed_size);
375  if (theSeedCleaner)
376  theSeedCleaner->done();
377 
378  // std::cout << "VICkfPattern " << "rawResult trajectories found = " << rawResult.size() << " in " << ntseed << " seeds " << collseed_size << std::endl;
379 
380 #ifdef VI_REPRODUCIBLE
381  // sort trajectory
382  std::sort(rawResult.begin(), rawResult.end(), [](const Trajectory& a, const Trajectory& b) {
383  return a.seedRef().key() < b.seedRef().key();
384  });
385  //{ return a.chiSquared()*b.ndof() < b.chiSquared()*a.ndof();});
386 #endif
387 
388  // Step E: Clean the results to avoid duplicate tracks
389  // Rejected ones just flagged as invalid.
390  theTrajectoryCleaner->clean(rawResult);
391 
392  LogDebug("CkfPattern") << "======== Final cleaning of entire event found " << rawResult.size()
393  << " valid/invalid trajectories =======" << endl
394  << PrintoutHelper::dumpCandidates(rawResult);
395 
396  LogDebug("CkfPattern") << "removing invalid trajectories.";
397 
398  // Assuming here that theLoop() gives at most one Trajectory per seed
399  for (const auto& traj : rawResult) {
400  if (!traj.isValid()) {
401  const auto seedIndex = traj.seedRef().key();
402  if ((*outputSeedStopInfos)[seedIndex].stopReason() == SeedStopReason::NOT_STOPPED) {
403  (*outputSeedStopInfos)[seedIndex].setStopReason(SeedStopReason::FINAL_CLEAN);
404  }
405  }
406  }
407 
408  vector<Trajectory>& unsmoothedResult(rawResult);
409  unsmoothedResult.erase(
410  std::remove_if(unsmoothedResult.begin(), unsmoothedResult.end(), std::not_fn(&Trajectory::isValid)),
411  unsmoothedResult.end());
412  unsmoothedResult.shrink_to_fit();
413  // If requested, reverse the trajectories creating a new 1-hit seed on the last measurement of the track
414  if (reverseTrajectories) {
415  for (auto it = unsmoothedResult.begin(), ed = unsmoothedResult.end(); it != ed; ++it) {
416  // reverse the trajectory only if it has valid hit on the last measurement (should happen)
417  if (it->lastMeasurement().updatedState().isValid() && it->lastMeasurement().recHit().get() != nullptr &&
418  it->lastMeasurement().recHit()->isValid()) {
419  // I can't use reverse in place, because I want to change the seed
420  // 1) reverse propagation direction
421  PropagationDirection direction = it->direction();
422  if (direction == alongMomentum)
423  direction = oppositeToMomentum;
424  else if (direction == oppositeToMomentum)
425  direction = alongMomentum;
426  // 2) make a seed
427  TrajectoryStateOnSurface const& initState = it->lastMeasurement().updatedState();
428  auto initId = it->lastMeasurement().recHitR().rawId();
431  hits.push_back(it->lastMeasurement().recHit()->hit()->clone());
432  // 3) make a trajectory
433  Trajectory trajectory{std::make_shared<TrajectorySeed>(state, std::move(hits), direction), direction};
434  trajectory.setNLoops(it->nLoops());
435  trajectory.setSeedRef(it->seedRef());
436  trajectory.setStopReason(it->stopReason());
437  // 4) push states in reversed order
438  Trajectory::DataContainer& meas = it->measurements();
439  trajectory.reserve(meas.size());
440  for (auto itmeas = meas.rbegin(), endmeas = meas.rend(); itmeas != endmeas; ++itmeas) {
441  trajectory.push(std::move(*itmeas));
442  }
443  // replace
444  (*it) = std::move(trajectory);
445  } else {
446  edm::LogWarning("CkfPattern_InvalidLastMeasurement")
447  << "Last measurement of the trajectory is invalid, cannot reverse it";
448  }
449  }
450  }
451 
452  int viTotHits = 0;
453 
455  // Step F: Convert to TrackCandidates
456  output->reserve(unsmoothedResult.size());
457  Traj2TrackHits t2t(theTrajectoryBuilder->hitBuilder(), true);
458 
459  for (vector<Trajectory>::const_iterator it = unsmoothedResult.begin(); it != unsmoothedResult.end(); ++it) {
460  LogDebug("CkfPattern") << "copying " << (useSplitting ? "splitted" : "un-splitted")
461  << " hits from trajectory";
463  if (it->direction() != alongMomentum)
464  LogDebug("CkfPattern") << "not along momentum... " << std::endl;
465  t2t(*it, recHits, useSplitting);
466 
467  viTotHits += recHits.size();
468 
469  LogDebug("CkfPattern") << "getting initial state.";
470  Trajectory trialTrajectory = (*it);
471  std::pair<TrajectoryStateOnSurface, const GeomDet*> initState;
472  bool failed = false;
473 
474  do {
475  // Drop last hit if previous backFitter was not successful
476  if (failed) {
477  LogDebug("CkfPattern") << "removing last hit";
478  trialTrajectory.pop();
479  LogDebug("CkfPattern") << "hits remaining " << trialTrajectory.foundHits();
480  }
481 
482  // Get inner state
483  const bool doBackFit = (!doSeedingRegionRebuilding) & (!reverseTrajectories);
484  initState = theInitialState->innerState(trialTrajectory, doBackFit);
485 
486  // Check if that was successful
487  failed = (!initState.first.isValid()) || initState.second == nullptr ||
488  edm::isNotFinite(initState.first.globalPosition().x());
489  } while (failed && trialTrajectory.foundHits() > 3);
490 
491  if (failed) {
492  const auto seedIndex = it->seedRef().key();
493  (*outputSeedStopInfos)[seedIndex].setStopReason(SeedStopReason::SMOOTHING_FAILED);
494  continue;
495  }
496 
498  if (useSplitting && (initState.second != recHits.front().det()) && recHits.front().det()) {
499  LogDebug("CkfPattern") << "propagating to hit front in case of splitting.";
500  TrajectoryStateOnSurface&& propagated =
501  propagator.propagate(initState.first, recHits.front().det()->surface());
502  if (!propagated.isValid())
503  continue;
504  state = trajectoryStateTransform::persistentState(propagated, recHits.front().rawId());
505  } else
506  state =
507  trajectoryStateTransform::persistentState(initState.first, initState.second->geographicalId().rawId());
508  LogDebug("CkfPattern") << "pushing a TrackCandidate.";
509  output->emplace_back(recHits, it->seed(), state, it->seedRef(), it->nLoops(), (uint8_t)it->stopReason());
510  }
511  } //output trackcandidates
512 
513  LogTrace("CkfPattern|TrackingRegressionTest")
514  << "========== CkfTrackCandidateMaker Info =========="
515  << "number of Seed: " << collseed->size() << '\n'
516  << PrintoutHelper::regressionTest(es.getData(theTrackerToken), unsmoothedResult);
517 
518  assert(viTotHits >= 0); // just to use it...
519  // std::cout << "VICkfPattern result " << output->size() << " " << viTotHits << std::endl;
520 
521  if (theTrajectoryOutput) {
522  outputT->swap(unsmoothedResult);
523  }
524 
525  } // end of ((*collseed).size()>0)
526 
527  // method for debugging
529 
530  // Step G: write output to file
532  e.put(std::move(output));
533  }
534  if (theTrajectoryOutput) {
535  e.put(std::move(outputT));
536  }
537  e.put(std::move(outputSeedStopInfos));
538  }
539 
541  desc.add<bool>("cleanTrajectoryAfterInOut", true);
542  desc.add<bool>("doSeedingRegionRebuilding", true);
543  desc.add<bool>("onlyPixelHitsForSeedCleaner", false);
544  desc.add<bool>("reverseTrajectories", false);
545  desc.add<bool>("useHitsSplitting", true);
546  desc.add<edm::InputTag>("MeasurementTrackerEvent", edm::InputTag("MeasurementTrackerEvent"));
547  desc.add<edm::InputTag>("src", edm::InputTag("globalMixedSeeds"));
548 
549  desc.add<edm::InputTag>("clustersToSkip", edm::InputTag(""));
550  desc.add<edm::InputTag>("phase2clustersToSkip", edm::InputTag(""));
551 
554  desc.add<edm::ParameterSetDescription>("TrajectoryBuilderPSet", psdTB);
555 
557  psd1.add<std::string>("propagatorAlongTISE", "PropagatorWithMaterial");
558  psd1.add<std::string>("propagatorOppositeTISE", "PropagatorWithMaterialOpposite");
559  psd1.add<int>("numberMeasurementsForFit", 4);
560  desc.add<edm::ParameterSetDescription>("TransientInitialStateEstimatorParameters", psd1);
561 
562  desc.add<int>("numHitsForSeedCleaner", 4);
563  desc.add<std::string>("NavigationSchool", "SimpleNavigationSchool");
564  desc.add<std::string>("RedundantSeedCleaner", "CachingSeedCleanerBySharedInput");
565  desc.add<std::string>("TrajectoryCleaner", "TrajectoryCleanerBySharedHits");
566  desc.add<unsigned int>("maxNSeeds", 500000);
567  desc.add<unsigned int>("maxSeedsBeforeCleaning", 0);
568  }
569 } // namespace cms
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
static std::string dumpCandidates(collection &candidates)
bool isValid() const
Definition: Trajectory.h:257
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
constexpr bool isNotFinite(T x)
Definition: isFinite.h:9
edm::EDGetTokenT< StripClusterMask > maskStrips_
static std::mutex mutex
Definition: Proxy.cc:8
std::unique_ptr< TransientInitialStateEstimator > theInitialState
virtual void clean(TempTrajectoryContainer &) const
PTrajectoryStateOnDet persistentState(const TrajectoryStateOnSurface &ts, unsigned int detid)
virtual void printHitsDebugger(edm::Event &e)
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
PropagationDirection
Log< level::Error, false > LogError
virtual ~CkfTrackCandidateMakerBase() noexcept(false)
int foundHits() const
Definition: Trajectory.h:206
assert(be >=bs)
#define LogTrace(id)
std::unique_ptr< RedundantSeedCleaner > theSeedCleaner
static std::string regressionTest(const TrackerGeometry &tracker, std::vector< Trajectory > &unsmoothedResult)
char const * label
edm::EDGetTokenT< PixelClusterMask > maskPixels_
std::vector< TrajectoryMeasurement > DataContainer
Definition: Trajectory.h:40
edm::ESGetToken< TrajectoryCleaner, TrajectoryCleaner::Record > theTrajectoryCleanerToken
const TrajectoryCleaner * theTrajectoryCleaner
const NavigationSchool * theNavigationSchool
virtual void produceBase(edm::Event &e, const edm::EventSetup &es)
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder
edm::EDGetTokenT< MeasurementTrackerEvent > theMTELabel
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< Phase2OTClusterMask > maskPhase2OTs_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > theTrackerToken
edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedLabel
ii
Definition: cuy.py:589
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Namespace of DDCMS conversion namespace.
void pop()
Definition: Trajectory.cc:30
void setNLoops(int8_t value)
Definition: Trajectory.h:331
double b
Definition: hdecay.h:120
edm::ESGetToken< Propagator, TrackingComponentsRecord > thePropagatorToken
void setEventSetup(const edm::EventSetup &es)
Initialize EventSetup objects at each event.
virtual void beginRunBase(edm::Run const &, edm::EventSetup const &es)
HLT enums.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
double a
Definition: hdecay.h:121
Definition: output.py:1
#define get
Log< level::Warning, false > LogWarning
def move(src, dest)
Definition: eostools.py:511
Definition: Run.h:45
edm::ESGetToken< NavigationSchool, NavigationSchoolRecord > theNavigationSchoolToken
#define LogDebug(id)