HepMC3 event record library
|
Go to the documentation of this file.
75 return std::const_pointer_cast<const GenVertex>(
m_end_vertex.lock());
95 if ( !parent_event() )
return false;
96 parent_event()->add_attribute(name, att,
id());
101 if ( parent_event() )
return parent_event()->attribute_names(
id());
103 return vector<string>();
107 if ( parent_event() ) parent_event()->remove_attribute(name,
id());
111 return parent_event() ? parent_event()->attribute_as_string(name,
id()) : string();
Definition of class GenEvent.
double mass
Generated mass (if set)
Definition of class GenVertex.
string attribute_as_string(const string &name) const
Get attribute of any type as string.
void set_pid(int pid)
Set PDG ID.
void set_generated_mass(double m)
Set generated mass.
Definition of class GenParticle.
Stores serializable particle information.
weak_ptr< GenVertex > m_production_vertex
Production vertex.
double m() const
Invariant mass. Returns -sqrt(-m) if e^2 - P^2 is negative.
void unset_generated_mass()
Declare that generated mass is not set.
bool is_mass_set
Check if generated mass is set.
vector< GenParticlePtr > children()
Convenience access to immediate outgoing particles via end vertex.
void remove_attribute(const string &name)
Remove attribute.
vector< string > attribute_names() const
Get list of names of attributes assigned to this particle.
weak_ptr< GenVertex > m_end_vertex
End vertex.
double generated_mass() const
Get generated mass.
ConstGenVertexPtr production_vertex() const
Get production vertex (const version)
Definition of class Setup.
void set_momentum(const FourVector &momentum)
Set momentum.
GenParticleData m_data
Particle data.
GenParticle(const FourVector &momentum=FourVector::ZERO_VECTOR(), int pid=0, int status=0)
Default constructor.
bool add_attribute(const string &name, shared_ptr< Attribute > att)
Add an attribute to this particle.
vector< GenParticlePtr > parents()
Convenience access to immediate incoming particles via production vertex.
FourVector momentum
Momentum.
Definition of class Attribute, class IntAttribute and class StringAttribute.
ConstGenVertexPtr end_vertex() const
Get end vertex (const version)
void set_status(int status)
Set status code.