8 #ifndef LARG4_STAND_ALONE
14 const int i1[10]={0,0,3,2,9,12,10,9,0,2};
15 const int i2[10]={2,1,12,12,13,13,13,13,1,4};
22 const double xnorm=14.1591;
24 #ifndef LARG4_STAND_ALONE
29 for (
int iregion=0;iregion<10;iregion++) {
31 for (
int ifold=i1[iregion]; ifold<=i2[iregion]; ifold++) {
32 std::ostringstream
fn;
33 fn <<
"fold"<<ifold<<
"_region"<<iregion<<
".map";
35 std::string fileLocation;
36 #ifdef LARG4_STAND_ALONE
37 fileLocation=m_directory+
"/"+
filename;
40 fileLocation=larLocation+
"/"+
filename;
43 int code=10*ifold+iregion;
53 for (
int istr=1; istr<=2; istr++) {
54 std::ostringstream
fn;
55 fn <<
"straight"<<istr<<
"_region"<<iregion<<
".map";
57 std::string fileLocation;
58 #ifdef LARG4_STAND_ALONE
59 fileLocation=m_directory+
"/"+
filename;
62 fileLocation=larLocation+
"/"+
filename;
65 int code=10*(20+istr)+iregion;
94 const int code=10*ifold+ielecregion;
97 return mapIter->second;
99 std::cout <<
" Code " <<
code <<
" not found in map ..." << std::endl;
110 if (
eta<256) elecregion=0;
113 else if (sampling==2) {
114 if (
eta<32) elecregion=2;
118 if (
eta<9 ||
eta==26) elecregion=4;
119 if ((
eta>8 &&
eta<13) || (
eta>15 &&
eta<19)) elecregion=5;
120 if ((
eta>12 &&
eta < 16) || (
eta>18 &&
eta<21)) elecregion=6;
121 if ((
eta>20 &&
eta < 26)) elecregion=7;
125 if (sampling==1) elecregion=8;