HepMC3 event record library
|
Class for storing data for LHEF run information.
Definition at line 68 of file LHEFAttributes.h.
#include <LHEFAttributes.h>
Public Member Functions | |
HEPEUPAttribute () | |
Default constructor. | |
HEPEUPAttribute (std::string s) | |
Constructor from string. | |
virtual | ~HEPEUPAttribute () |
Virtual destructor. | |
virtual bool | from_string (const std::string &att) override |
Fill class content from string. | |
virtual bool | init () override |
Parse the XML-tags. | |
virtual bool | init (const GenRunInfo &) override |
Dummy function. | |
virtual bool | to_string (std::string &att) const override |
Fill string from class content. | |
FourVector | momentum (int i) const |
Get momentum. | |
void | clear () |
Clear this object. | |
bool | is_parsed () const |
Check if this attribute is parsed. | |
const std::string & | unparsed_string () const |
Get unparsed string. | |
const GenEvent * | event () const |
GenParticlePtr | particle () |
ConstGenParticlePtr | particle () const |
GenVertexPtr | vertex () |
ConstGenVertexPtr | vertex () const |
Data Fields | |
LHEF::HEPEUP | hepeup |
The actual HEPEUP object. | |
std::vector< LHEF::XMLTag * > | tags |
The parsed XML-tags. | |
Protected Member Functions | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. | |
void | set_unparsed_string (const std::string &st) |
Set unparsed string. | |
Private Attributes | |
bool | m_is_parsed |
Is this attribute parsed? | |
std::string | m_string |
Raw (unparsed) string. | |
const GenEvent * | m_event |
GenParticlePtr | m_particle |
controlling GenEvent object. | |
GenVertexPtr | m_vertex |
Vertex to which assigned. | |
|
inline |
Default constructor.
Definition at line 73 of file LHEFAttributes.h.
|
inline |
Constructor from string.
Definition at line 76 of file LHEFAttributes.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 79 of file LHEFAttributes.h.
References HEPEUPAttribute::clear().
void clear | ( | ) |
Clear this object.
Definition at line 43 of file LHEFAttributes.cc.
References HEPEUP::clear(), HEPEUPAttribute::hepeup, and HEPEUPAttribute::tags.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 108 of file Attribute.h.
References Attribute::m_event.
|
overridevirtual |
Fill class content from string.
Implements Attribute.
Definition at line 49 of file LHEFAttributes.cc.
References HEPEUPAttribute::clear(), XMLTag::findXMLTags(), and HEPEUPAttribute::tags.
|
overridevirtual |
Parse the XML-tags.
Reimplemented from Attribute.
Definition at line 69 of file LHEFAttributes.cc.
References GenEvent::attribute(), Attribute::event(), HEPEUPAttribute::hepeup, and HEPEUPAttribute::tags.
|
inlineoverridevirtual |
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 102 of file Attribute.h.
References Attribute::m_is_parsed.
|
inline |
Get momentum.
Definition at line 104 of file LHEFAttributes.h.
References HEPEUPAttribute::hepeup, and HEPEUP::PUP.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 113 of file Attribute.h.
References Attribute::m_particle.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 118 of file Attribute.h.
References Attribute::m_particle.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
overridevirtual |
Fill string from class content.
Implements Attribute.
Definition at line 58 of file LHEFAttributes.cc.
References HEPEUPAttribute::hepeup, HEPEUP::heprup, HEPEUP::print(), and HEPEUPAttribute::tags.
|
inlineinherited |
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 123 of file Attribute.h.
References Attribute::m_vertex.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 128 of file Attribute.h.
References Attribute::m_vertex.
LHEF::HEPEUP hepeup |
The actual HEPEUP object.
Definition at line 113 of file LHEFAttributes.h.
|
privateinherited |
Possibility to be aware of the
Definition at line 145 of file Attribute.h.
|
privateinherited |
Is this attribute parsed?
Definition at line 143 of file Attribute.h.
|
privateinherited |
controlling GenEvent object.
Particle to which assigned.
Definition at line 147 of file Attribute.h.
|
privateinherited |
Raw (unparsed) string.
Definition at line 144 of file Attribute.h.
|
privateinherited |
Vertex to which assigned.
Definition at line 148 of file Attribute.h.
std::vector<LHEF::XMLTag*> tags |