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"
32 StatusCode sc = Gaudi::svcLocator()->service(
"StoreGateSvc", pSvc);
34 log << MSG::ERROR <<
"could not get StoreGateSvc" <<
endmsg;
41 if (
sc.isFailure() ||
beg==ending)
42 log << MSG::ERROR <<
"could not get DataHeader" <<
endmsg;
46 for (;
beg != ending; ++
beg)
49 std::vector<DataHeaderElement>::const_iterator
it =
dh.begin();
50 for (;
it !=
dh.end(); ++
it)
59 log << MSG::ERROR <<
"could not get ClassIDSvc" <<
endmsg;
76 for (
CLID clid : (*it)->getClassIDs())
79 std::string localName;
84 log << MSG::ERROR <<
"could not get TypeName for " << clid <<
endmsg;
89 ((localName !=
"ParticleBaseContainer") &&
90 (localName !=
"IParticleContainer") &&
91 (localName !=
"INavigable4MomentumCollection")))
103 return (*it)->getKey();