HepMC3 event record library
|
Attribute that holds an unsigned long. More...
#include <Attribute.h>
Public Member Functions | |
ULongAttribute () | |
Default constructor. More... | |
ULongAttribute (unsigned long val) | |
Constructor initializing attribute value. 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... | |
unsigned long | value () const |
get the value associated to this Attribute. More... | |
void | set_value (const unsigned long &i) |
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... | |
Private Attributes | |
unsigned long | m_val |
Attribute value. More... | |
Attribute that holds an unsigned long.
Definition at line 558 of file Attribute.h.
|
inline |
Default constructor.
Definition at line 562 of file Attribute.h.
|
inline |
Constructor initializing attribute value.
Definition at line 565 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.
|
inlineoverridevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 568 of file Attribute.h.
References ULongAttribute::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 585 of file Attribute.h.
References ULongAttribute::m_val.
|
inlineoverridevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 574 of file Attribute.h.
References ULongAttribute::m_val.
|
inlineinherited |
|
inline |
get the value associated to this Attribute.
Definition at line 580 of file Attribute.h.
References ULongAttribute::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.
|
private |
Attribute value.
Definition at line 590 of file Attribute.h.