27 return StatusCode::FAILURE;
32 ATH_MSG_ERROR(
"At least one trigger needs to be provided in the list");
33 return StatusCode::FAILURE;
43 if (signatures.size() != 1)
45 ATH_MSG_ERROR(
"The decoration-based TrigMatchingAlg only supports single-legged triggers. " << chain <<
" has " << signatures.size() <<
" legs.");
46 return StatusCode::FAILURE;
48 const float dR = (signatures.front() ==
"tau" ? 0.2 : 0.1);
59 return StatusCode::SUCCESS;
76 ATH_MSG_DEBUG(
"-- Considering offline eta:" << particle->eta() <<
" phi:" << particle->phi() <<
" (pT:" << particle->pt() <<
")");
80 mc.decorator(*particle) =
match;
86 ATH_MSG_DEBUG(
"Applying dummy match=0 decoration for " << dc.chain);
87 dc.decorator(*particle) = 0;
91 return StatusCode::SUCCESS;
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
input particle collection
std::vector< DummyChain > m_dummyChains
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingListDummy
list of triggers for dummy matching decorations
virtual StatusCode initialize() final override
std::vector< MatchingChain > m_matchingChains
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
SysListHandle m_systematicsList
the systematics list we run
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingList
list of triggers
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
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::string sanitizeTriggerChainName(std::string chain)
convert a trigger chain name into a string usable in decoration/branch names (.
std::vector< std::string > signatures(const std::string &chain)
This module defines the arguments passed from the BATCH driver to the BATCH worker.
SG::Decorator< T, ALLOC > Decorator
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
per-chain dummy matching decorations, built in initialize()
per-chain matching configuration, built in initialize()