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