HepMC3 event record library
|
Attribute class allowing eg. a GenParticle to refer to another GenParticle. More...
#include <AssociatedParticle.h>
Public Member Functions | |
AssociatedParticle () | |
Default constructor. More... | |
AssociatedParticle (ConstGenParticlePtr p) | |
Constructor initializing attribute value. More... | |
bool | from_string (const std::string &att) |
Implementation of Attribute::from_string. More... | |
int | associatedId () const |
get id of the associated particle. More... | |
ConstGenParticlePtr | associated () const |
get a pointer to the associated particle. More... | |
void | set_associated (ConstGenParticlePtr p) |
set the value associated to this Attribute. More... | |
bool | to_string (std::string &att) const override |
Implementation of Attribute::to_string. More... | |
int | value () const |
get the value associated to this Attribute. More... | |
void | set_value (const int &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 | |
ConstGenParticlePtr | m_associated |
The associated particle. More... | |
Attribute class allowing eg. a GenParticle to refer to another GenParticle.
Definition at line 32 of file AssociatedParticle.h.
|
inline |
Default constructor.
Definition at line 36 of file AssociatedParticle.h.
|
inline |
Constructor initializing attribute value.
Definition at line 39 of file AssociatedParticle.h.
|
inline |
get a pointer to the associated particle.
Definition at line 57 of file AssociatedParticle.h.
References AssociatedParticle::m_associated.
|
inline |
get id of the associated particle.
Definition at line 52 of file AssociatedParticle.h.
References IntAttribute::value().
|
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 43 of file AssociatedParticle.h.
References AssociatedParticle::associatedId(), Attribute::event(), IntAttribute::from_string(), AssociatedParticle::m_associated, and GenEvent::particles().
|
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.
|
inline |
set the value associated to this Attribute.
Definition at line 62 of file AssociatedParticle.h.
References AssociatedParticle::m_associated, and IntAttribute::set_value().
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
set the value associated to this Attribute.
Definition at line 185 of file Attribute.h.
References IntAttribute::m_val.
|
inlineoverridevirtualinherited |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 174 of file Attribute.h.
References IntAttribute::m_val.
|
inlineinherited |
|
inlineinherited |
get the value associated to this Attribute.
Definition at line 180 of file Attribute.h.
References IntAttribute::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 |
The associated particle.
Definition at line 69 of file AssociatedParticle.h.