HepMC3 event record library
|
Attribute that holds a string.
Default attribute constructed when reading input files. It can be then parsed by other attributes or left as a string.
Definition at line 335 of file Attribute.h.
#include <Attribute.h>
Public Member Functions | |
StringAttribute () | |
Default constructor - empty string. | |
StringAttribute (const std::string &st) | |
String-based constructor. | |
bool | from_string (const std::string &att) override |
Implementation of Attribute::from_string. | |
bool | to_string (std::string &att) const override |
Implementation of Attribute::to_string. | |
std::string | value () const |
get the value associated to this Attribute. | |
void | set_value (const std::string &s) |
set the value associated to this Attribute. | |
virtual bool | init () |
Optionally initialize the attribute after from_string. | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. | |
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 |
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 - empty string.
Definition at line 339 of file Attribute.h.
|
inline |
String-based constructor.
The Attribute constructor used here marks that this is an unparsed string that can be (but does not have to be) parsed
Definition at line 347 of file Attribute.h.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 108 of file Attribute.h.
References Attribute::m_event.
|
inlineoverridevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 350 of file Attribute.h.
References Attribute::set_unparsed_string().
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Reimplemented in HEPEUPAttribute.
Definition at line 81 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 90 of file Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 102 of file Attribute.h.
References Attribute::m_is_parsed.
|
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 |
|
inline |
set the value associated to this Attribute.
Definition at line 367 of file Attribute.h.
References Attribute::set_unparsed_string().
|
inlineoverridevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 356 of file Attribute.h.
References Attribute::unparsed_string().
|
inlineinherited |
|
inline |
get the value associated to this Attribute.
Definition at line 362 of file Attribute.h.
References Attribute::unparsed_string().
|
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.
|
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.