75 return std::const_pointer_cast<const GenVertex>(
m_end_vertex.lock());
103 return vector<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.
void remove_attribute(const string &name, const int &id=0)
Remove attribute.
string attribute_as_string(const string &name, const int &id=0) const
Get attribute of any type as string.
void add_attribute(const string &name, const shared_ptr< Attribute > &att, const int &id=0)
Add event attribute to event.
std::vector< string > attribute_names(const int &id=0) const
Get list of attribute names.
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.
bool add_attribute(const string &name, shared_ptr< Attribute > att)
Add an attribute to this particle.
GenParticle(const FourVector &momentum=FourVector::ZERO_VECTOR(), int pid=0, int status=0)
Default constructor.
vector< GenParticlePtr > children()
Convenience access to immediate outgoing particles via end vertex.
void remove_attribute(const string &name)
Remove attribute.
weak_ptr< GenVertex > m_end_vertex
End vertex.
string attribute_as_string(const string &name) const
Get attribute of any type as string.
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.
vector< GenParticlePtr > parents()
Convenience access to immediate incoming particles via production vertex.
void set_generated_mass(double m)
Set generated mass.
double generated_mass() const
Get generated mass.
weak_ptr< GenVertex > m_production_vertex
Production vertex.
GenParticleData m_data
Particle data.
vector< string > attribute_names() const
Get list of names of attributes assigned to this particle.
Stores serializable particle information.
double mass
Generated mass (if set)
FourVector momentum
Momentum.
bool is_mass_set
Check if generated mass is set.