#include <AccMap.h>
Definition at line 16 of file AccMap.h.
◆ ~AccMap()
◆ AccMap()
Definition at line 12 of file AccMap.cxx.
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;
◆ GetAccMap()
◆ GetMap() [1/2]
const CurrMap * AccMap::GetMap |
( |
int |
ifold, |
|
|
int |
ielecregion |
|
) |
| const |
Definition at line 92 of file AccMap.cxx.
94 const int code=10*ifold+ielecregion;
97 return mapIter->second;
99 std::cout <<
" Code " <<
code <<
" not found in map ..." << std::endl;
◆ GetMap() [2/2]
const CurrMap * AccMap::GetMap |
( |
int |
ifold, |
|
|
int |
region, |
|
|
int |
sampling, |
|
|
int |
eta |
|
) |
| const |
◆ GetXmax()
float AccMap::GetXmax |
( |
int |
ifold | ) |
const |
|
inline |
Definition at line 28 of file AccMap.h.
29 if (ifold<m_nmax && ifold >=0)
return m_xmax[ifold];
◆ GetXmin()
float AccMap::GetXmin |
( |
int |
ifold | ) |
const |
|
inline |
Definition at line 25 of file AccMap.h.
26 if (ifold<m_nmax && ifold >=0)
return m_xmin[ifold];
◆ GetYmax()
float AccMap::GetYmax |
( |
int |
ifold | ) |
const |
|
inline |
Definition at line 34 of file AccMap.h.
35 if (ifold<m_nmax && ifold >=0)
return m_ymax[ifold];
◆ GetYmin()
float AccMap::GetYmin |
( |
int |
ifold | ) |
const |
|
inline |
Definition at line 31 of file AccMap.h.
32 if (ifold<m_nmax && ifold >=0)
return m_ymin[ifold];
◆ Region()
int AccMap::Region |
( |
int |
region, |
|
|
int |
sampling, |
|
|
int |
eta |
|
) |
| const |
Definition at line 104 of file AccMap.cxx.
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;
◆ Reset()
◆ m_nmax
const int AccMap::m_nmax {14} |
|
private |
◆ m_theMap
◆ m_xmax
std::vector<float> AccMap::m_xmax |
|
private |
◆ m_xmin
std::vector<float> AccMap::m_xmin |
|
private |
◆ m_ymax
std::vector<float> AccMap::m_ymax |
|
private |
◆ m_ymin
std::vector<float> AccMap::m_ymin |
|
private |
The documentation for this class was generated from the following files: