18 for (
int i = 0, N =
tags.size(); i < N; ++i )
delete tags[i];
27 for (
int i = 0, N =
tags.size(); i < N; ++i )
28 if (
tags[i]->name ==
"init" ) {
36 std::ostringstream os;
38 for (
int i = 0, N =
tags.size(); i < N; ++i )
45 for (
int i = 0, N =
tags.size(); i < N; ++i )
delete tags[i];
53 for (
int i = 0, N =
tags.size(); i < N; ++i )
54 if (
tags[i]->name ==
"event" ||
tags[i]->name ==
"eventgroup")
60 std::ostringstream os;
62 for (
int i = 0, N =
tags.size(); i < N; ++i )
64 (
tags[i]->name !=
"event" &&
tags[i]->name !=
"eventgroup" ) )
71 shared_ptr<HEPRUPAttribute> hepr =
74 for (
int i = 0, N =
tags.size(); i < N; ++i )
75 if (
tags[i]->name ==
"event" ||
tags[i]->name ==
"eventgroup" ) {
Definition of class GenEvent.
Definition of class HEPRUPAttribute and class HEPEUAttribute.
const GenEvent * event() const
shared_ptr< T > attribute(const string &name, const int &id=0) const
Get attribute of type T.
virtual bool to_string(string &att) const
Fill string from class content.
virtual bool from_string(const string &att)
Fill class content from string.
LHEF::HEPEUP hepeup
The actual HEPEUP object.
void clear()
Clear this object.
std::vector< LHEF::XMLTag * > tags
The parsed XML-tags.
virtual bool init()
Parse the XML-tags.
Class for storing data for LHEF run information.
virtual bool to_string(string &att) const
Fill string from class content.
virtual bool from_string(const string &att)
Fill class content from string.
void clear()
Clear this object.
LHEF::HEPRUP heprup
The actual HEPRUP object.
std::vector< LHEF::XMLTag * > tags
The parsed XML-tags.
void print(std::ostream &file) const
void print(std::ostream &file) const
Les Houches event file classes.
static std::vector< XMLTag * > findXMLTags(std::string str, std::string *leftover=0)