#!/usr/bin/root -b -q -l { const int side=6; const int nrings=4; int tower2ring[side*side+1]; int tower2module[side*side+1]; int tower2mtower[side*side+1]; int tower2ring[0]=-1; int ring2tower[nrings][side*side+1]; cout << "tower map: \n"; for(int row = 0; row=1 & col<=3 & row>=1 & row<=3) tower2ring[tow]=1; else if(col>=0 & col<=4 & row>=0 & row<=4) tower2ring[tow]=2; else tower2ring[tow]=3; //cout << row << ", " << col << " -> " << tow << ", " << tower2ring[tow] << endl; cout << tower2ring[tow] << ", "; } cout << endl; } cout << endl; cout << "m_tower map: \n"; for(int row = 0; row0){ cout << "ADC_"<31){ ch=0; adc++; cout << "\n"; } } } } } cout << "\n"; cout << "twiki formatted output" << endl; // | *ADC0* | 0x0400 || // | *Readout Channel* | *Tower signal* | *Cable Label* | // | ADC0-00 | T01-S | M1-S4 | int adc=0; int ch=0; cout << "\n"; cout << "| *ADC"<0){ int mod=tower2module[tow]; int mtower=tower2mtower[tow]; cout << "| ADC"<< adc <<"-"<31){ ch=0; adc++; cout << "\n"; cout << "| *ADC"<