|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "CLHEP/Units/SystemOfUnits.h"
24 m_NewKey(
"MyNewContainer"),
25 m_ContainerKey(
"ElectronCollection"),
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);
94 ATH_MSG_DEBUG (
"record new ElectronContainer : size=" << newCon->size() );
96 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
MySelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
AthPyEx::MyTool * m_myTool
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_ContainerKey
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
bool isAccepted(const Analysis::Electron &e)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.