CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CkfTrajectoryBuilder Class Reference

#include <CkfTrajectoryBuilder.h>

Inheritance diagram for CkfTrajectoryBuilder:
BaseCkfTrajectoryBuilder TrajectoryBuilder CkfDebugTrajectoryBuilder MuonCkfTrajectoryBuilder

Public Types

typedef std::vector< TempTrajectoryTempTrajectoryContainer
 
typedef std::vector< TrajectoryTrajectoryContainer
 
- Public Types inherited from BaseCkfTrajectoryBuilder
typedef std::vector< TempTrajectoryTempTrajectoryContainer
 
typedef std::vector< TrajectoryTrajectoryContainer
 
typedef TrajectoryContainer::iterator TrajectoryIterator
 
- Public Types inherited from TrajectoryBuilder
typedef std::vector< TrajectoryTrajectoryContainer
 
typedef TrajectoryContainer::iterator TrajectoryIterator
 

Public Member Functions

TempTrajectory buildTrajectories (const TrajectorySeed &, TrajectoryContainer &ret, unsigned int &nCandPerSeed, const TrajectoryFilter *) const override
 
 CkfTrajectoryBuilder (const edm::ParameterSet &conf, edm::ConsumesCollector &iC)
 
 CkfTrajectoryBuilder (const edm::ParameterSet &conf, std::unique_ptr< TrajectoryFilter > filter)
 
void rebuildTrajectories (TempTrajectory const &startingTraj, const TrajectorySeed &, TrajectoryContainer &result) const override
 
TrajectoryContainer trajectories (const TrajectorySeed &seed) const override
 trajectories building starting from a seed More...
 
void trajectories (const TrajectorySeed &seed, TrajectoryContainer &ret) const override
 trajectories building starting from a seed More...
 
 ~CkfTrajectoryBuilder () override
 
- Public Member Functions inherited from BaseCkfTrajectoryBuilder
 BaseCkfTrajectoryBuilder (const BaseCkfTrajectoryBuilder &)=delete
 
 BaseCkfTrajectoryBuilder (const edm::ParameterSet &conf, std::unique_ptr< TrajectoryFilter > filter, std::unique_ptr< TrajectoryFilter > inOutFilter=nullptr)
 
const TransientTrackingRecHitBuilderhitBuilder () const
 
BaseCkfTrajectoryBuilderoperator= (const BaseCkfTrajectoryBuilder &)=delete
 
virtual void setDebugger (CkfDebugger *dbg) const
 
void setEvent (const edm::Event &event) const override
 
void setEvent (const edm::Event &iEvent, const edm::EventSetup &iSetup, const MeasurementTrackerEvent *data)
 
void setNavigationSchool (NavigationSchool const *nv)
 
void unset () const override
 
 ~BaseCkfTrajectoryBuilder () override
 
- Public Member Functions inherited from TrajectoryBuilder
virtual void rebuildSeedingRegion (const TrajectorySeed &, TrajectoryContainer &result) const
 
virtual ~TrajectoryBuilder ()
 

Protected Member Functions

virtual void findCompatibleMeasurements (const TrajectorySeed &seed, const TempTrajectory &traj, std::vector< TrajectoryMeasurement > &result) const
 
unsigned int limitedCandidates (const std::shared_ptr< const TrajectorySeed > &sharedSeed, TempTrajectoryContainer &candidates, TrajectoryContainer &result) const
 
unsigned int limitedCandidates (const TrajectorySeed &seed, TempTrajectory &startingTraj, TrajectoryContainer &result) const
 
