28 return StatusCode::FAILURE;
33 ATH_MSG_ERROR(
"At least one trigger needs to be provided in the list");
34 return StatusCode::FAILURE;
54 return StatusCode::SUCCESS;
70 if (particles !=
nullptr)
74 ATH_MSG_DEBUG(
"-- Considering offline eta:" << particle->eta() <<
" phi:" << particle->phi() <<
" (pT:" << particle->pt() <<
")");
79 if (signatures.size() != 1) {
80 ANA_MSG_ERROR(
"The decoration-based TrigMatchingAlg only supports single-legged triggers." << chain <<
" has " << signatures.size() <<
" legs.");
81 return StatusCode::FAILURE;
84 const float dR = (signatures.at(0) ==
"tau" ? 0.2 : 0.1);
92 ATH_MSG_DEBUG(
"Applying dummy match=0 decoration for " << chain);
98 return StatusCode::SUCCESS;
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
input particle collection
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingListDummy
list of triggers for dummy matching decorations
virtual StatusCode initialize() final override
virtual StatusCode execute() final override
TrigMatchingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
ToolHandle< Trig::IMatchingTool > m_trigMatchingTool
trigger decision tool handle
Gaudi::Property< std::string > m_matchingDecoration
the decoration for trigger matching
SysReadSelectionHandle m_particleSelection
input particle selection
SysListHandle m_systematicsList
the systematics list we run
std::unordered_map< std::string, SG::Decorator< char > > m_matchingDecorators
the decorators for m_matchingDecoration and triggers combination
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingList
list of triggers
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Class providing the definition of the 4-vector interface.
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Select isolated Photons, Electrons and Muons.
std::vector< std::string > signatures(const std::string &chain)
This module defines the arguments passed from the BATCH driver to the BATCH worker.
std::string substitute(const std::string &str, const std::string &pattern, const std::string &with)
effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substitu...
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.