30 return StatusCode::SUCCESS;
36 auto particles = std::make_unique< xAOD::IParticleContainer >();
41 if(
getName( particlesPtr ) !=
"" ) {
42 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getName "
44 return StatusCode::FAILURE;
46 if(
getKey( particlesPtr ) != 0 ) {
47 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getKey "
49 return StatusCode::FAILURE;
62 static const CLID IPARTICLE_CLID =
71 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getName "
73 return StatusCode::FAILURE;
75 if(
getKey( particlesPtr ) != particlesKey ) {
76 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getKey "
78 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
File providing the different SG_BASE macros.
uint32_t CLID
The Class ID type.
ServiceHandle< StoreGateSvc > & evtStore()
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.