10 f.open(
"fgtMapDump.csv");
13 Int_t electId,geoId,rdo,arm,apv,chan,disk,quad,strip,stat;
14 Double_t ord,low,high,ped,sigped;
17 Int_t newEid,mapping[51280];
19 for (
int xx = 0;xx<51280; xx++) mapping[xx]=-1;
27 while ((f.is_open())&&(ii<26879))
31 f>>electId>>geoId>>rdo>>arm>>apv>>chan>>disk>>quad>>layer>>strip>>ord>>low>>high>>geo>>stat>>ped>>sigped;
47 if ((electId>=16000)&&(electId<=16639))
50 if (apv > 11) apv = apv-2;
51 newEid = chan + 128 * ( apv + 20 * (arm + 6 * ( 1 - 1) ) );
54 mapping[newEid]=geoId;
57 if ((electId<=17919)&&(electId>=17280))
60 if (apv > 11) apv = apv-2;
61 newEid = chan + 128 * ( apv + 20 * (arm + 6 * ( 1 - 1) ) );
64 mapping[newEid]=geoId;
67 if ((electId<=1279)&&(electId>=640))
70 if (apv > 11) apv = apv-2;
71 newEid = chan + 128 * ( apv + 20 * (1 + 6 * ( rdo - 1) ) );
74 mapping[newEid]=geoId;
80 for (
int xx = 0;xx<51280; xx++) cout<<xx<<
" "<<mapping[xx]<<endl;;