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