CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
mkfit::CombCandidate Class Reference

#include <TrackStructures.h>

Public Types

using allocator_type = CcAlloc< TrackCand >
 
enum  SeedState_e { Dormant = 0, Finding, Finished }
 
using trk_cand_vec_type = std::vector< TrackCand, CcAlloc< TrackCand > >
 

Public Member Functions

int addHit (const HitOnTrack &hot, float chi2, int prev_idx)
 
void beginBkwSearch ()
 
void clear ()
 
 CombCandidate (const allocator_type &alloc)
 
 CombCandidate (const CombCandidate &o)
 
 CombCandidate (CombCandidate &&o)
 
void compactifyHitStorageForBestCand (bool remove_seed_hits, int backward_fit_min_hits)
 
trk_cand_vec_type::reference emplace_back (TrackCand &tc)
 
bool empty () const
 
void endBkwSearch ()
 
TrackCandfront ()
 
const TrackCandfront () const
 
HitOnTrack hot (int i) const
 
const HoTNodehot_node (int i) const
 
HoTNodehot_node_nc (int i)
 
const HoTNodehotsData () const
 
int hotsSize () const
 
void importSeed (const Track &seed, int region)
 
void mergeCandsAndBestShortOne (const IterationParams &params, bool update_score, bool sort_cands)
 
CombCandidateoperator= (CombCandidate &&o)
 
TrackCandoperator[] (int i)
 
const TrackCandoperator[] (int i) const
 
int pickupLayer () const
 
const TrackCandrefBestShortCand () const
 
void reset (int max_cands_per_seed, int expected_num_hots)
 
void resize (trk_cand_vec_type::size_type count)
 
void setBestShortCand (const TrackCand &tc)
 
void setState (SeedState_e ss)
 
trk_cand_vec_type::size_type size () const
 
SeedState_e state () const
 

Private Attributes

TrackCand m_best_short_cand
 
std::vector< HoTNodem_hots
 
int m_hots_size = 0
 
short int m_lastHitIdx_before_bkwsearch = -1
 
short int m_nInsideMinusOneHits_before_bkwsearch = -1
 
short int m_nTailMinusOneHits_before_bkwsearch = -1
 
int m_pickup_layer: 16
 
SeedState_e m_state: 8
 
trk_cand_vec_type m_trk_cands
 

Detailed Description

Definition at line 273 of file TrackStructures.h.

Member Typedef Documentation

◆ allocator_type

Definition at line 276 of file TrackStructures.h.

◆ trk_cand_vec_type

Definition at line 275 of file TrackStructures.h.

Member Enumeration Documentation

◆ SeedState_e

Enumerator
Dormant 
Finding 
Finished 

Definition at line 278 of file TrackStructures.h.

Constructor & Destructor Documentation

◆ CombCandidate() [1/3]

mkfit::CombCandidate::CombCandidate ( const allocator_type alloc)
inline

◆ CombCandidate() [2/3]

mkfit::CombCandidate::CombCandidate ( const CombCandidate o)
inline

Definition at line 283 of file TrackStructures.h.

284  : m_trk_cands(o.m_trk_cands),
285  m_state(o.m_state),
286  m_pickup_layer(o.m_pickup_layer),
287  m_lastHitIdx_before_bkwsearch(o.m_lastHitIdx_before_bkwsearch),
288  m_nInsideMinusOneHits_before_bkwsearch(o.m_nInsideMinusOneHits_before_bkwsearch),
289  m_nTailMinusOneHits_before_bkwsearch(o.m_nTailMinusOneHits_before_bkwsearch),
290 #ifdef DUMPHITWINDOW
291  m_seed_algo(o.m_seed_algo),
292  m_seed_label(o.m_seed_label),
293 #endif
294  m_hots_size(o.m_hots_size),
295  m_hots(o.m_hots) {
296  }
short int m_nInsideMinusOneHits_before_bkwsearch
short int m_nTailMinusOneHits_before_bkwsearch
short int m_lastHitIdx_before_bkwsearch
trk_cand_vec_type m_trk_cands
std::vector< HoTNode > m_hots

◆ CombCandidate() [3/3]

mkfit::CombCandidate::CombCandidate ( CombCandidate &&  o)
inline

Definition at line 299 of file TrackStructures.h.

300  : m_trk_cands(std::move(o.m_trk_cands)),
301  m_best_short_cand(std::move(o.m_best_short_cand)),
302  m_state(o.m_state),
303  m_pickup_layer(o.m_pickup_layer),
304  m_lastHitIdx_before_bkwsearch(o.m_lastHitIdx_before_bkwsearch),
305  m_nInsideMinusOneHits_before_bkwsearch(o.m_nInsideMinusOneHits_before_bkwsearch),
306  m_nTailMinusOneHits_before_bkwsearch(o.m_nTailMinusOneHits_before_bkwsearch),
307 #ifdef DUMPHITWINDOW
308  m_seed_algo(o.m_seed_algo),
309  m_seed_label(o.m_seed_label),
310 #endif
311  m_hots_size(o.m_hots_size),
312  m_hots(std::move(o.m_hots)) {
313  // This is not needed as we do EOCC::reset() after EOCCS::resize which
314  // calls Reset here and all CombCands get cleared.
315  // However, if at some point we start using this for other purposes this needs
316  // to be called as well.
317  // for (auto &tc : *this) tc.setCombCandidate(this);
318  }
short int m_nInsideMinusOneHits_before_bkwsearch
short int m_nTailMinusOneHits_before_bkwsearch
short int m_lastHitIdx_before_bkwsearch
trk_cand_vec_type m_trk_cands
def move(src, dest)
Definition: eostools.py:511
std::vector< HoTNode > m_hots

Member Function Documentation

◆ addHit()

int mkfit::CombCandidate::addHit ( const HitOnTrack hot,
float  chi2,
int  prev_idx 
)
inline

Definition at line 376 of file TrackStructures.h.

References hltPixelTracks_cff::chi2, hot(), m_hots, and m_hots_size.

Referenced by mkfit::TrackCand::addHitIdx().

376  {
377  m_hots.push_back({hot, chi2, prev_idx});
378  return m_hots_size++;
379  }
HitOnTrack hot(int i) const
std::vector< HoTNode > m_hots

◆ beginBkwSearch()

void mkfit::CombCandidate::beginBkwSearch ( )

Definition at line 206 of file TrackStructures.cc.

References Dormant, mkfit::TrackCand::lastCcIndex(), m_hots, m_lastHitIdx_before_bkwsearch, m_nInsideMinusOneHits_before_bkwsearch, m_nTailMinusOneHits_before_bkwsearch, m_pickup_layer, m_state, m_trk_cands, mkfit::TrackCand::nInsideMinusOneHits(), mkfit::TrackCand::nTailMinusOneHits(), mkfit::TrackCand::setLastCcIndex(), mkfit::TrackCand::setNInsideMinusOneHits(), and mkfit::TrackCand::setNTailMinusOneHits().

206  {
207  // Assumes compactifyHitStorageForBestCand() has already been called.
208  //
209  // This is to be called before backward-search to start with a single
210  // input candidate for backward combinatorial search.
211  //
212  // m_state and m_pickup_layer are also set.
213 
214  TrackCand &tc = m_trk_cands[0];
215 
216  m_state = Dormant;
217  m_pickup_layer = m_hots[0].m_hot.layer;
218  m_lastHitIdx_before_bkwsearch = tc.lastCcIndex();
219  m_nInsideMinusOneHits_before_bkwsearch = tc.nInsideMinusOneHits();
220  m_nTailMinusOneHits_before_bkwsearch = tc.nTailMinusOneHits();
221  tc.setLastCcIndex(0);
222  tc.setNInsideMinusOneHits(0);
223  tc.setNTailMinusOneHits(0);
224  }
short int m_nInsideMinusOneHits_before_bkwsearch
short int m_nTailMinusOneHits_before_bkwsearch
short int m_lastHitIdx_before_bkwsearch
trk_cand_vec_type m_trk_cands
std::vector< HoTNode > m_hots

◆ clear()

void mkfit::CombCandidate::clear ( void  )
inline

Definition at line 354 of file TrackStructures.h.

References m_trk_cands.

Referenced by mkfit::CandCloner::processSeedRange().

354 { m_trk_cands.clear(); }
trk_cand_vec_type m_trk_cands

◆ compactifyHitStorageForBestCand()

void mkfit::CombCandidate::compactifyHitStorageForBestCand ( bool  remove_seed_hits,
int  backward_fit_min_hits 
)

Definition at line 121 of file TrackStructures.cc.

References mkfit::TrackCand::addHitIdx(), cms::cuda::assert(), mkfit::TrackBase::getNSeedHits(), heavyIonCSV_trainingSettings::idx, mkfit::HitOnTrack::index, mkfit::TrackCand::lastCcIndex(), mkfit::HitOnTrack::layer, mkfit::HoTNode::m_chi2, mkfit::HoTNode::m_hot, m_hots, m_hots_size, m_trk_cands, SiStripPI::max, mkfit::TrackCand::nFoundHits(), mkfit::TrackCand::setLastCcIndex(), mkfit::TrackCand::setNFoundHits(), mkfit::TrackCand::setNInsideMinusOneHits(), mkfit::TrackCand::setNMissingHits(), and mkfit::TrackCand::setNTailMinusOneHits().

121  {
122  // The best candidate is assumed to be in position 0 (after mergeCandsAndBestShortOne
123  // mergeCandsAndBestShortOne has been called).
124  // Other cands are dropped, their hits are dropped as well.
125  // Seed hits are dropped if remove_seed_hits is true.
126 
127  /* The following considerations are related to the following implementation:
128  minNrOfHitsForRebuild (checked against "nHits - nseed") has a default at 5, except
129  1 in initialStep
130  4 in tobTec and pixelLess
131  https://github.com/cms-sw/cmssw/blob/master/RecoTracker/CkfPattern/plugins/GroupedCkfTrajectoryBuilder.cc#L1015
132 
133  NOTE: some of those can be matched hits !!!
134 
135  the hit splitting is triggered here: https://github.com/cms-sw/cmssw/blob/master/RecoTracker/CkfPattern/src/CkfTrackCandidateMakerBase.cc#L468
136  after the rebuild has already happened: https://github.com/cms-sw/cmssw/blob/master/RecoTracker/CkfPattern/src/CkfTrackCandidateMakerBase.cc#L313
137  */
138 
139  assert(!m_trk_cands.empty());
140  m_trk_cands.resize(1);
141  TrackCand &tc = m_trk_cands[0];
142 
143  // Do NOT remove any seed hits if fewer than backward_fit_min_hits hits are available.
144  if (remove_seed_hits && tc.nFoundHits() <= backward_fit_min_hits) {
145  remove_seed_hits = false;
146  }
147 
148  // Stash HoTNodes at the end of m_hots.
149  int stash_end = m_hots.size();
150  int stash_pos = stash_end;
151 
152  int idx = tc.lastCcIndex();
153 
154  if (remove_seed_hits) {
155  // Skip invalid hits that would now be at the head of the candidate.
156  // Make sure to subtract / recount number of hits:
157  // as this is rather involved, just call addHitIdx() repeatedly so counts
158  // of holes get updated correctly.
159  // Though one should not care super much ... it's only relevant for relative scores
160  // and here we are trimming everything down to a single candidate.
161 
162  int n_hits_to_pick = std::max(tc.nFoundHits() - tc.getNSeedHits(), backward_fit_min_hits);
163  while (n_hits_to_pick > 0) {
164  m_hots[--stash_pos] = m_hots[idx];
165  if (m_hots[idx].m_hot.index >= 0)
166  --n_hits_to_pick;
167  idx = m_hots[idx].m_prev_idx;
168  }
169 
170  m_hots_size = 0;
171  m_hots.clear();
172  tc.setLastCcIndex(-1);
173  tc.setNFoundHits(0);
174  tc.setNMissingHits(0);
175  tc.setNInsideMinusOneHits(0);
176  tc.setNTailMinusOneHits(0);
177  while (stash_pos != stash_end && m_hots[stash_pos].m_hot.index < 0)
178  ++stash_pos;
179  while (stash_pos != stash_end) {
180  HoTNode &hn = m_hots[stash_pos];
181  tc.addHitIdx(hn.m_hot.index, hn.m_hot.layer, hn.m_chi2);
182  ++stash_pos;
183  }
184  } else {
185  while (idx != -1) {
186  m_hots[--stash_pos] = m_hots[idx];
187  idx = m_hots[idx].m_prev_idx;
188  }
189 
190  // If we are not removing seed_hits, track is good as it is,
191  // just fixup m_hots and t.lastCcIndex.
192  int pos = 0;
193  while (stash_pos != stash_end) {
194  m_hots[pos].m_hot = m_hots[stash_pos].m_hot;
195  m_hots[pos].m_chi2 = m_hots[stash_pos].m_chi2;
196  m_hots[pos].m_prev_idx = pos - 1;
197  ++pos;
198  ++stash_pos;
199  }
200  m_hots.resize(pos);
201  m_hots_size = pos;
202  tc.setLastCcIndex(pos - 1);
203  }
204  }
assert(be >=bs)
trk_cand_vec_type m_trk_cands
std::vector< HoTNode > m_hots

◆ emplace_back()

trk_cand_vec_type::reference mkfit::CombCandidate::emplace_back ( TrackCand tc)
inline

Definition at line 353 of file TrackStructures.h.

References m_trk_cands.

Referenced by mkfit::CandCloner::processSeedRange().

353 { return m_trk_cands.emplace_back(tc); }
trk_cand_vec_type m_trk_cands

◆ empty()

bool mkfit::CombCandidate::empty ( void  ) const
inline

Definition at line 346 of file TrackStructures.h.

References m_trk_cands.

Referenced by mergeCandsAndBestShortOne().

346 { return m_trk_cands.empty(); }
trk_cand_vec_type m_trk_cands

◆ endBkwSearch()

void mkfit::CombCandidate::endBkwSearch ( )

Definition at line 226 of file TrackStructures.cc.

References mkfit::TrackCand::lastCcIndex(), m_hots, m_lastHitIdx_before_bkwsearch, m_nInsideMinusOneHits_before_bkwsearch, m_nTailMinusOneHits_before_bkwsearch, m_trk_cands, mkfit::TrackCand::nInsideMinusOneHits(), mkfit::TrackCand::nTailMinusOneHits(), mkfit::TrackCand::setLastCcIndex(), mkfit::TrackCand::setNInsideMinusOneHits(), and mkfit::TrackCand::setNTailMinusOneHits().

226  {
227  // mergeCandsAndBestShortOne() has already been called (from MkBuilder::FindXxx()).
228  // We have to fixup the best candidate.
229 
230  TrackCand &tc = m_trk_cands[0];
231 
232  int curr_idx = tc.lastCcIndex();
233  if (curr_idx != 0) {
234  int last_idx = -1, prev_idx;
235  do {
236  prev_idx = m_hots[curr_idx].m_prev_idx;
237 
238  m_hots[curr_idx].m_prev_idx = last_idx;
239 
240  last_idx = curr_idx;
241  curr_idx = prev_idx;
242  } while (prev_idx != -1);
243  }
244 
245  tc.setLastCcIndex(m_lastHitIdx_before_bkwsearch);
246  tc.setNInsideMinusOneHits(m_nInsideMinusOneHits_before_bkwsearch + tc.nInsideMinusOneHits());
247  tc.setNTailMinusOneHits(m_nTailMinusOneHits_before_bkwsearch + tc.nTailMinusOneHits());
251  }
short int m_nInsideMinusOneHits_before_bkwsearch
short int m_nTailMinusOneHits_before_bkwsearch
short int m_lastHitIdx_before_bkwsearch
trk_cand_vec_type m_trk_cands
std::vector< HoTNode > m_hots

◆ front() [1/2]

TrackCand& mkfit::CombCandidate::front ( )
inline

Definition at line 351 of file TrackStructures.h.

References m_trk_cands.

351 { return m_trk_cands.front(); }
trk_cand_vec_type m_trk_cands

◆ front() [2/2]

const TrackCand& mkfit::CombCandidate::front ( ) const
inline

Definition at line 352 of file TrackStructures.h.

References m_trk_cands.

352 { return m_trk_cands.front(); }
trk_cand_vec_type m_trk_cands

◆ hot()

HitOnTrack mkfit::CombCandidate::hot ( int  i) const
inline

◆ hot_node()

const HoTNode& mkfit::CombCandidate::hot_node ( int  i) const
inline

◆ hot_node_nc()

HoTNode& mkfit::CombCandidate::hot_node_nc ( int  i)
inline

Definition at line 391 of file TrackStructures.h.

References mps_fire::i, and m_hots.

Referenced by mkfit::TrackCand::refLastHoTNode().

391 { return m_hots[i]; }
std::vector< HoTNode > m_hots

◆ hotsData()

const HoTNode* mkfit::CombCandidate::hotsData ( ) const
inline

Definition at line 394 of file TrackStructures.h.

References m_hots.

Referenced by mkfit::MkFinder::bkFitInputTracks().

394 { return m_hots.data(); }
std::vector< HoTNode > m_hots

◆ hotsSize()

int mkfit::CombCandidate::hotsSize ( ) const
inline

Definition at line 389 of file TrackStructures.h.

References m_hots_size.

389 { return m_hots_size; }

◆ importSeed()

void mkfit::CombCandidate::importSeed ( const Track seed,
int  region 
)

Definition at line 53 of file TrackStructures.cc.

References Dormant, dprintf, mkfit::getScoreCand(), trackingPlots::hp, m_pickup_layer, m_state, m_trk_cands, HLT_2022v15_cff::region, fileCollector::seed, and HLT_2022v15_cff::TrackCand.

53  {
54  m_trk_cands.emplace_back(TrackCand(seed, this));
55 
57  m_pickup_layer = seed.getLastHitLyr();
58 #ifdef DUMPHITWINDOW
59  m_seed_algo = seed.algoint();
60  m_seed_label = seed.label();
61 #endif
62 
63  TrackCand &cand = m_trk_cands.back();
64  cand.setNSeedHits(seed.nTotalHits());
65  cand.setEtaRegion(region);
66 
67  dprintf("Importing pt=%f eta=%f, lastCcIndex=%d\n", cand.pT(), cand.momEta(), cand.lastCcIndex());
68 
69  for (const HitOnTrack *hp = seed.beginHitsOnTrack(); hp != seed.endHitsOnTrack(); ++hp) {
70  dprintf(" hit idx=%d lyr=%d\n", hp->index, hp->layer);
71  cand.addHitIdx(hp->index, hp->layer, 0.0f);
72  }
73 
74  cand.setScore(getScoreCand(cand));
75  }
float getScoreCand(const Track &cand1, bool penalizeTailMissHits=false, bool inFindCandidates=false)
Definition: Track.h:630
trk_cand_vec_type m_trk_cands
#define dprintf(...)
Definition: Debug.h:93

◆ mergeCandsAndBestShortOne()

void mkfit::CombCandidate::mergeCandsAndBestShortOne ( const IterationParams params,
bool  update_score,
bool  sort_cands 
)

Definition at line 77 of file TrackStructures.cc.

References c, mkfit::TrackCand::combCandidate(), empty(), mkfit::getScoreCand(), m_best_short_cand, m_trk_cands, submitPVValidationJobs::params, mkfit::TrackCand::resetShortTrack(), mkfit::TrackBase::score(), mkfit::TrackBase::setScore(), jetsAK4_CHS_cff::sort, and mkfit::sortByScoreTrackCand().

77  {
78  TrackCand *best_short = m_best_short_cand.combCandidate() ? &m_best_short_cand : nullptr;
79 
80  if (!empty()) {
81  if (update_score) {
82  for (auto &c : m_trk_cands)
83  c.setScore(getScoreCand(c));
84  if (best_short)
85  best_short->setScore(getScoreCand(*best_short));
86  }
87  if (sort_cands) {
89  }
90 
91  if (best_short && best_short->score() > m_trk_cands.back().score()) {
92  auto ci = m_trk_cands.begin();
93  while (ci->score() > best_short->score())
94  ++ci;
95 
96  if ((int)m_trk_cands.size() >= params.maxCandsPerSeed)
97  m_trk_cands.pop_back();
98 
99  // To print out what has been replaced -- remove when done with short track handling.
100 #ifdef DEBUG
101  if (ci == m_trk_cands.begin()) {
102  printf("FindTracksStd -- Replacing best cand (%f) with short one (%f) in final sorting\n",
103  m_trk_cands.front().score(),
104  best_short->score());
105  }
106 #endif
107 
108  m_trk_cands.insert(ci, *best_short);
109  }
110 
111  } else if (best_short) {
112  m_trk_cands.push_back(*best_short);
113  }
114 
115  if (best_short)
116  best_short->resetShortTrack();
117 
118  // assert(capacity() == (size_t)Config::maxCandsPerSeed);
119  }
float getScoreCand(const Track &cand1, bool penalizeTailMissHits=false, bool inFindCandidates=false)
Definition: Track.h:630
CombCandidate * combCandidate() const
bool sortByScoreTrackCand(const TrackCand &cand1, const TrackCand &cand2)
trk_cand_vec_type m_trk_cands

◆ operator=()

CombCandidate& mkfit::CombCandidate::operator= ( CombCandidate &&  o)
inline

Definition at line 324 of file TrackStructures.h.

References m_best_short_cand, m_hots, m_hots_size, m_lastHitIdx_before_bkwsearch, m_nInsideMinusOneHits_before_bkwsearch, m_nTailMinusOneHits_before_bkwsearch, m_pickup_layer, m_state, m_trk_cands, eostools::move(), and EcalTangentSkim_cfg::o.

324  {
325  m_trk_cands = (std::move(o.m_trk_cands));
326  m_best_short_cand = std::move(o.m_best_short_cand);
327  m_state = o.m_state;
328  m_pickup_layer = o.m_pickup_layer;
329  m_lastHitIdx_before_bkwsearch = o.m_lastHitIdx_before_bkwsearch;
330  m_nInsideMinusOneHits_before_bkwsearch = o.m_nInsideMinusOneHits_before_bkwsearch;
331  m_nTailMinusOneHits_before_bkwsearch = o.m_nTailMinusOneHits_before_bkwsearch;
332 #ifdef DUMPHITWINDOW
333  m_seed_algo = o.m_seed_algo;
334  m_seed_label = o.m_seed_label;
335 #endif
336  m_hots_size = o.m_hots_size;
337  m_hots = std::move(o.m_hots);
338 
339  for (auto& tc : m_trk_cands)
340  tc.setCombCandidate(this);
341 
342  return *this;
343  }
short int m_nInsideMinusOneHits_before_bkwsearch
short int m_nTailMinusOneHits_before_bkwsearch
short int m_lastHitIdx_before_bkwsearch
trk_cand_vec_type m_trk_cands
def move(src, dest)
Definition: eostools.py:511
std::vector< HoTNode > m_hots

◆ operator[]() [1/2]

TrackCand& mkfit::CombCandidate::operator[] ( int  i)
inline

Definition at line 349 of file TrackStructures.h.

References mps_fire::i, and m_trk_cands.

349 { return m_trk_cands[i]; }
trk_cand_vec_type m_trk_cands

◆ operator[]() [2/2]

const TrackCand& mkfit::CombCandidate::operator[] ( int  i) const
inline

Definition at line 350 of file TrackStructures.h.

References mps_fire::i, and m_trk_cands.

350 { return m_trk_cands[i]; }
trk_cand_vec_type m_trk_cands

◆ pickupLayer()

int mkfit::CombCandidate::pickupLayer ( ) const
inline

Definition at line 402 of file TrackStructures.h.

References m_pickup_layer.

Referenced by mkfit::MkBuilder::find_tracks_unroll_candidates().

402 { return m_pickup_layer; }

◆ refBestShortCand()

const TrackCand& mkfit::CombCandidate::refBestShortCand ( ) const
inline

Definition at line 396 of file TrackStructures.h.

References m_best_short_cand.

Referenced by mkfit::CandCloner::processSeedRange().

396 { return m_best_short_cand; }

◆ reset()

void mkfit::CombCandidate::reset ( int  max_cands_per_seed,
int  expected_num_hots 
)
inline

Definition at line 356 of file TrackStructures.h.

References mkfit::getScoreWorstPossible(), m_best_short_cand, m_hots, m_hots_size, m_trk_cands, mkfit::TrackBase::setScore(), and createJobs::tmp.

356  {
357  std::vector<TrackCand, CcAlloc<TrackCand>> tmp(m_trk_cands.get_allocator());
358  m_trk_cands.swap(tmp);
359  m_trk_cands.reserve(max_cands_per_seed); // we *must* never exceed this
360 
362 
363  // state and pickup_layer set in importSeed.
364 
365  // expected_num_hots is different for CloneEngine and Std, especially as long as we
366  // instantiate all candidates before purging them.
367  // ce: N_layer * N_cands ~~ 20 * 6 = 120
368  // std: i don't know, maybe double?
369  m_hots.reserve(expected_num_hots);
370  m_hots_size = 0;
371  m_hots.clear();
372  }
void setScore(float s)
Definition: Track.h:190
float getScoreWorstPossible()
Definition: Track.h:602
trk_cand_vec_type m_trk_cands
tmp
align.sh
Definition: createJobs.py:716
std::vector< HoTNode > m_hots

◆ resize()

void mkfit::CombCandidate::resize ( trk_cand_vec_type::size_type  count)
inline

◆ setBestShortCand()

void mkfit::CombCandidate::setBestShortCand ( const TrackCand tc)
inline

Definition at line 397 of file TrackStructures.h.

References m_best_short_cand.

Referenced by mkfit::CandCloner::processSeedRange().

397 { m_best_short_cand = tc; }

◆ setState()

void mkfit::CombCandidate::setState ( SeedState_e  ss)
inline

◆ size()

trk_cand_vec_type::size_type mkfit::CombCandidate::size ( void  ) const
inline

◆ state()

SeedState_e mkfit::CombCandidate::state ( ) const
inline

Definition at line 399 of file TrackStructures.h.

References m_state.

Referenced by mkfit::MkBuilder::find_tracks_unroll_candidates(), and mkfit::CandCloner::processSeedRange().

399 { return m_state; }

Member Data Documentation

◆ m_best_short_cand

TrackCand mkfit::CombCandidate::m_best_short_cand
private

◆ m_hots

std::vector<HoTNode> mkfit::CombCandidate::m_hots
private

◆ m_hots_size

int mkfit::CombCandidate::m_hots_size = 0
private

◆ m_lastHitIdx_before_bkwsearch

short int mkfit::CombCandidate::m_lastHitIdx_before_bkwsearch = -1
private

Definition at line 414 of file TrackStructures.h.

Referenced by beginBkwSearch(), endBkwSearch(), and operator=().

◆ m_nInsideMinusOneHits_before_bkwsearch

short int mkfit::CombCandidate::m_nInsideMinusOneHits_before_bkwsearch = -1
private

Definition at line 415 of file TrackStructures.h.

Referenced by beginBkwSearch(), endBkwSearch(), and operator=().

◆ m_nTailMinusOneHits_before_bkwsearch

short int mkfit::CombCandidate::m_nTailMinusOneHits_before_bkwsearch = -1
private

Definition at line 416 of file TrackStructures.h.

Referenced by beginBkwSearch(), endBkwSearch(), and operator=().

◆ m_pickup_layer

int mkfit::CombCandidate::m_pickup_layer
private

Definition at line 413 of file TrackStructures.h.

Referenced by beginBkwSearch(), importSeed(), operator=(), and pickupLayer().

◆ m_state

SeedState_e mkfit::CombCandidate::m_state
private

Definition at line 412 of file TrackStructures.h.

Referenced by beginBkwSearch(), importSeed(), operator=(), setState(), and state().

◆ m_trk_cands

trk_cand_vec_type mkfit::CombCandidate::m_trk_cands
private