|
ATLAS Offline Software
|
Go to the documentation of this file.
23 return StatusCode::SUCCESS;
27 std::vector<std::vector<const xAOD::IParticle *>> &
combinations,
28 const std::string &
chain,
32 using VecLinkInfo_t = std::vector<IPartLinkInfo_t>;
43 <<
" is empty! This means that no matching chains were found!");
44 return StatusCode::FAILURE;
50 if (!
m_tdt->isPassed(
name, rerun ? TrigDefs::Physics | TrigDefs::allowResurrectedDecision : TrigDefs::Physics))
60 features.begin(), features.end(),
65 if (m_warnedChains.insert(
name).second)
75 m_tdt->ExperimentalAndExpertMethods().getChainConfigurationDetails(
name),
78 for (
const VecLinkInfo_t &combo : trigCombinations)
80 std::vector<const xAOD::IParticle *> comboOut;
81 comboOut.reserve(combo.size());
82 for (
const IPartLinkInfo_t &
info : combo)
83 comboOut.push_back(*
info.link);
87 return StatusCode::SUCCESS;
R3IParticleRetrievalTool(const std::string &name)
Standard constructor.
Combinations buildCombinations(const std::string &chainName, const std::vector< LinkInfo< xAOD::IParticleContainer >> &features, const std::vector< std::size_t > &legMultiplicities, const std::function< bool(const std::vector< LinkInfo< xAOD::IParticleContainer >> &)> &filter)
Produce the combinations for a set of features.
virtual ~R3IParticleRetrievalTool() override
Destructor.
The common trigger namespace for trigger analysis tools.
ToolHandle< Trig::TrigDecisionTool > m_tdt
The TrigDecisionTool that will be used to get the navigation.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ UniqueObjects
Do not allow any repeated objects.
std::mutex m_warnedChainsMutex
mutex to protect that set
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode retrieveParticles(std::vector< std::vector< const xAOD::IParticle * >> &combinations, const std::string &chain, bool rerun=false) const override
Retrieve the particles that caused this trigger to fire.
def combinations(items, n)
#define ATH_MSG_WARNING(x)
std::vector< std::string > getListOfTriggers() const
virtual StatusCode initialize() override
Initialise the tool.