38 #ifndef GENBB_HELP_PRIMARY_EVENT_H 39 #define GENBB_HELP_PRIMARY_EVENT_H 1 160 void rotate(
double a_phi,
double a_theta,
double a_delta);
185 tree_dump(std::ostream & out_ = std::clog,
186 const std::string & title_ =
"",
187 const std::string & indent_ =
"",
188 bool inherit_ =
false)
const;
191 void dump(std::ostream & a_out = std::clog,
192 const std::string & a_indent =
"")
const;
195 void dump(std::ostream & a_out,
196 const std::string & a_title,
197 const std::string & a_indent)
const;
216 std::string _classification_;
217 double _genbb_weight_;
233 #include <boost/serialization/export.hpp> 242 #include <boost/serialization/version.hpp> 245 #endif // GENBB_HELP_PRIMARY_EVENT_H #define DR_CLASS_INIT(Introspectable)
Inform Camp that class Introspectable exists and trigger the automatic registration of dedicated refl...
Definition: reflection_interface.h:149
void rotate(double a_phi, double a_theta, double a_delta)
Rotate the event.
void set_genbb_weight(double genbb_weight_)
Set the weight.
std::list< primary_particle > particles_col_type
Collection of primary particles.
Definition: primary_event.h:68
void set_classification(const std::string &c_)
Set the classification string.
particles_col_type & grab_particles()
Return a mutable reference to the list of primary particles.
void set_auxiliaries(const datatools::properties &)
Set auxiliary properties.
void shift_particles_time(double delta_time_, int from_=0)
Shift the time of the particles by a delay.
#define DATATOOLS_SERIALIZATION_DECLARATION_ADVANCED(ClassName)
Definition: i_serializable.h:371
double get_genbb_weight() const
Return the weight.
void remove_particle(int type_, int occurence_=0)
Remove particle.
bool is_valid() const
Check the validity of the primary event.
void reset()
Reset the primary event.
primary_particle & add_particle()
Add a primary particle.
unsigned int get_number_of_particles() const
Return the number of primary particles.
void _set_defaults()
Set default attibutes values.
void assign_generation_ids()
Assign generation Ids to all particle.
bool has_time() const
Check if time is defined.
bool has_classification() const
Check if classification is set.
void set_time(double)
Set the time.
const primary_particle & get_particle(int) const
Return a const reference to primary particle at given index.
const primary_particle * get_particle_of_type(int type_, int occurence_=0) const
Return a const pointer to primary particle of a certain type with given occurence.
#define DATATOOLS_SERIALIZATION_EXT_BACKWARD_SERIAL_TAG_DECLARATION(ClassName)
Definition: i_serializable.h:180
void compute_classification()
Compute the classification string.
bool has_vertex() const
Check if vertex is defined.
double get_time() const
Return the time.
const geomtools::vector_3d & get_vertex() const
Return the time.
bool has_label() const
Check if label is set.
void reset_classification()
Reset the classification string.
void remove_generation_ids()
Remove generation Ids from all particle.
void set_label(const std::string &l_)
Set the label.
primary_event()
Default constructor.
#define DATATOOLS_SERIALIZATION_BACKWARD_SERIAL_TAG_SUPPORT()
Definition: i_serializable.h:174
Top-level namespace of the Bayeux/genbb_help module library.
Definition: alpha_decay.h:51
virtual ~primary_event()
Destructor.
double get_total_kinetic_energy() const
Return the total kinetic energy of the event.
void dump(std::ostream &a_out=std::clog, const std::string &a_indent="") const
Print.
const datatools::properties & get_auxiliaries() const
Return a const reference to the auxiliary properties.
primary_particle & grab_particle(int)
Return a mutable reference to primary particle at given index.
const std::string & get_classification() const
Return the classification string.
A primary event from a Monte-Carlo generator.
Definition: primary_event.h:60
void set_vertex(const geomtools::vector_3d &)
Set the vertex.
bool is_genbb_weighted() const
Check if the event is weighted.
datatools::properties & grab_auxiliaries()
Return a mutable reference to the auxiliary properties.
#define DR_CLASS_RTTI()
Declare Camp RTTI within class declaration.
Definition: reflection_interface.h:46
const particles_col_type & get_particles() const
Return a const reference to the list of primary particles.
A primary particle generated by a Monte Carlo generator process.
Definition: primary_particle.h:61
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
const std::string & get_label() const
Return the label.
void reset_label()
Reset the label.