|
std::string | make_key (std::string prefix, int global_sec, int roi) |
|
std::string | make_pair (const std::string &lhs, const std::string &rhs) const |
|
void | create_indices () |
|
std::vector< std::string > | get_lhs_keys (const std::string &dettype, int roi, int sector) const |
|
std::vector< std::string > | get_rhs_keys (const std::string &dettype, int roi, int sector) const |
|
std::vector< std::string > | relevant_regions (int side, const std::string &dettype, int roi, int sector) const |
|
void | configure (const std::string &lutFile) |
|
Definition at line 68 of file MuonSectorProcessor.cxx.
◆ configure()
void LVL1MUCTPIPHASE1::OverlapHelper::configure |
( |
const std::string & |
lutFile | ) |
|
|
inline |
Definition at line 132 of file MuonSectorProcessor.cxx.
140 for(
const boost::property_tree::ptree::value_type &
x: topEle) {
142 std::string topElementName =
x.first;
145 if (topElementName !=
"LUT")
continue;
150 unsigned left_mod = 32;
151 unsigned right_mod = 32;
152 if (SectorId1[0] ==
'E') left_mod = 48;
153 if (SectorId1[0] ==
'F') left_mod = 24;
154 if (SectorId2[0] ==
'E') right_mod = 48;
155 if (SectorId2[0] ==
'F') right_mod = 24;
157 std::string snum_left = std::string(1,SectorId1[1])+std::string(1,SectorId1[2]);
158 int sec_left = std::stoi(snum_left) % left_mod;
160 std::string snum_right = std::string(1,SectorId2[1])+std::string(1,SectorId2[2]);
161 int sec_right = std::stoi(snum_right) % right_mod;
164 int active_side = (
side ==
"C") ? 0 : 1;
166 std::string System1 = SectorId1.substr(0,1);
167 std::string System2 = SectorId2.substr(0,1);
169 for(
const boost::property_tree::ptree::value_type &
z:
lut) {
170 std::string menuElementName =
z.first;
171 if(menuElementName!=
"Element" && menuElementName!=
"BBElement")
continue;
175 auto lhs_key =
make_key(System1,sec_left,roi1);
176 auto rhs_key =
make_key(System2,sec_right,roi2);
177 auto region =
make_pair(lhs_key,rhs_key);
◆ create_indices()
void LVL1MUCTPIPHASE1::OverlapHelper::create_indices |
( |
| ) |
|
|
inline |
Definition at line 87 of file MuonSectorProcessor.cxx.
89 for(
const auto& region : side_regions.second){
90 auto split = region.find(
':');
91 auto left = region.substr(0,
split);
92 auto right = region.substr(
split+1,std::string::npos);
93 lhs_index[side_regions.first][left].push_back(right);
94 rhs_index[side_regions.first][right].push_back(left);
◆ get_lhs_keys()
std::vector<std::string> LVL1MUCTPIPHASE1::OverlapHelper::get_lhs_keys |
( |
const std::string & |
dettype, |
|
|
int |
roi, |
|
|
int |
sector |
|
) |
| const |
|
inline |
◆ get_rhs_keys()
std::vector<std::string> LVL1MUCTPIPHASE1::OverlapHelper::get_rhs_keys |
( |
const std::string & |
dettype, |
|
|
int |
roi, |
|
|
int |
sector |
|
) |
| const |
|
inline |
◆ make_key()
std::string LVL1MUCTPIPHASE1::OverlapHelper::make_key |
( |
std::string |
prefix, |
|
|
int |
global_sec, |
|
|
int |
roi |
|
) |
| |
|
inline |
◆ make_pair()
std::string LVL1MUCTPIPHASE1::OverlapHelper::make_pair |
( |
const std::string & |
lhs, |
|
|
const std::string & |
rhs |
|
) |
| const |
|
inline |
◆ relevant_regions()
std::vector<std::string> LVL1MUCTPIPHASE1::OverlapHelper::relevant_regions |
( |
int |
side, |
|
|
const std::string & |
dettype, |
|
|
int |
roi, |
|
|
int |
sector |
|
) |
| const |
|
inline |
◆ global_pairs
std::map<int,std::set<std::string> > LVL1MUCTPIPHASE1::OverlapHelper::global_pairs |
◆ lhs_index
std::array<std::map<std::string,std::vector<std::string> >,2> LVL1MUCTPIPHASE1::OverlapHelper::lhs_index |
◆ rhs_index
std::array<std::map<std::string,std::vector<std::string> >,2> LVL1MUCTPIPHASE1::OverlapHelper::rhs_index |
◆ xmlHelper
The documentation for this class was generated from the following file: