#include <jXEInputAlgTool.h>
Definition at line 24 of file jXEInputAlgTool.h.
◆ jXEInputAlgTool()
GlobalSim::jXEInputAlgTool::jXEInputAlgTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~jXEInputAlgTool()
virtual GlobalSim::jXEInputAlgTool::~jXEInputAlgTool |
( |
| ) |
|
|
virtualdefault |
◆ initialize()
StatusCode GlobalSim::jXEInputAlgTool::initialize |
( |
| ) |
|
|
override |
◆ run()
StatusCode GlobalSim::jXEInputAlgTool::run |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 29 of file jXEInputAlgTool.cxx.
34 CHECK(jXEContainer.isValid());
36 auto jXEs = std::make_unique<GlobalSim::jXETOBArray>(
"InputjJets", 1);
39 int global_ExTopo = 0;
40 int global_EyTopo = 0;
47 int jFexNumber = jFexRoI->jFexNumber();
48 int fpgaNumber = jFexRoI->fpgaNumber();
51 int hemisphere = fpgaNumber == 0 ? -1 : 1;
53 ExTopo = hemisphere * ExTopo;
54 EyTopo = hemisphere * EyTopo;
56 global_ExTopo += ExTopo;
57 global_EyTopo += EyTopo;
70 unsigned long long global_ExTopoLong =
71 static_cast<unsigned long long>(global_ExTopo);
73 unsigned long long global_EyTopoLong =
74 static_cast<unsigned long long>(global_EyTopo);
76 unsigned long long Et2Topo =
77 global_ExTopoLong*global_ExTopoLong + global_EyTopoLong*global_EyTopoLong;
79 unsigned int EtTopo = std::sqrt(Et2Topo);
92 CHECK(h_write.record(std::move(jXEs)));
105 return StatusCode::SUCCESS;
◆ toString()
std::string GlobalSim::jXEInputAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_jFexMETRoIKey
Initial value:{this,
"jFexMETRoIKey", "L1_jFexMETRoI", "jFEX TE EDM"}
Definition at line 44 of file jXEInputAlgTool.h.
◆ m_jXETOBArrayWriteKey
Initial value:{this, "TOBArrayWriteKey", "",
"key to write out an jXETOBArray"}
Definition at line 48 of file jXEInputAlgTool.h.
◆ m_monTool
Initial value:{
this, "monTool", "", "Monitoring tool to create histograms"}
Definition at line 55 of file jXEInputAlgTool.h.
◆ s_Et_conversion
constexpr int GlobalSim::jXEInputAlgTool::s_Et_conversion {2} |
|
staticconstexprprivate |
◆ s_EtDouble_conversion
constexpr double GlobalSim::jXEInputAlgTool::s_EtDouble_conversion {0.1} |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: