HepMC event record
|
Stores vertex-related information.
Definition at line 34 of file build/outputs/include/HepMC/GenVertex.h.
#include <GenVertex.h>
Public Member Functions | |
template<class T > | |
HepMC::shared_ptr< T > | attribute (string name) const |
Get attribute of type T. More... | |
Constructors | |
GenVertex (const FourVector &position=FourVector::ZERO_VECTOR()) | |
Default constructor. More... | |
GenVertex (const GenVertexData &data) | |
Constructor based on vertex data. More... | |
GenVertex (const FourVector &position=FourVector::ZERO_VECTOR()) | |
Default constructor. More... | |
GenVertex (const GenVertexData &data) | |
Constructor based on vertex data. More... | |
Accessors | |
GenEvent * | parent_event () const |
bool | in_event () const |
int | id () const |
int | status () const |
Get vertex status code. More... | |
void | set_status (int stat) |
Set vertex status code. More... | |
const GenVertexData & | data () const |
Get vertex data. More... | |
void | add_particle_in (GenParticlePtr p) |
Add incoming particle. More... | |
void | add_particle_out (GenParticlePtr p) |
Add outgoing particle. More... | |
void | remove_particle_in (GenParticlePtr p) |
Remove incoming particle. More... | |
void | remove_particle_out (GenParticlePtr p) |
Remove outgoing particle. More... | |
const vector< GenParticlePtr > | particles (Relationship range) const |
const vector< GenParticlePtr > & | particles_in () const |
Get list of incoming particles. More... | |
const vector< GenParticlePtr > & | particles_out () const |
Get list of outgoing particles. More... | |
const FourVector & | position () const |
Get vertex position. More... | |
bool | has_set_position () const |
Check if position of this vertex is set. More... | |
void | set_position (const FourVector &new_pos) |
Set vertex position. More... | |
bool | add_attribute (string name, shared_ptr< Attribute > att) |
Add event attribute to this vertex. More... | |
vector< string > | attribute_names () const |
Get list of names of attributes assigned to this particle. More... | |
void | remove_attribute (string name) |
Remove attribute. More... | |
template<class T > | |
shared_ptr< T > | attribute (string name) const |
Get attribute of type T. More... | |
string | attribute_as_string (string name) const |
Get attribute of any type as string. More... | |
GenEvent * | parent_event () const |
bool | in_event () const |
int | id () const |
int | status () const |
Get vertex status code. More... | |
void | set_status (int stat) |
Set vertex status code. More... | |
const GenVertexData & | data () const |
Get vertex data. More... | |
void | add_particle_in (GenParticlePtr p) |
Add incoming particle. More... | |
void | add_particle_out (GenParticlePtr p) |
Add outgoing particle. More... | |
void | remove_particle_in (GenParticlePtr p) |
Remove incoming particle. More... | |
void | remove_particle_out (GenParticlePtr p) |
Remove outgoing particle. More... | |
const vector< GenParticlePtr > | particles (Relationship range) const |
const vector< GenParticlePtr > & | particles_in () const |
Get list of incoming particles. More... | |
const vector< GenParticlePtr > & | particles_out () const |
Get list of outgoing particles. More... | |
const FourVector & | position () const |
Get vertex position. More... | |
bool | has_set_position () const |
Check if position of this vertex is set. More... | |
void | set_position (const FourVector &new_pos) |
Set vertex position. More... | |
bool | add_attribute (string name, shared_ptr< Attribute > att) |
Add event attribute to this vertex. More... | |
vector< string > | attribute_names () const |
Get list of names of attributes assigned to this particle. More... | |
void | remove_attribute (string name) |
Remove attribute. More... | |
template<class T > | |
shared_ptr< T > | attribute (string name) const |
Get attribute of type T. More... | |
string | attribute_as_string (string name) const |
Get attribute of any type as string. More... | |
Private Attributes | |
Fields | |
GenEvent * | m_event |
Parent event. More... | |
int | m_id |
Vertex id. More... | |
GenVertexData | m_data |
Vertex data. More... | |
vector< GenParticlePtr > | m_particles_in |
Incoming particle list. More... | |
vector< GenParticlePtr > | m_particles_out |
Outgoing particle list. More... | |
weak_ptr< GenVertex > | m_this |
Pointer to shared pointer managing this vertex. More... | |
Friends | |
class | GenEvent |
class | SmartPointer< GenVertex > |
typedef vector<GenParticlePtr>::iterator particle_iterator |
Define iterator by typedef.
Definition at line 159 of file build/outputs/include/HepMC/GenVertex.h.
typedef vector<GenParticlePtr>::iterator particle_iterator |
Define iterator by typedef.
Definition at line 159 of file include/HepMC/GenVertex.h.
typedef vector<GenParticlePtr>::const_iterator particles_in_const_iterator |
Define iterator by typedef.
Definition at line 155 of file include/HepMC/GenVertex.h.
typedef vector<GenParticlePtr>::const_iterator particles_in_const_iterator |
Define iterator by typedef.
Definition at line 155 of file build/outputs/include/HepMC/GenVertex.h.
typedef vector<GenParticlePtr>::const_iterator particles_out_const_iterator |
Define iterator by typedef.
Definition at line 157 of file build/outputs/include/HepMC/GenVertex.h.
typedef vector<GenParticlePtr>::const_iterator particles_out_const_iterator |
Define iterator by typedef.
Definition at line 157 of file include/HepMC/GenVertex.h.
GenVertex | ( | const FourVector & | position = FourVector::ZERO_VECTOR() | ) |
Default constructor.
Definition at line 22 of file GenVertex.cc.
References GenVertex::m_data, GenVertexData::position, and GenVertexData::status.
GenVertex | ( | const GenVertexData & | data | ) |
Constructor based on vertex data.
Definition at line 29 of file GenVertex.cc.
GenVertex | ( | const FourVector & | position = FourVector::ZERO_VECTOR() | ) |
Default constructor.
GenVertex | ( | const GenVertexData & | data | ) |
Constructor based on vertex data.
bool add_attribute | ( | std::string | name, |
shared_ptr< Attribute > | att | ||
) |
Add event attribute to this vertex.
This will overwrite existing attribute if an attribute with the same name is present. The attribute will be stored in the parent_event().
Definition at line 108 of file GenVertex.cc.
References GenEvent::add_attribute(), and GenVertex::parent_event().
bool add_attribute | ( | string | name, |
shared_ptr< Attribute > | att | ||
) |
Add event attribute to this vertex.
This will overwrite existing attribute if an attribute with the same name is present. The attribute will be stored in the parent_event().
void add_particle_in | ( | GenParticlePtr | p | ) |
Add incoming particle.
Definition at line 36 of file GenVertex.cc.
References GenEvent::add_particle(), GenVertex::m_event, GenVertex::m_particles_in, GenVertex::m_this, and GenVertex::particles_in().
void add_particle_in | ( | GenParticlePtr | p | ) |
Add incoming particle.
|
inline |
Get barcode
Definition at line 147 of file build/outputs/include/HepMC/GenVertex.h.
References GenVertex::add_particle_in().
|
inline |
Get barcode
Definition at line 147 of file include/HepMC/GenVertex.h.
References GenVertex::add_particle_in().
void add_particle_out | ( | GenParticlePtr | p | ) |
Add outgoing particle.
Definition at line 54 of file GenVertex.cc.
References GenEvent::add_particle(), GenVertex::m_event, GenVertex::m_particles_out, GenVertex::m_this, and GenVertex::particles_out().
void add_particle_out | ( | GenParticlePtr | p | ) |
Add outgoing particle.
|
inline |
Add outgoing particle by raw pointer
Definition at line 152 of file build/outputs/include/HepMC/GenVertex.h.
References GenVertex::add_particle_out().
|
inline |
Add outgoing particle by raw pointer
Definition at line 152 of file include/HepMC/GenVertex.h.
References GenVertex::add_particle_out().
shared_ptr<T> attribute | ( | string | name | ) | const |
Get attribute of type T.
shared_ptr<T> attribute | ( | string | name | ) | const |
Get attribute of type T.
HepMC::shared_ptr< T > attribute | ( | string | name | ) | const |
Get attribute of type T.
Definition at line 228 of file build/outputs/include/HepMC/GenVertex.h.
string attribute_as_string | ( | string | name | ) | const |
Get attribute of any type as string.
Definition at line 118 of file GenVertex.cc.
References GenEvent::attribute_as_string(), and GenVertex::parent_event().
string attribute_as_string | ( | string | name | ) | const |
Get attribute of any type as string.
vector< string > attribute_names | ( | ) | const |
Get list of names of attributes assigned to this particle.
Definition at line 122 of file GenVertex.cc.
References GenEvent::attribute_names(), and GenVertex::parent_event().
vector<string> attribute_names | ( | ) | const |
Get list of names of attributes assigned to this particle.
|
inline |
Get vertex data.
Definition at line 78 of file include/HepMC/GenVertex.h.
|
inline |
Get vertex data.
Definition at line 78 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Check if position of this vertex is set.
Definition at line 106 of file include/HepMC/GenVertex.h.
|
inline |
Check if position of this vertex is set.
Definition at line 106 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 194 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 194 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 198 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 198 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Get the vertex unique identifier
Definition at line 70 of file include/HepMC/GenVertex.h.
|
inline |
Get the vertex unique identifier
Definition at line 70 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Check if this vertex belongs to an event
Definition at line 65 of file include/HepMC/GenVertex.h.
|
inline |
Check if this vertex belongs to an event
Definition at line 65 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Get parent event
Definition at line 61 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Get parent event
Definition at line 61 of file include/HepMC/GenVertex.h.
const vector< GenParticlePtr > particles | ( | Relationship | range | ) | const |
Get list of associated particles
Definition at line 84 of file GenVertex.cc.
References HepMC::findParticles().
const vector<GenParticlePtr> particles | ( | Relationship | range | ) | const |
Get list of associated particles
|
inline |
Definition at line 179 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 179 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 187 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 187 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Get list of incoming particles.
Definition at line 93 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Get list of incoming particles.
Definition at line 93 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 163 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 163 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 167 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 167 of file include/HepMC/GenVertex.h.
|
inline |
Get list of outgoing particles.
Definition at line 95 of file include/HepMC/GenVertex.h.
|
inline |
Get list of outgoing particles.
Definition at line 95 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 171 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Definition at line 171 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 175 of file include/HepMC/GenVertex.h.
|
inline |
Definition at line 175 of file build/outputs/include/HepMC/GenVertex.h.
const FourVector& position | ( | ) | const |
Get vertex position.
Returns the position of this vertex. If a position is not set on this vertex, the production vertices of ancestors are searched to find the inherited position. FourVector(0,0,0,0) is returned if no position information is found.
const FourVector & position | ( | ) | const |
Get vertex position.
Returns the position of this vertex. If a position is not set on this vertex, the production vertices of ancestors are searched to find the inherited position. FourVector(0,0,0,0) is returned if no position information is found.
Definition at line 89 of file GenVertex.cc.
References GenEvent::event_pos(), GenVertex::has_set_position(), GenVertex::m_data, GenVertex::parent_event(), GenVertex::particles_in(), GenVertexData::position, and FourVector::ZERO_VECTOR().
void remove_attribute | ( | std::string | name | ) |
Remove attribute.
Definition at line 114 of file GenVertex.cc.
References GenVertex::parent_event(), and GenEvent::remove_attribute().
void remove_attribute | ( | string | name | ) |
Remove attribute.
void remove_particle_in | ( | GenParticlePtr | p | ) |
Remove incoming particle.
Definition at line 72 of file GenVertex.cc.
References GenVertex::m_particles_in.
void remove_particle_in | ( | GenParticlePtr | p | ) |
Remove incoming particle.
void remove_particle_out | ( | GenParticlePtr | p | ) |
Remove outgoing particle.
void remove_particle_out | ( | GenParticlePtr | p | ) |
Remove outgoing particle.
Definition at line 78 of file GenVertex.cc.
References GenVertex::m_particles_out.
void set_position | ( | const FourVector & | new_pos | ) |
Set vertex position.
Definition at line 104 of file GenVertex.cc.
References GenVertex::m_data, and GenVertexData::position.
void set_position | ( | const FourVector & | new_pos | ) |
Set vertex position.
|
inline |
Set vertex status code.
Definition at line 75 of file include/HepMC/GenVertex.h.
|
inline |
Set vertex status code.
Definition at line 75 of file build/outputs/include/HepMC/GenVertex.h.
|
inline |
Get vertex status code.
Definition at line 73 of file include/HepMC/GenVertex.h.
|
inline |
Get vertex status code.
Definition at line 73 of file build/outputs/include/HepMC/GenVertex.h.
|
friend |
Definition at line 37 of file build/outputs/include/HepMC/GenVertex.h.
|
private |
Vertex data.
Definition at line 212 of file build/outputs/include/HepMC/GenVertex.h.
|
private |
Parent event.
Definition at line 210 of file build/outputs/include/HepMC/GenVertex.h.
|
private |
Vertex id.
Definition at line 211 of file build/outputs/include/HepMC/GenVertex.h.
|
private |
Incoming particle list.
Definition at line 214 of file build/outputs/include/HepMC/GenVertex.h.
|
private |
Outgoing particle list.
Definition at line 215 of file build/outputs/include/HepMC/GenVertex.h.
|
private |
Pointer to shared pointer managing this vertex.
Definition at line 216 of file build/outputs/include/HepMC/GenVertex.h.