5 #ifndef PYANALYSISCORE_PYDATAHEADER_H
6 #define PYANALYSISCORE_PYDATAHEADER_H
16 #include "GaudiKernel/Bootstrap.h"
17 #include "GaudiKernel/ISvcLocator.h"
18 #include "GaudiKernel/MsgStream.h"
19 #include "GaudiKernel/ServiceHandle.h"
20 #include "GaudiKernel/SmartIF.h"
33 SmartIF<StoreGateSvc> pSvc{ Gaudi::svcLocator()->service(
"StoreGateSvc") };
35 log << MSG::ERROR <<
"could not get StoreGateSvc" <<
endmsg;
42 if (
sc.isFailure() ||
beg==ending)
43 log << MSG::ERROR <<
"could not get DataHeader" <<
endmsg;
47 for (;
beg != ending; ++
beg)
50 std::vector<DataHeaderElement>::const_iterator
it =
dh.begin();
51 for (;
it !=
dh.end(); ++
it)
58 log << MSG::ERROR <<
"could not get ClassIDSvc" <<
endmsg;
75 for (
CLID clid : (*it)->getClassIDs())
78 std::string localName;
83 log << MSG::ERROR <<
"could not get TypeName for " << clid <<
endmsg;
88 ((localName !=
"ParticleBaseContainer") &&
89 (localName !=
"IParticleContainer") &&
90 (localName !=
"INavigable4MomentumCollection")))
102 return (*it)->getKey();