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 337 of file Attribute.h.
#include <Attribute.h>
Public Member Functions | |
StringAttribute () | |
Default constructor - empty string. More... | |
StringAttribute (const std::string &st) | |
String-based constructor. More... | |
bool | from_string (const std::string &att) override |
Implementation of Attribute::from_string. More... | |
bool | to_string (std::string &att) const override |
Implementation of Attribute::to_string. More... | |
std::string | value () const |
get the value associated to this Attribute. More... | |
void | set_value (const std::string &s) |
set the value associated to this Attribute. 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 |
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... | |
|
inline |
Default constructor - empty string.
Definition at line 341 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 349 of file Attribute.h.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 110 of file Attribute.h.
References Attribute::m_event.
|
inlineoverridevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 352 of file Attribute.h.
References Attribute::set_unparsed_string().
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Reimplemented in HEPEUPAttribute.
Definition at line 83 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 92 of file Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 104 of file Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 115 of file Attribute.h.
References Attribute::m_particle.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 120 of file Attribute.h.
References Attribute::m_particle.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
set the value associated to this Attribute.
Definition at line 369 of file Attribute.h.
References Attribute::set_unparsed_string().
|
inlineoverridevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 358 of file Attribute.h.
References Attribute::unparsed_string().
|
inlineinherited |
|
inline |
get the value associated to this Attribute.
Definition at line 364 of file Attribute.h.
References Attribute::unparsed_string().
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 125 of file Attribute.h.
References Attribute::m_vertex.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 130 of file Attribute.h.
References Attribute::m_vertex.