HepMC3 event record library
|
Attribute that holds an Integer implemented as an int.
Definition at line 199 of file Attribute.h.
#include <Attribute.h>
Public Member Functions | |
LongAttribute () | |
Default constructor. | |
LongAttribute (long val) | |
Constructor initializing attribute value. | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. | |
long | value () const |
get the value associated to this Attribute. | |
void | set_value (const long &l) |
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 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 string &st) |
Set unparsed string. | |
Private Attributes | |
long | m_val |
Attribute value. | |
bool | m_is_parsed |
Is this attribute parsed? | |
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 203 of file Attribute.h.
|
inline |
Constructor initializing attribute value.
Definition at line 206 of file Attribute.h.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 109 of file Attribute.h.
References Attribute::m_event.
|
inlinevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 209 of file Attribute.h.
References LongAttribute::m_val.
|
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 |
|
inline |
set the value associated to this Attribute.
Definition at line 226 of file Attribute.h.
References LongAttribute::m_val.
|
inlinevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 215 of file Attribute.h.
References LongAttribute::m_val.
|
inlineinherited |
|
inline |
get the value associated to this Attribute.
Definition at line 221 of file Attribute.h.
References LongAttribute::m_val.
|
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.
|
privateinherited |
Possibility to be aware of the
Definition at line 146 of file Attribute.h.
|
privateinherited |
Is this attribute parsed?
Definition at line 144 of file Attribute.h.
|
privateinherited |
controlling GenEvent object.
Particle to which assigned.
Definition at line 148 of file Attribute.h.
|
privateinherited |
Raw (unparsed) string.
Definition at line 145 of file Attribute.h.
|
private |
Attribute value.
Definition at line 232 of file Attribute.h.
|
privateinherited |
Vertex to which assigned.
Definition at line 149 of file Attribute.h.