16 base_class(
type, name, parent) {
26 return StatusCode::SUCCESS;
32 const EventContext& ctx)
const {
35 if (dc){dc->collect(*
this,
"start");}
40 CHECK(h_towerTOBs.isValid());
41 const auto & towers = *h_towerTOBs;
42 const unsigned int inTopoTowersN = towers.size();
43 ATH_MSG_DEBUG(
"Reading " << inTopoTowersN <<
" cell towers as GenericTobs");
46 std::vector<WTATrigObj> input_towers;
47 for(
unsigned int i = 0; i < inTopoTowersN; i++){
51 input_towers.push_back(this_tower);
55 std::unique_ptr<WTAConeMaker> MyWTAConeMaker = std::make_unique<WTACone2PassMaker>();
61 MyWTAConeMaker->m_WTAConeMakerParameter = MyWTAParameters;
67 std::vector<WTAJet> WTAJetList = wta_parallel_helper.
GetAllJets();
70 auto jets = std::make_unique<IOBitwise::CommonTOBContainer>();
72 for(
const auto&
WTAJet: WTAJetList){
76 jets->emplace_back(
new IOBitwise::CommonTOB(std::bitset<IOBitwise::CommonTOB::s_et_width>(energyBits),
77 std::bitset<IOBitwise::CommonTOB::s_eta_width>(etaBits),
78 std::bitset<IOBitwise::CommonTOB::s_phi_width>(phiBits)));
80 ATH_MSG_DEBUG(
"Returning Jet: " << jets->back()->to_string());
83 ATH_MSG_DEBUG(
"Built " << jets->size() <<
" WTAConeJets and stored them as GenericTobs");
85 CHECK(h_Jet1TOBs.record(std::move(jets)));
87 if (dc){dc->collect(*
this,
"end");}
89 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 BDT Algorithm.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())