Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:33

0001 #include "L1Trigger/RegionalCaloTrigger/interface/L1RCTNeighborMap.h"
0002 
0003 #include <vector>
0004 using std::vector;
0005 
0006 #include <iostream>
0007 using std::cout;
0008 using std::endl;
0009 
0010 void printVec(std::vector<int> vec){
0011   std::cout << "Elements are : ";  
0012   for(int i = 0; i<3; i++)
0013     std::cout << vec.at(i) << " ";
0014   std::cout << std::endl;
0015 }
0016 int main() {
0017   L1RCTNeighborMap nmap;
0018   for(int i=0; i<18; i++){
0019     for(int j=0; j<7; j++){
0020       for(int k=0;k<2; k++){
0021     cout << "North " << i << " " << j << " " << k << " "; 
0022     printVec(nmap.north(i,j,k));
0023     cout << "South " << i << " " << j << " " << k << " ";
0024     printVec(nmap.south(i,j,k));
0025     cout << "West " << i << " " << j << " " << k << " ";
0026     printVec(nmap.west(i,j,k));
0027     cout << "East " << i << " " << j << " " << k << " ";
0028     printVec(nmap.east(i,j,k));
0029       }
0030     }
0031   }
0032 }