|
ATLAS Offline Software
|
Go to the documentation of this file.
35 return StatusCode::FAILURE;
45 unsigned int tool_count = 0;
47 for (; itT != itTE; ++itT) {
48 if (itT->retrieve().isFailure()) {
58 if (tool_count == 0) {
60 return StatusCode::FAILURE;
66 return StatusCode::SUCCESS;
73 return StatusCode::SUCCESS;
84 auto pContainer = std::make_unique<xAOD::DiTauJetContainer>();
85 auto pAuxContainer = std::make_unique<xAOD::DiTauJetAuxContainer>();
86 pContainer->setStore(pAuxContainer.get());
92 rDiTauData.
seed =
nullptr;
101 std::move (pAuxContainer)) );
109 for (
const auto* seed: *pSeedContainer) {
110 ATH_MSG_DEBUG(
"Seed pt: "<< seed->pt() <<
" eta: "<< seed->eta());
113 if (std::abs(seed->pt()) <
m_minPt)
continue;
114 if (std::abs(seed->eta()) >
m_maxEta)
continue;
117 rDiTauData.
seed = seed;
126 sc =
tool->execute(&rDiTauData, ctx);
127 if (
sc.isFailure())
break;
130 if (
sc.isSuccess()) {
131 ATH_MSG_DEBUG(
"all tools executed successfully. Di-Tau candidate registered.");
134 ATH_MSG_DEBUG(
"seed failed a di-tau criterion. Thrown away.");
145 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
const xAOD::JetContainer * seedContainer
virtual StatusCode execute(const EventContext &) const override
SG::ReadHandleKey< xAOD::JetContainer > m_seedJetName
xAOD::DiTauJetAuxContainer * diTauAuxContainer
DiTauJet_v1 DiTauJet
Definition of the current version.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandleArray< DiTauToolBase > m_tools
virtual StatusCode initialize() override
const T * get(size_type n) const
Access an element, as an rvalue.
xAOD::DiTauJet * xAODDiTau
SG::WriteHandleKey< xAOD::DiTauJetContainer > m_diTauContainerName
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
xAOD::DiTauJetContainer * xAODDiTauContainer
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual StatusCode finalize() override
#define ATH_MSG_WARNING(x)
void pop_back()
Remove the last element from the collection.
DiTauBuilder(const std::string &name, ISvcLocator *pSvcLocator)