Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:09

0001 #include "RecoTracker/FinalTrackSelectors/src/trackAlgoPriorityOrder.h"
0002 
0003 #include <iostream>
0004 
0005 int main(void) {
0006   for (unsigned int ialgo = 0; ialgo < reco::TrackBase::algoSize; ++ialgo) {
0007     reco::TrackBase::TrackAlgorithm algo = static_cast<reco::TrackBase::TrackAlgorithm>(ialgo);
0008 
0009     const unsigned int priority = trackAlgoPriorityOrder[algo];
0010     std::cout << "Algorithm " << reco::TrackBase::algoName(algo) << " has priority " << priority << std::endl;
0011 
0012     if (impl::algoPriorityOrder[priority] != algo) {
0013       std::cout << "Priority for algo " << reco::TrackBase::algoName(algo) << " is inconsistent: algo " << algo
0014                 << " has priority " << priority << ", which maps back to algo " << impl::algoPriorityOrder[priority]
0015                 << std::endl;
0016       return 1;
0017     }
0018   }
0019 
0020   return 0;
0021 }