12#include "CLHEP/Units/SystemOfUnits.h"
46 IAlgTool *tmp_myTool =
nullptr;
47 ATH_CHECK( toolSvc()->retrieveTool(
"AthPyEx::MyTool",tmp_myTool) );
52 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
65 return StatusCode::SUCCESS;
87 auto newCon = std::make_unique<ConstDataVector<ElectronContainer> >(
SG::VIEW_ELEMENTS);
92 if (
m_cut->isAccepted(**it)) newCon->push_back(*it);
94 ATH_MSG_DEBUG (
"record new ElectronContainer : size=" << newCon->size() );
96 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector adapter that acts like it holds const pointers.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
MySelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
AthPyEx::MyTool * m_myTool
std::string m_ContainerKey
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
Class to define the ElectronContainer.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts