![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
45 return StatusCode::FAILURE;
55 unsigned int tool_count = 0;
57 for (; itT != itTE; ++itT) {
58 if (itT->retrieve().isFailure()) {
68 if (tool_count == 0) {
70 return StatusCode::FAILURE;
76 return StatusCode::SUCCESS;
83 return StatusCode::SUCCESS;
94 auto pContainer = std::make_unique<xAOD::DiTauJetContainer>();
95 auto pAuxContainer = std::make_unique<xAOD::DiTauJetAuxContainer>();
96 pContainer->setStore(pAuxContainer.get());
102 rDiTauData.
seed =
nullptr;
111 std::move (pAuxContainer)) );
119 for (
const auto* seed: *pSeedContainer) {
120 ATH_MSG_DEBUG(
"Seed pt: "<< seed->pt() <<
" eta: "<< seed->eta());
123 if (std::abs(seed->pt()) <
m_minPt)
continue;
124 if (std::abs(seed->eta()) >
m_maxEta)
continue;
127 rDiTauData.
seed = seed;
136 sc =
tool->execute(&rDiTauData, ctx);
137 if (
sc.isFailure())
break;
140 if (
sc.isSuccess()) {
141 ATH_MSG_DEBUG(
"all tools executed successfully. Di-Tau candidate registered.");
144 ATH_MSG_DEBUG(
"seed failed a di-tau criterion. Thrown away.");
155 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.
Handle class for recording to StoreGate.
::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.
Handle class for reading from StoreGate.
DiTauBuilder(const std::string &name, ISvcLocator *pSvcLocator)