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