void setEvent_ (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void updateTrajectory (TempTrajectory &traj, TM &&tm) const
 
- Protected Member Functions inherited from BaseCkfTrajectoryBuilder
void addToResult (std::shared_ptr< const TrajectorySeed > const &seed, TempTrajectory &traj, TrajectoryContainer &result, bool inOut=false) const
 
void addToResult (TempTrajectory const &traj, TempTrajectoryContainer &result, bool inOut=false) const
 
virtual bool analyzeMeasurementsDebugger (TempTrajectory &traj, const std::vector< TrajectoryMeasurement > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const
 
virtual bool analyzeMeasurementsDebugger (Trajectory &traj, const std::vector< TrajectoryMeasurement > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const
 
const PropagatorbackwardPropagator (const TrajectorySeed &seed) const
 
TempTrajectory createStartingTrajectory (const TrajectorySeed &seed) const
 
virtual void fillSeedHistoDebugger (std::vector< TrajectoryMeasurement >::iterator begin, std::vector< TrajectoryMeasurement >::iterator end) const
 
StateAndLayers findStateAndLayers (const TrajectorySeed &seed, const TempTrajectory &traj) const
 
const PropagatorforwardPropagator (const TrajectorySeed &seed) const
 
void moveToResult (TempTrajectory &&traj, TempTrajectoryContainer &result, bool inOut=false) const
 
bool qualityFilter (const TempTrajectory &traj, bool inOut=false) const
 
void setData (const MeasurementTrackerEvent *data)
 
bool toBeContinued (TempTrajectory &traj, bool inOut=false) const
 

Protected Attributes

bool theAlwaysUseInvalidHits
 
bool theIntermediateCleaning
 
float theLostHitPenalty
 
int theMaxCand
 set Event for the internal MeasurementTracker data member More...
 
- Protected Attributes inherited from BaseCkfTrajectoryBuilder
const Chi2MeasurementEstimatorBasetheEstimator = nullptr
 
const MeasurementTrackerEventtheMeasurementTracker = nullptr
 
const NavigationSchooltheNavigationSchool = nullptr
 
const PropagatorthePropagatorAlong = nullptr
 
const PropagatorthePropagatorOpposite = nullptr
 
const TransientTrackingRecHitBuildertheTTRHBuilder = nullptr
 
const TrajectoryStateUpdatortheUpdator = nullptr
 

Additional Inherited Members

- Protected Types inherited from BaseCkfTrajectoryBuilder
typedef TrackingComponentsRecord Chi2MeasurementEstimatorRecord
 
typedef FreeTrajectoryState FTS
 
typedef std::pair< TSOS, std::vector< const DetLayer * > > StateAndLayers
 
typedef TrajectoryMeasurement TM
 
typedef TrajectoryStateOnSurface TSOS
 
- Static Protected Member Functions inherited from BaseCkfTrajectoryBuilder
static std::unique_ptr< TrajectoryFiltercreateTrajectoryFilter (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 

Detailed Description

Definition at line 33 of file CkfTrajectoryBuilder.h.

Member Typedef Documentation

◆ TempTrajectoryContainer

Definition at line 36 of file CkfTrajectoryBuilder.h.

◆ TrajectoryContainer

Definition at line 35 of file CkfTrajectoryBuilder.h.

Constructor & Destructor Documentation

◆ CkfTrajectoryBuilder() [1/2]

CkfTrajectoryBuilder::CkfTrajectoryBuilder ( const edm::ParameterSet conf,
edm::ConsumesCollector iC 
)

Definition at line 29 of file CkfTrajectoryBuilder.cc.

◆ CkfTrajectoryBuilder() [2/2]

CkfTrajectoryBuilder::CkfTrajectoryBuilder ( const edm::ParameterSet conf,
std::unique_ptr< TrajectoryFilter filter 
)

Definition at line 34 of file CkfTrajectoryBuilder.cc.

36  theMaxCand = conf.getParameter<int>("maxCand");
37  theLostHitPenalty = conf.getParameter<double>("lostHitPenalty");
38  theIntermediateCleaning = conf.getParameter<bool>("intermediateCleaning");
39  theAlwaysUseInvalidHits = conf.getParameter<bool>("alwaysUseInvalidHits");
40  /*
41  theSharedSeedCheck = conf.getParameter<bool>("SharedSeedCheck");
42  std::stringstream ss;
43  ss<<"CkfTrajectoryBuilder_"<<conf.getParameter<std::string>("ComponentName")<<"_"<<this;
44  theUniqueName = ss.str();
45  LogDebug("CkfPattern")<<"my unique name is: "<<theUniqueName;
46  */
47 }

References edm::ParameterSet::getParameter(), theAlwaysUseInvalidHits, theIntermediateCleaning, theLostHitPenalty, and theMaxCand.

◆ ~CkfTrajectoryBuilder()

CkfTrajectoryBuilder::~CkfTrajectoryBuilder ( )
inlineoverride

Definition at line 41 of file CkfTrajectoryBuilder.h.

41 {}

Member Function Documentation

◆ buildTrajectories()

TempTrajectory CkfTrajectoryBuilder::buildTrajectories ( const TrajectorySeed seed,
TrajectoryContainer ret,
unsigned int &  nCandPerSeed,
const TrajectoryFilter  
) const
overridevirtual

limitedCandidates( startingTraj, regionalCondition, result); FIXME: restore regionalCondition

Reimplemented from BaseCkfTrajectoryBuilder.

Definition at line 143 of file CkfTrajectoryBuilder.cc.

146  {
147  if (theMeasurementTracker == nullptr) {
148  throw cms::Exception("LogicError")
149  << "Asking to create trajectories to an un-initialized CkfTrajectoryBuilder.\nYou have to call clone(const "
150  "MeasurementTrackerEvent *data) and then call trajectories on it instead.\n";
151  }
152 
154 
157  nCandPerSeed = limitedCandidates(seed, startingTraj, result);
158 
159  return startingTraj;
160 
161  /*
162  //and remember what you just did
163  if (theSharedSeedCheck) rememberSeedAndTrajectories(seed,result);
164  */
165 
166  // analyseResult(result);
167 }

References BaseCkfTrajectoryBuilder::createStartingTrajectory(), Exception, limitedCandidates(), mps_fire::result, fileCollector::seed, and BaseCkfTrajectoryBuilder::theMeasurementTracker.

Referenced by trajectories().

◆ findCompatibleMeasurements()

void CkfTrajectoryBuilder::findCompatibleMeasurements ( const TrajectorySeed seed,
const TempTrajectory traj,
std::vector< TrajectoryMeasurement > &  result 
) const
protectedvirtual

Reimplemented in MuonCkfTrajectoryBuilder.

Definition at line 312 of file CkfTrajectoryBuilder.cc.

314  {
315  int invalidHits = 0;
316  //Use findStateAndLayers which handles the hitless seed use case
317  std::pair<TSOS, std::vector<const DetLayer*> >&& stateAndLayers = findStateAndLayers(seed, traj);
318  if (stateAndLayers.second.empty())
319  return;
320 
321  auto layerBegin = stateAndLayers.second.begin();
322  auto layerEnd = stateAndLayers.second.end();
323  LogDebug("CkfPattern") << "looping on " << stateAndLayers.second.size() << " layers.";
324  const Propagator* fwdPropagator = forwardPropagator(seed);
325  for (auto il = layerBegin; il != layerEnd; il++) {
326  LogDebug("CkfPattern") << "looping on a layer in findCompatibleMeasurements.\n last layer: " << traj.lastLayer()
327  << " current layer: " << (*il);
328 
329  TSOS stateToUse = stateAndLayers.first;
330  //Added protection before asking for the lastLayer on the trajectory
331  if UNLIKELY (!traj.empty() && (*il) == traj.lastLayer()) {
332  LogDebug("CkfPattern") << " self propagating in findCompatibleMeasurements.\n from: \n" << stateToUse;
333  //self navigation case
334  // go to a middle point first
336  GlobalPoint center(0, 0, 0);
337  stateToUse = middle.extrapolate(stateToUse, center, *fwdPropagator);
338 
339  if (!stateToUse.isValid())
340  continue;
341  LogDebug("CkfPattern") << "to: " << stateToUse;
342  }
343 
344  LayerMeasurements layerMeasurements(theMeasurementTracker->measurementTracker(), *theMeasurementTracker);
345  std::vector<TrajectoryMeasurement>&& tmp =
346  layerMeasurements.measurements((**il), stateToUse, *fwdPropagator, *theEstimator);
347 
348  if (!tmp.empty()) {
349  if (result.empty())
350  result.swap(tmp);
351  else {
352  // keep one dummy TM at the end, skip the others
353  result.insert(
354  result.end() - invalidHits, std::make_move_iterator(tmp.begin()), std::make_move_iterator(tmp.end()));
355  }
356  invalidHits++;
357  }
358  }
359 
360  // sort the final result, keep dummy measurements at the end
361  if (result.size() > 1) {
362  std::sort(result.begin(), result.end() - invalidHits, TrajMeasLessEstim());
363  }
364 
365  LogDebug("CkfPattern") << "starting from:\n"
366  << "x: " << stateAndLayers.first.globalPosition() << "\n"
367  << "p: " << stateAndLayers.first.globalMomentum() << "\n"
369 
370 #ifdef DEBUG_INVALID
371  bool afterInvalid = false;
372  for (vector<TM>::const_iterator i = result.begin(); i != result.end(); i++) {
373  if (!i->recHit().isValid())
374  afterInvalid = true;
375  if (afterInvalid && i->recHit().isValid()) {
376  edm::LogError("CkfPattern") << "CkfTrajectoryBuilder error: valid hit after invalid!";
377  }
378  }
379 #endif
380 
381  //analyseMeasurements( result, traj);
382 }

References PrintoutHelper::dumpMeasurements(), TempTrajectory::empty(), TransverseImpactPointExtrapolator::extrapolate(), BaseCkfTrajectoryBuilder::findStateAndLayers(), BaseCkfTrajectoryBuilder::forwardPropagator(), mps_fire::i, TrajectoryStateOnSurface::isValid(), TempTrajectory::lastLayer(), LogDebug, mps_fire::result, fileCollector::seed, BaseCkfTrajectoryBuilder::theEstimator, BaseCkfTrajectoryBuilder::theMeasurementTracker, createJobs::tmp, and UNLIKELY.

Referenced by limitedCandidates().

◆ limitedCandidates() [1/2]

unsigned int CkfTrajectoryBuilder::limitedCandidates ( const std::shared_ptr< const TrajectorySeed > &  sharedSeed,
TempTrajectoryContainer candidates,
TrajectoryContainer result 
) const
protected

Definition at line 178 of file CkfTrajectoryBuilder.cc.

180  {
181  unsigned int nIter = 1;
182  unsigned int nCands = 0; // ignore startingTraj
183  unsigned int prevNewCandSize = 0;
184  TempTrajectoryContainer newCand; // = TrajectoryContainer();
185  newCand.reserve(2 * theMaxCand);
186 
187  auto trajCandLess = [&](TempTrajectory const& a, TempTrajectory const& b) {
188  return (a.chiSquared() + a.lostHits() * theLostHitPenalty) < (b.chiSquared() + b.lostHits() * theLostHitPenalty);
189  };
190 
191  while (!candidates.empty()) {
192  newCand.clear();
193  for (auto traj = candidates.begin(); traj != candidates.end(); traj++) {
194  std::vector<TM> meas;
195  findCompatibleMeasurements(*sharedSeed, *traj, meas);
196 
197  // --- method for debugging
200  return nCands;
201  // ---
202 
203  if (meas.empty()) {
204  addToResult(sharedSeed, *traj, result);
205  } else {
206  std::vector<TM>::const_iterator last;
208  last = meas.end();
209  else {
210  if (meas.front().recHit()->isValid()) {
211  last = find_if(meas.begin(), meas.end(), [](auto const& meas) { return !meas.recHit()->isValid(); });
212  } else
213  last = meas.end();
214  }
215 
216  for (auto itm = meas.begin(); itm != last; itm++) {
217  TempTrajectory newTraj = *traj;
218  updateTrajectory(newTraj, std::move(*itm));
219 
220  if (toBeContinued(newTraj)) {
221  newCand.push_back(std::move(newTraj));
222  std::push_heap(newCand.begin(), newCand.end(), trajCandLess);
223  } else {
224  addToResult(sharedSeed, newTraj, result);
226  }
227  }
228  }
229 
230  // account only new candidates, i.e.
231  // - 1 candidate -> 1 candidate, don't increase count
232  // - 1 candidate -> 2 candidates, increase count by 1
233  nCands += newCand.size() - prevNewCandSize;
234  prevNewCandSize = newCand.size();
235 
236  /*
237  auto trajVal = [&](TempTrajectory const & a) {
238  return a.chiSquared() + a.lostHits()*theLostHitPenalty;
239  };
240 
241  // safe (stable?) logig: always sort, kill exceeding only if worse than last to keep
242  // if ((int)newCand.size() > theMaxCand) std::cout << "TrajVal " << theMaxCand << ' ' << newCand.size() << ' ' << trajVal(newCand.front());
243  int toCut = int(newCand.size()) - int(theMaxCand);
244  if (toCut>0) {
245  // move largest "toCut" to the end
246  for (int i=0; i<toCut; ++i)
247  std::pop_heap(newCand.begin(),newCand.end()-i,trajCandLess);
248  auto fval = trajVal(newCand.front());
249  // remove till equal to highest to keep
250  for (int i=0; i<toCut; ++i) {
251  if (fval==trajVal(newCand.back())) break;
252  newCand.pop_back();
253  }
254  //assert((int)newCand.size() >= theMaxCand);
255  //std::cout << "; " << newCand.size() << ' ' << trajVal(newCand.front()) << " " << trajVal(newCand.back());
256 
257  // std::make_heap(newCand.begin(),newCand.end(),trajCandLess);
258  // push_heap again the one left
259  for (auto iter = newCand.begin()+theMaxCand+1; iter<=newCand.end(); ++iter )
260  std::push_heap(newCand.begin(),iter,trajCandLess);
261 
262  // std::cout << "; " << newCand.size() << ' ' << trajVal(newCand.front()) << " " << trajVal(newCand.back()) << std::endl;
263  }
264 
265  */
266 
267  // intermedeate login: always sort, kill all exceeding
268  while ((int)newCand.size() > theMaxCand) {
269  std::pop_heap(newCand.begin(), newCand.end(), trajCandLess);
270  // if ((int)newCand.size() == theMaxCand+1) std::cout << " " << trajVal(newCand.front()) << " " << trajVal(newCand.back()) << std::endl;
271  newCand.pop_back();
272  }
273 
274  /*
275  // original logic: sort only if > theMaxCand, kill all exceeding
276  if ((int)newCand.size() > theMaxCand) {
277  std::sort( newCand.begin(), newCand.end(), TrajCandLess<TempTrajectory>(theLostHitPenalty));
278  // std::partial_sort( newCand.begin(), newCand.begin()+theMaxCand, newCand.end(), TrajCandLess<TempTrajectory>(theLostHitPenalty));
279  std::cout << "TrajVal " << theMaxCand << ' ' << newCand.size() << ' '
280  << trajVal(newCand.back()) << ' ' << trajVal(newCand[theMaxCand-1]) << ' ' << trajVal(newCand[theMaxCand]) << std::endl;
281  newCand.resize(theMaxCand);
282  }
283  */
284 
285  } // end loop on candidates
286 
287  std::sort_heap(newCand.begin(), newCand.end(), trajCandLess);
290 
291  candidates.swap(newCand);
292 
293  LogDebug("CkfPattern") << result.size() << " candidates after " << nIter++ << " CKF iteration: \n"
294  << PrintoutHelper::dumpCandidates(result) << "\n " << candidates.size()
295  << " running candidates are: \n"
297  }
298  return nCands;
299 }

References a, BaseCkfTrajectoryBuilder::addToResult(), BaseCkfTrajectoryBuilder::analyzeMeasurementsDebugger(), b, HLT_FULL_cff::candidates, IntermediateTrajectoryCleaner::clean(), PrintoutHelper::dumpCandidates(), findCompatibleMeasurements(), BaseCkfTrajectoryBuilder::forwardPropagator(), dqmdumpme::last, LogDebug, eostools::move(), mps_fire::result, theAlwaysUseInvalidHits, BaseCkfTrajectoryBuilder::theEstimator, theIntermediateCleaning, theLostHitPenalty, theMaxCand, BaseCkfTrajectoryBuilder::theMeasurementTracker, BaseCkfTrajectoryBuilder::theTTRHBuilder, BaseCkfTrajectoryBuilder::toBeContinued(), and updateTrajectory().

◆ limitedCandidates() [2/2]

unsigned int CkfTrajectoryBuilder::limitedCandidates ( const TrajectorySeed seed,
TempTrajectory startingTraj,
TrajectoryContainer result 
) const
protected

Definition at line 169 of file CkfTrajectoryBuilder.cc.

171  {
173  candidates.push_back(startingTraj);
174  std::shared_ptr<const TrajectorySeed> sharedSeed(new TrajectorySeed(seed));
175  return limitedCandidates(sharedSeed, candidates, result);
176 }

References HLT_FULL_cff::candidates, mps_fire::result, and fileCollector::seed.

Referenced by buildTrajectories().

◆ rebuildTrajectories()

void CkfTrajectoryBuilder::rebuildTrajectories ( TempTrajectory const &  startingTraj,
const TrajectorySeed ,
TrajectoryContainer result 
) const
inlineoverridevirtual

Reimplemented from BaseCkfTrajectoryBuilder.

Definition at line 54 of file CkfTrajectoryBuilder.h.

56  {}

◆ setEvent_()

void CkfTrajectoryBuilder::setEvent_ ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Implements BaseCkfTrajectoryBuilder.

Definition at line 56 of file CkfTrajectoryBuilder.cc.

56 {}

Referenced by MuonCkfTrajectoryBuilder::setEvent_().

◆ trajectories() [1/2]

CkfTrajectoryBuilder::TrajectoryContainer CkfTrajectoryBuilder::trajectories ( const TrajectorySeed seed) const
overridevirtual

trajectories building starting from a seed

Implements TrajectoryBuilder.

Definition at line 58 of file CkfTrajectoryBuilder.cc.

58  {
60  result.reserve(5);
62  return result;
63 }

References mps_fire::result, and fileCollector::seed.

◆ trajectories() [2/2]

void CkfTrajectoryBuilder::trajectories ( const TrajectorySeed seed,
CkfTrajectoryBuilder::TrajectoryContainer result 
) const
overridevirtual

trajectories building starting from a seed

Reimplemented from TrajectoryBuilder.

Definition at line 123 of file CkfTrajectoryBuilder.cc.

124  {
125  // analyseSeed( seed);
126  /*
127  if (theSharedSeedCheck){
128  TempTrajectoryContainer candidates;
129  if (seedAlreadyUsed(seed,candidates))
130  {
131  //start with those candidates already made before
132  limitedCandidates(candidates,result);
133  //and quit
134  return;
135  }
136  }
137  */
138 
139  unsigned int tmp;
140  buildTrajectories(seed, result, tmp, nullptr);
141 }

References buildTrajectories(), mps_fire::result, fileCollector::seed, and createJobs::tmp.

◆ updateTrajectory()

void CkfTrajectoryBuilder::updateTrajectory ( TempTrajectory traj,
TM &&  tm 
) const
protected

Definition at line 301 of file CkfTrajectoryBuilder.cc.

301  {
302  auto&& predictedState = tm.predictedState();
303  auto&& hit = tm.recHit();
304  if (hit->isValid()) {
305  auto&& upState = theUpdator->update(predictedState, *hit);
306  traj.emplace(predictedState, std::move(upState), hit, tm.estimate(), tm.layer());
307  } else {
308  traj.emplace(predictedState, hit, 0, tm.layer());
309  }
310 }

References TempTrajectory::emplace(), eostools::move(), BaseCkfTrajectoryBuilder::theUpdator, and TrajectoryStateUpdator::update().

Referenced by limitedCandidates().

Member Data Documentation

◆ theAlwaysUseInvalidHits

bool CkfTrajectoryBuilder::theAlwaysUseInvalidHits
protected

Definition at line 67 of file CkfTrajectoryBuilder.h.

Referenced by CkfTrajectoryBuilder(), and limitedCandidates().

◆ theIntermediateCleaning

bool CkfTrajectoryBuilder::theIntermediateCleaning
protected

Tells whether an intermediary cleaning stage should take place during TB.

Definition at line 65 of file CkfTrajectoryBuilder.h.

Referenced by CkfTrajectoryBuilder(), and limitedCandidates().

◆ theLostHitPenalty

float CkfTrajectoryBuilder::theLostHitPenalty
protected

Chi**2 Penalty for each lost hit.

Definition at line 64 of file CkfTrajectoryBuilder.h.

Referenced by CkfTrajectoryBuilder(), and limitedCandidates().

◆ theMaxCand

int CkfTrajectoryBuilder::theMaxCand
protected

set Event for the internal MeasurementTracker data member

Maximum number of trajectory candidates to propagate to the next layer.

Definition at line 62 of file CkfTrajectoryBuilder.h.

Referenced by CkfTrajectoryBuilder(), and limitedCandidates().

BaseCkfTrajectoryBuilder::addToResult
void addToResult(std::shared_ptr< const TrajectorySeed > const &seed, TempTrajectory &traj, TrajectoryContainer &result, bool inOut=false) const
Definition: BaseCkfTrajectoryBuilder.cc:142
CkfTrajectoryBuilder::TempTrajectoryContainer
std::vector< TempTrajectory > TempTrajectoryContainer
Definition: CkfTrajectoryBuilder.h:36
mps_fire.i
i
Definition: mps_fire.py:428
PrintoutHelper::dumpCandidates
static std::string dumpCandidates(collection &candidates)
Definition: PrintoutHelper.h:69
TempTrajectory
Definition: TempTrajectory.h:40
CkfTrajectoryBuilder::buildTrajectories
TempTrajectory buildTrajectories(const TrajectorySeed &, TrajectoryContainer &ret, unsigned int &nCandPerSeed, const TrajectoryFilter *) const override
Definition: CkfTrajectoryBuilder.cc:143
BaseCkfTrajectoryBuilder::theEstimator
const Chi2MeasurementEstimatorBase * theEstimator
Definition: BaseCkfTrajectoryBuilder.h:173
BaseCkfTrajectoryBuilder::findStateAndLayers
StateAndLayers findStateAndLayers(const TrajectorySeed &seed, const TempTrajectory &traj) const
Definition: BaseCkfTrajectoryBuilder.cc:191
TrajMeasLessEstim
Definition: TrajMeasLessEstim.h:10
TransverseImpactPointExtrapolator
Definition: TransverseImpactPointExtrapolator.h:26
CkfTrajectoryBuilder::theLostHitPenalty
float theLostHitPenalty
Definition: CkfTrajectoryBuilder.h:64
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
BaseCkfTrajectoryBuilder::theTTRHBuilder
const TransientTrackingRecHitBuilder * theTTRHBuilder
Definition: BaseCkfTrajectoryBuilder.h:174
CkfTrajectoryBuilder::theIntermediateCleaning
bool theIntermediateCleaning
Definition: CkfTrajectoryBuilder.h:65
fileCollector.seed
seed
Definition: fileCollector.py:127
CkfTrajectoryBuilder::TrajectoryContainer
std::vector< Trajectory > TrajectoryContainer
Definition: CkfTrajectoryBuilder.h:35
Propagator
Definition: Propagator.h:44
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
CkfTrajectoryBuilder::theAlwaysUseInvalidHits
bool theAlwaysUseInvalidHits
Definition: CkfTrajectoryBuilder.h:67
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
BaseCkfTrajectoryBuilder::BaseCkfTrajectoryBuilder
BaseCkfTrajectoryBuilder(const edm::ParameterSet &conf, std::unique_ptr< TrajectoryFilter > filter, std::unique_ptr< TrajectoryFilter > inOutFilter=nullptr)
Definition: BaseCkfTrajectoryBuilder.cc:27
dqmdumpme.last
last
Definition: dqmdumpme.py:56
BaseCkfTrajectoryBuilder::toBeContinued
bool toBeContinued(TempTrajectory &traj, bool inOut=false) const
Definition: BaseCkfTrajectoryBuilder.cc:111
LayerMeasurements
Definition: LayerMeasurements.h:18
BaseCkfTrajectoryBuilder::createTrajectoryFilter
static std::unique_ptr< TrajectoryFilter > createTrajectoryFilter(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
Definition: BaseCkfTrajectoryBuilder.cc:45
BaseCkfTrajectoryBuilder::theUpdator
const TrajectoryStateUpdator * theUpdator
Definition: BaseCkfTrajectoryBuilder.h:170
PrintoutHelper::dumpMeasurements
static std::string dumpMeasurements(const std::vector< TrajectoryMeasurement > &v)
Definition: PrintoutHelper.cc:21
BaseCkfTrajectoryBuilder::theMeasurementTracker
const MeasurementTrackerEvent * theMeasurementTracker
Definition: BaseCkfTrajectoryBuilder.h:175
CkfTrajectoryBuilder::CkfTrajectoryBuilder
CkfTrajectoryBuilder(const edm::ParameterSet &conf, edm::ConsumesCollector &iC)
Definition: CkfTrajectoryBuilder.cc:29
Point3DBase< float, GlobalTag >
b
double b
Definition: hdecay.h:118
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition: ALCARECOTkAlBeamHalo_cff.py:27
TrajectoryStateUpdator::update
virtual TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const =0
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
BaseCkfTrajectoryBuilder::forwardPropagator
const Propagator * forwardPropagator(const TrajectorySeed &seed) const
Definition: BaseCkfTrajectoryBuilder.h:160
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
CkfTrajectoryBuilder::updateTrajectory
void updateTrajectory(TempTrajectory &traj, TM &&tm) const
Definition: CkfTrajectoryBuilder.cc:301
eostools.move
def move(src, dest)
Definition: eostools.py:511
CkfTrajectoryBuilder::limitedCandidates
unsigned int limitedCandidates(const TrajectorySeed &seed, TempTrajectory &startingTraj, TrajectoryContainer &result) const
Definition: CkfTrajectoryBuilder.cc:169
BaseCkfTrajectoryBuilder::analyzeMeasurementsDebugger
virtual bool analyzeMeasurementsDebugger(Trajectory &traj, const std::vector< TrajectoryMeasurement > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const
Definition: BaseCkfTrajectoryBuilder.h:113
HLT_FULL_cff.candidates
candidates
Definition: HLT_FULL_cff.py:55051
Exception
Definition: hltDiff.cc:246
TrajectorySeed
Definition: TrajectorySeed.h:18
TransverseImpactPointExtrapolator::extrapolate
TrajectoryStateOnSurface extrapolate(const FreeTrajectoryState &fts, const GlobalPoint &vtx) const
extrapolation with default (=geometrical) propagator
Definition: TransverseImpactPointExtrapolator.cc:23
TempTrajectory::lastLayer
const DetLayer * lastLayer() const
Redundant method, returns the layer of lastMeasurement() .
Definition: TempTrajectory.h:237
CkfTrajectoryBuilder::findCompatibleMeasurements
virtual void findCompatibleMeasurements(const TrajectorySeed &seed, const TempTrajectory &traj, std::vector< TrajectoryMeasurement > &result) const
Definition: CkfTrajectoryBuilder.cc:312
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CkfTrajectoryBuilder::theMaxCand
int theMaxCand
set Event for the internal MeasurementTracker data member
Definition: CkfTrajectoryBuilder.h:62
mps_fire.result
result
Definition: mps_fire.py:311
TempTrajectory::emplace
void emplace(Args &&... args)
Definition: TempTrajectory.h:113
CkfTrajectoryBuilder::trajectories
TrajectoryContainer trajectories(const TrajectorySeed &seed) const override
trajectories building starting from a seed
Definition: CkfTrajectoryBuilder.cc:58
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition: TrajectoryStateOnSurface.h:54
BaseCkfTrajectoryBuilder::createStartingTrajectory
TempTrajectory createStartingTrajectory(const TrajectorySeed &seed) const
Definition: BaseCkfTrajectoryBuilder.cc:102
hit
Definition: SiStripHitEffFromCalibTree.cc:88
IntermediateTrajectoryCleaner::clean
static void clean(TempTrajectoryContainer &tracks)
Definition: IntermediateTrajectoryCleaner.cc:10
TempTrajectory::empty
bool empty() const
True if trajectory has no measurements.
Definition: TempTrajectory.h:210