A wrapper for DataHeader.
More...
#include <PyDataHeader.h>
A wrapper for DataHeader.
- Author
- Tadashi Maeno
Definition at line 25 of file PyDataHeader.h.
◆ PyDataHeader()
| PyDataHeader::PyDataHeader |
( |
| ) |
|
|
inline |
Definition at line 28 of file PyDataHeader.h.
29 {
31
32
33 SmartIF<StoreGateSvc> pSvc{ Gaudi::svcLocator()->service("StoreGateSvc") };
34 if (!pSvc)
35 log << MSG::ERROR <<
"could not get StoreGateSvc" <<
endmsg;
36 else
37 {
38
39 SG::ConstIterator<DataHeader>
beg;
40 SG::ConstIterator<DataHeader> ending;
42 if (
sc.isFailure() || beg==ending)
43 log << MSG::ERROR <<
"could not get DataHeader" <<
endmsg;
44 else
45 {
46
47 for (;
beg != ending; ++
beg)
48 {
49 const DataHeader &
dh = *
beg;
50 std::vector<DataHeaderElement>::const_iterator
it =
dh.begin();
51 for (;
it !=
dh.end(); ++
it)
53 }
54 }
55 }
56
58 log << MSG::ERROR <<
"could not get ClassIDSvc" <<
endmsg;
59 }
IMessageSvc * getMessageSvc(bool quiet=false)
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ ~PyDataHeader()
| virtual PyDataHeader::~PyDataHeader |
( |
| ) |
|
|
inlinevirtual |
◆ getKey()
| std::string PyDataHeader::getKey |
( |
int | index | ) |
|
|
inline |
get key of Nth element
Definition at line 97 of file PyDataHeader.h.
98 {
99 if (index >=
size())
return "";
102 return (*it)->getKey();
103 }
◆ getName()
| std::string PyDataHeader::getName |
( |
int | index | ) |
|
|
inline |
get class name of Nth element
Definition at line 67 of file PyDataHeader.h.
68 {
69 if (index >=
size())
return "";
72
73
75 for (
CLID clid : (*it)->getClassIDs())
76 {
77
78 std::string localName;
81 {
83 log << MSG::ERROR <<
"could not get TypeName for " << clid <<
endmsg;
84 return "";
85 }
86
87 if ((name == "") ||
88 ((localName != "ParticleBaseContainer") &&
89 (localName != "IParticleContainer") &&
90 (localName != "INavigable4MomentumCollection")))
92 }
94 }
uint32_t CLID
The Class ID type.
◆ size()
| int PyDataHeader::size |
( |
| ) |
|
|
inline |
◆ m_classIDSvc
| ServiceHandle<IClassIDSvc> PyDataHeader::m_classIDSvc {"ClassIDSvc", "PyDataHeader"} |
|
private |
class ID service
Definition at line 110 of file PyDataHeader.h.
110{"ClassIDSvc", "PyDataHeader"};
◆ m_DataHeaderElementV
The documentation for this class was generated from the following file: