|
ATLAS Offline Software
|
Go to the documentation of this file.
26 auto particles = std::make_unique< xAOD::IParticleContainer >();
31 if(
getName( particlesPtr ) !=
"" ) {
32 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getName "
34 return StatusCode::FAILURE;
36 if(
getKey( particlesPtr ) != 0 ) {
37 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getKey "
39 return StatusCode::FAILURE;
43 static const std::string PARTICLES_NAME =
"AsgTestIParticles";
48 #ifdef XAOD_STANDALONE
50 evtStore()->event()->getHash( PARTICLES_NAME );
52 static const CLID IPARTICLE_CLID =
55 evtStore()->stringToKey( PARTICLES_NAME, IPARTICLE_CLID );
56 #endif // XAOD_STANDALONE
60 if(
getName( particlesPtr ) != PARTICLES_NAME ) {
61 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getName "
63 return StatusCode::FAILURE;
65 if(
getKey( particlesPtr ) != particlesKey ) {
66 ATH_MSG_ERROR(
"There is a problem with the asg::AsgTool::getKey "
68 return StatusCode::FAILURE;
72 return StatusCode::SUCCESS;
static const CLID & ID()
the CLID of T
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
uint32_t CLID
The Class ID type.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
File providing the different SG_BASE macros.