HepMC3 event record library
|
Class for storing data for LHEF run information. More...
#include <LHEFAttributes.h>
Public Member Functions | |
HEPRUPAttribute () | |
Default constructor. More... | |
HEPRUPAttribute (std::string s) | |
Constructor from string. More... | |
virtual | ~HEPRUPAttribute () |
Virtual destructor. More... | |
virtual bool | from_string (const std::string &att) override |
Fill class content from string. More... | |
virtual bool | to_string (std::string &att) const override |
Fill string from class content. More... | |
void | clear () |
Clear this object. More... | |
virtual bool | init () |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
bool | is_parsed () const |
Check if this attribute is parsed. More... | |
const std::string & | unparsed_string () const |
Get unparsed string. More... | |
const GenEvent * | event () const |
GenParticlePtr | particle () |
ConstGenParticlePtr | particle () const |
GenVertexPtr | vertex () |
ConstGenVertexPtr | vertex () const |
Data Fields | |
LHEF::HEPRUP | heprup |
The actual HEPRUP object. More... | |
std::vector< LHEF::XMLTag * > | tags |
The parsed XML-tags. More... | |
Protected Member Functions | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const std::string &st) |
Set unparsed string. More... | |
Class for storing data for LHEF run information.
Definition at line 26 of file LHEFAttributes.h.
|
inline |
Default constructor.
Definition at line 31 of file LHEFAttributes.h.
|
inline |
Constructor from string.
Definition at line 34 of file LHEFAttributes.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 37 of file LHEFAttributes.h.
References HEPRUPAttribute::clear().
void clear | ( | ) |
Clear this object.
Definition at line 17 of file LHEFAttributes.cc.
References HEPRUP::clear(), HEPRUPAttribute::heprup, and HEPRUPAttribute::tags.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 109 of file Attribute.h.
References Attribute::m_event.
|
overridevirtual |
Fill class content from string.
Implements Attribute.
Definition at line 23 of file LHEFAttributes.cc.
References HEPRUPAttribute::clear(), XMLTag::findXMLTags(), HEPRUPAttribute::heprup, and HEPRUPAttribute::tags.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Reimplemented in HEPEUPAttribute.
Definition at line 82 of file Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute.
Definition at line 91 of file Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 103 of file Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 114 of file Attribute.h.
References Attribute::m_particle.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 119 of file Attribute.h.
References Attribute::m_particle.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
overridevirtual |
Fill string from class content.
Implements Attribute.
Definition at line 35 of file LHEFAttributes.cc.
References HEPRUPAttribute::heprup, HEPRUP::NPRUP, HEPRUP::print(), and HEPRUPAttribute::tags.
|
inlineinherited |
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 124 of file Attribute.h.
References Attribute::m_vertex.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 129 of file Attribute.h.
References Attribute::m_vertex.
LHEF::HEPRUP heprup |
The actual HEPRUP object.
Definition at line 57 of file LHEFAttributes.h.
std::vector<LHEF::XMLTag*> tags |