20 const int gFexInputProvider::m_EtJet_conversion = 2;
21 const double gFexInputProvider::m_EtGlobal_conversion = 0.01;
22 const int gFexInputProvider::m_phi_conversion = 1;
23 const int gFexInputProvider::m_eta_conversion = 40;
25 const double gFexInputProvider::m_EtDoubleJet_conversion = 0.1;
26 const double gFexInputProvider::m_EtDoubleGlobal_conversion = 0.1;
27 const double gFexInputProvider::m_phiDouble_conversion = 0.05;
28 const double gFexInputProvider::m_etaDouble_conversion = 0.025;
31 gFexInputProvider::gFexInputProvider(
const std::string&
type,
const std::string&
name,
32 const IInterface*
parent) :
35 declareInterface<LVL1::IInputTOBConverter>(
this );
54 return StatusCode::SUCCESS;
62 return StatusCode::SUCCESS;
70 auto jetType = gFexRoI->gFexType();
74 << gFexRoI->gFexType()
78 << gFexRoI->gFexTobEt()
84 << gFexRoI->iPhiTopo()
105 return StatusCode::SUCCESS;
115 return StatusCode::SUCCESS;
123 auto jetType = gFexRoI->gFexType();
124 if (
jetType != 3 ) {
continue; }
127 << gFexRoI->gFexType()
131 << gFexRoI->gFexTobEt()
137 << gFexRoI->iPhiTopo()
158 return StatusCode::SUCCESS;
168 return StatusCode::SUCCESS;
176 auto globalType = gFexRoI->globalType();
177 if ( globalType != 2 ) {
continue; }
180 << gFexRoI->globalType()
182 << gFexRoI->METquantityOne()
184 << gFexRoI->METquantityTwo()
190 unsigned long long ExTopoLong =
static_cast<unsigned long long>(ExTopo);
191 unsigned long long EyTopoLong =
static_cast<unsigned long long>(EyTopo);
193 unsigned long long Et2Topo = ExTopoLong*ExTopoLong + EyTopoLong*EyTopoLong;
194 unsigned int EtTopo = std::sqrt(Et2Topo);
210 return StatusCode::SUCCESS;
220 return StatusCode::SUCCESS;
228 auto globalType = gFexRoI->globalType();
229 if ( globalType != 3 ) {
continue; }
232 << gFexRoI->globalType()
234 << gFexRoI->METquantityOne()
236 << gFexRoI->METquantityTwo()
242 unsigned long long ExTopoLong =
static_cast<unsigned long long>(ExTopo);
243 unsigned long long EyTopoLong =
static_cast<unsigned long long>(EyTopo);
245 unsigned long long Et2Topo = ExTopoLong*ExTopoLong + EyTopoLong*EyTopoLong;
246 unsigned int EtTopo = std::sqrt(Et2Topo);
262 return StatusCode::SUCCESS;
272 return StatusCode::SUCCESS;
281 << gFexRoI->globalType()
283 << gFexRoI->METquantityOne()
285 << gFexRoI->METquantityTwo()
292 unsigned long long ExTopoLong =
static_cast<unsigned long long>(ExTopo);
293 unsigned long long EyTopoLong =
static_cast<unsigned long long>(EyTopo);
295 unsigned long long Et2Topo = ExTopoLong*ExTopoLong + EyTopoLong*EyTopoLong;
296 unsigned int EtTopo = std::sqrt(Et2Topo);
311 return StatusCode::SUCCESS;
321 return StatusCode::SUCCESS;
330 << gFexRoI->globalType()
332 << gFexRoI->METquantityOne()
334 << gFexRoI->METquantityTwo()
340 unsigned long long ExTopoLong =
static_cast<unsigned long long>(ExTopo);
341 unsigned long long EyTopoLong =
static_cast<unsigned long long>(EyTopo);
343 unsigned long long Et2Topo = ExTopoLong*ExTopoLong + EyTopoLong*EyTopoLong;
344 unsigned int EtTopo = std::sqrt(Et2Topo);
359 return StatusCode::SUCCESS;
369 return StatusCode::SUCCESS;
377 auto globalType = gFexRoI->globalType();
378 if ( globalType != 1 ) {
continue; }
381 << gFexRoI->globalType()
383 << gFexRoI->METquantityTwo()
398 return StatusCode::SUCCESS;
414 return StatusCode::SUCCESS;