16 base_class(
type, name, parent) {
26 return StatusCode::SUCCESS;
37 CHECK(h_towerTOBs.isValid());
38 const auto & towers = *h_towerTOBs;
39 const unsigned int inTopoTowersN = towers.size();
40 ATH_MSG_DEBUG(
"Reading " << inTopoTowersN <<
" cell towers as GenericTobs");
43 std::vector<WTATrigObj> input_towers;
44 for(
unsigned int i = 0; i < inTopoTowersN; i++){
48 input_towers.push_back(this_tower);
52 std::unique_ptr<WTAConeMaker> MyWTAConeMaker = std::make_unique<WTACone2PassMaker>();
58 MyWTAConeMaker->m_WTAConeMakerParameter = MyWTAParameters;
64 std::vector<WTAJet> WTAJetList = wta_parallel_helper.
GetAllJets();
67 auto jets = std::make_unique<IOBitwise::CommonTOBContainer>();
69 for(
const auto&
WTAJet: WTAJetList){
73 jets->emplace_back(
new IOBitwise::CommonTOB(std::bitset<IOBitwise::CommonTOB::s_et_width>(energyBits),
74 std::bitset<IOBitwise::CommonTOB::s_eta_width>(etaBits),
75 std::bitset<IOBitwise::CommonTOB::s_phi_width>(phiBits)));
77 ATH_MSG_DEBUG(
"Returning Jet: " << jets->back()->to_string());
80 ATH_MSG_DEBUG(
"Built " << jets->size() <<
" WTAConeJets and stored them as GenericTobs");
82 CHECK(h_Jet1TOBs.record(std::move(jets)));
85 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
static constexpr std::size_t s_eta_width
Size of the eta bitset.
virtual std::bitset< s_et_width > et_bits() const
static constexpr std::size_t s_et_width
Size of the eT bitset.
virtual std::bitset< s_eta_width > eta_bits() const
virtual std::bitset< s_phi_width > phi_bits() const
static constexpr std::size_t s_phi_width
Size of the phi bitset.
std::vector< WTAJet > GetAllJets()
void RunParallelWTA(std::unique_ptr< WTAClassType > &AnyWTAClass)
void CreateBlocks(const std::vector< WTATrigObj > &all_towers)
void SetBlockN(unsigned int block_n)
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())