CMS 3D CMS Logo

TrackAlgoPriorityOrder.cc
Go to the documentation of this file.
2 
5 
7 
8 TrackAlgoPriorityOrder::TrackAlgoPriorityOrder(const std::vector<reco::TrackBase::TrackAlgorithm>& algoOrder)
9  : priority_(trackAlgoPriorityOrder) {
10  // with less than 1 element there is nothing to do
11  if (algoOrder.size() <= 1)
12  return;
13 
14  // Reordering the algo priorities is just a matter of taking the
15  // current priorities of the algos, sorting them, and inserting back
16  //
17  // iter0 2 2
18  // iter1 4 -> 3
19  // iter2 3 4
20  std::vector<unsigned int> priorities;
21  priorities.reserve(algoOrder.size());
22  for (const auto algo : algoOrder) {
24  }
25 
26  std::sort(priorities.begin(), priorities.end());
27 
28  for (size_t i = 0, end = priorities.size(); i != end; ++i) {
30  }
31 }
trackAlgoPriorityOrder
constexpr std::array< unsigned int, reco::TrackBase::algoSize > trackAlgoPriorityOrder
Definition: trackAlgoPriorityOrder.h:157
mps_fire.i
i
Definition: mps_fire.py:428
TrackAlgoPriorityOrder.h
trackAlgoPriorityOrder.h
TrackAlgoPriorityOrder::priority_
std::array< unsigned int, reco::TrackBase::algoSize > priority_
Definition: TrackAlgoPriorityOrder.h:13
TrackAlgoPriorityOrder::TrackAlgoPriorityOrder
TrackAlgoPriorityOrder(const std::vector< reco::TrackBase::TrackAlgorithm > &algoOrder)
Definition: TrackAlgoPriorityOrder.cc:8
cmsdt::algo
algo
Definition: constants.h:171
mps_fire.end
end
Definition: mps_fire.py:242
ParameterSetDescription.h
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
bookConverter.priorities
def priorities()
Definition: bookConverter.py:119
ParameterSet.h
HLT_FULL_cff.algoOrder
algoOrder
Definition: HLT_FULL_cff.py:7939