Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:50:28

0001 // name=U4SensorIdentifierDefault_test ; gcc $name.cc -std=c++11 -lstdc++ -o /tmp/$name && /tmp/$name
0002 
0003 #include <iostream>
0004 
0005 bool IsInterestingCopyNo( int copyno )
0006 {
0007     return 
0008         copyno > -1 && 
0009            (
0010             (std::abs( copyno -      0 ) < 100) || 
0011             (std::abs( copyno -  17612 ) < 100) ||
0012             (std::abs( copyno -  30000 ) < 100) ||
0013             (std::abs( copyno -  32400 ) < 100) ||
0014             (std::abs( copyno - 300000 ) < 100) || 
0015             (std::abs( copyno - 325600 ) < 100)  
0016            )
0017         ;   
0018 }
0019 
0020 
0021 int main()
0022 {
0023     int count = 0 ; 
0024     for(int i=0 ; i < 400000 ; i++) 
0025     {
0026        bool select = IsInterestingCopyNo(i) ; 
0027        if(select) count += 1  ; 
0028        if(select) std::cout << i << std::endl ; 
0029     }
0030     std::cout << " count " << count << std::endl ; 
0031 }
0032