65 const std::map<std::string, L1TUtmAlgorithm>& algoMap = hmenu->
getAlgorithmMap();
66 const std::map<std::string, L1TUtmCondition>& condMap = hmenu->
getConditionMap();
68 const std::map<std::string, tmeventsetup::esScale> scaleMap(std::begin(hmenu->
getScaleMap()),
71 bool hasPrecision =
false;
72 std::map<std::string, unsigned int> precisions;
73 getPrecisions(precisions, scaleMap);
74 for (std::map<std::string, unsigned int>::const_iterator cit = precisions.begin(); cit != precisions.end(); cit++) {
75 std::cout << cit->first <<
" = " << cit->second <<
"\n";
80 std::map<std::string, tmeventsetup::esScale>::iterator it1, it2;
81 const tmeventsetup::esScale* scale1 = &scaleMap.find(
"EG-ETA")->second;
82 const tmeventsetup::esScale* scale2 = &scaleMap.find(
"MU-ETA")->second;
84 std::vector<long long> lut_eg_2_mu_eta;
85 getCaloMuonEtaConversionLut(lut_eg_2_mu_eta, scale1, scale2);
87 scale1 = &scaleMap.find(
"EG-PHI")->second;
88 scale2 = &scaleMap.find(
"MU-PHI")->second;
90 std::vector<long long> lut_eg_2_mu_phi;
91 getCaloMuonPhiConversionLut(lut_eg_2_mu_phi, scale1, scale2);
93 scale1 = &scaleMap.find(
"EG-ETA")->second;
94 scale2 = &scaleMap.find(
"MU-ETA")->second;
96 std::vector<double> eg_mu_delta_eta;
97 std::vector<long long> lut_eg_mu_delta_eta;
98 size_t n = getDeltaVector(eg_mu_delta_eta, scale1, scale2);
99 setLut(lut_eg_mu_delta_eta, eg_mu_delta_eta, precisions[
"PRECISION-EG-MU-Delta"]);
101 std::vector<long long> lut_eg_mu_cosh;
102 applyCosh(eg_mu_delta_eta,
n);
103 setLut(lut_eg_mu_cosh, eg_mu_delta_eta, precisions[
"PRECISION-EG-MU-Math"]);
105 scale1 = &scaleMap.find(
"EG-PHI")->second;
106 scale2 = &scaleMap.find(
"MU-PHI")->second;
108 std::vector<double> eg_mu_delta_phi;
109 std::vector<long long> lut_eg_mu_delta_phi;
110 n = getDeltaVector(eg_mu_delta_phi, scale1, scale2);
111 setLut(lut_eg_mu_delta_phi, eg_mu_delta_phi, precisions[
"PRECISION-EG-MU-Delta"]);
113 std::vector<long long> lut_eg_mu_cos;
114 applyCos(eg_mu_delta_phi,
n);
115 setLut(lut_eg_mu_cos, eg_mu_delta_phi, precisions[
"PRECISION-EG-MU-Math"]);
117 scale1 = &scaleMap.find(
"EG-ET")->second;
118 std::vector<long long> lut_eg_et;
119 getLut(lut_eg_et, scale1, precisions[
"PRECISION-EG-MU-MassPt"]);
121 scale1 = &scaleMap.find(
"MU-ET")->second;
122 std::vector<long long> lut_mu_et;
123 getLut(lut_mu_et, scale1, precisions[
"PRECISION-EG-MU-MassPt"]);
124 for (
size_t ii = 0;
ii < lut_mu_et.size();
ii++) {
129 for (std::map<std::string, L1TUtmAlgorithm>::const_iterator cit = algoMap.begin(); cit != algoMap.end(); cit++) {
133 std::cout <<
"algo exp. in cond. = " <<
algo.getExpressionInCondition() <<
"\n";
135 const std::vector<std::string>& rpn_vec =
algo.getRpnVector();
136 for (
size_t ii = 0;
ii < rpn_vec.size();
ii++) {
138 if (Algorithm::isGate(
token))
143 const std::vector<L1TUtmCut>&
cuts = condition.
getCuts();
147 std::cout <<
" cut target = " <<
cut.getObjectType() <<
"\n";
148 std::cout <<
" cut type = " <<
cut.getCutType() <<
"\n";
149 std::cout <<
" cut min. value index = " <<
cut.getMinimum().value <<
" " <<
cut.getMinimum().index <<
"\n";
150 std::cout <<
" cut max. value index = " <<
cut.getMaximum().value <<
" " <<
cut.getMaximum().index <<
"\n";
157 std::cout <<
" obj name = " <<
object.getName() <<
"\n";
158 std::cout <<
" obj type = " <<
object.getType() <<
"\n";
159 std::cout <<
" obj op = " <<
object.getComparisonOperator() <<
"\n";
160 std::cout <<
" obj bx = " <<
object.getBxOffset() <<
"\n";
161 if (
object.getType() == esObjectType::EXT) {
162 std::cout <<
" ext name = " <<
object.getExternalSignalName() <<
"\n";
163 std::cout <<
" ext ch id = " <<
object.getExternalChannelId() <<
"\n";
166 const std::vector<L1TUtmCut>&
cuts =
object.getCuts();
170 std::cout <<
" cut target = " <<
cut.getObjectType() <<
"\n";
171 std::cout <<
" cut type = " <<
cut.getCutType() <<
"\n";
172 std::cout <<
" cut min. value index = " <<
cut.getMinimum().value <<
" " <<
cut.getMinimum().index
174 std::cout <<
" cut max. value index = " <<
cut.getMaximum().value <<
" " <<
cut.getMaximum().index
const int getType() const
const std::vector< L1TUtmObject > & getObjects() const
const std::vector< L1TUtmCut > & getCuts() const