HepMC event record
|
Attribute that holds a real number as a float.
Definition at line 273 of file build/outputs/include/HepMC/Attribute.h.
#include <Attribute.h>
Public Member Functions | |
FloatAttribute () | |
Default constructor. More... | |
FloatAttribute (float val) | |
Constructor initializing attribute value. More... | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. More... | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. More... | |
float | value () const |
get the value associated to this Attribute. More... | |
void | set_value (float f) |
set the value associated to this Attribute. More... | |
FloatAttribute () | |
Default constructor. More... | |
FloatAttribute (float val) | |
Constructor initializing attribute value. More... | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. More... | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. More... | |
float | value () const |
get the value associated to this Attribute. More... | |
void | set_value (float f) |
set the value associated to this Attribute. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
Protected Member Functions | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
Private Attributes | |
float | m_val |
Attribute value. More... | |
|
inline |
Default constructor.
Definition at line 277 of file build/outputs/include/HepMC/Attribute.h.
|
inline |
Constructor initializing attribute value.
Definition at line 280 of file build/outputs/include/HepMC/Attribute.h.
|
inline |
Default constructor.
Definition at line 277 of file include/HepMC/Attribute.h.
|
inline |
Constructor initializing attribute value.
Definition at line 280 of file include/HepMC/Attribute.h.
|
inlinevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 283 of file build/outputs/include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inlinevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 283 of file include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file build/outputs/include/HepMC/Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file include/HepMC/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, and HEPEUPAttribute.
Definition at line 82 of file build/outputs/include/HepMC/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, and HEPEUPAttribute.
Definition at line 82 of file include/HepMC/Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 94 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 94 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set is_parsed flag.
Definition at line 101 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set is_parsed flag.
Definition at line 101 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set unparsed string.
Definition at line 104 of file include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineprotectedinherited |
Set unparsed string.
Definition at line 104 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inline |
set the value associated to this Attribute.
Definition at line 307 of file build/outputs/include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inline |
set the value associated to this Attribute.
Definition at line 307 of file include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inlinevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 293 of file build/outputs/include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inlinevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 293 of file include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inlineinherited |
Get unparsed string.
Definition at line 97 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineinherited |
Get unparsed string.
Definition at line 97 of file include/HepMC/Attribute.h.
References Attribute::m_string.
|
inline |
get the value associated to this Attribute.
Definition at line 302 of file include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
inline |
get the value associated to this Attribute.
Definition at line 302 of file build/outputs/include/HepMC/Attribute.h.
References FloatAttribute::m_val.
|
private |
Attribute value.
Definition at line 313 of file build/outputs/include/HepMC/Attribute.h.