|
ATLAS Offline Software
|
Go to the documentation of this file.
18 EL::AnaAlgorithm(
name, pSvcLocator)
37 std::map<std::string, std::size_t>
info;
40 info[legInfo.signature] += legInfo.multiplicity;
53 return StatusCode::FAILURE;
56 return StatusCode::SUCCESS;
63 std::map<std::string, const xAOD::IParticleContainer *> offlineInputs;
72 return StatusCode::FAILURE;
74 offlineInputs[
p.first] =
handle.cptr();
79 const std::string &
chain = chainPair.first;
87 std::vector<TrigCompositeUtils::KFromNItr> idxItrs;
88 std::vector<const xAOD::IParticleContainer *>
containers;
89 for (
const auto &sigPair : chainPair.second)
91 containers.push_back(offlineInputs.at(sigPair.first));
92 idxItrs.emplace_back(sigPair.second,
containers.back()->size());
95 idxItrs, std::vector<TrigCompositeUtils::KFromNItr>(idxItrs.size()));
99 std::vector<const xAOD::IParticle *>
particles;
102 idxItr->at(
idx)->begin(), idxItr->at(
idx)->end(), std::back_inserter(
particles),
103 [container=
containers.at(
idx)] (std::size_t contIdx) { return container->at(contIdx); });
113 return StatusCode::SUCCESS;
121 ATH_MSG_INFO(
"Chain " <<
p.first <<
" had " <<
p.second.nEventsPassed <<
" passed events of which " <<
p.second.nEventsMatched <<
" were matched");
122 return StatusCode::SUCCESS;
std::map< std::string, std::map< std::string, std::size_t > > m_chainInfos
The common trigger namespace for trigger analysis tools.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::map< std::string, SG::ReadHandleKey< xAOD::IParticleContainer > > m_offlineKeys
std::map< std::string, MatchData > m_chainData
Helper class that provides access to information about individual legs.
Gaudi::Property< std::vector< std::string > > m_chains
TrigMatchTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< Trig::TrigDecisionTool > m_tdt
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
void handle(const Incident &inc)
receive the given incident
containers
Associate the close-by pflow objects and the calorimeter clusters.
::StatusCode StatusCode
StatusCode definition for legacy code.
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
ToolHandle< Trig::IMatchingTool > m_matchingTool
This module defines the arguments passed from the BATCH driver to the BATCH worker.
virtual StatusCode initialize() override
bool exhausted() const
True if this iterator is past the end.
Struct containing information on each leg of a chain.
virtual StatusCode execute() override
virtual StatusCode finalize() override
#define ATH_MSG_WARNING(x)