Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-18 23:26:47

0001 #include "CUDADataFormats/Track/interface/TrackSoAHeterogeneousT.h"
0002 
0003 #include <iostream>
0004 #include <cassert>
0005 
0006 int main() {
0007   // test quality
0008 
0009   auto q = pixelTrack::qualityByName("tight");
0010   assert(pixelTrack::Quality::tight == q);
0011   q = pixelTrack::qualityByName("toght");
0012   assert(pixelTrack::Quality::notQuality == q);
0013 
0014   for (uint32_t i = 0; i < pixelTrack::qualitySize; ++i) {
0015     auto const qt = static_cast<pixelTrack::Quality>(i);
0016     auto q = pixelTrack::qualityByName(pixelTrack::qualityName[i]);
0017     assert(qt == q);
0018   }
0019 
0020   return 0;
0021 }