13 printf(
"c extern x-component = %f\n",vec[0]);
14 vec[0] = 0.1; vec[1] = 0.2; vec[2] = 0.3;
17 void reaction_define(
const char *file,
double energy,
int *pids,
int *counts,
int length){
24 vec[0] = v.
x(); vec[1] = v.
y(); vec[2] = v.
z(); vec[3] = v.
e();
29 vec[0] = v.
x(); vec[1] = v.
y(); vec[2] = v.
z(); vec[3] = v.
e();
34 return status==
true?1:0;
39 return status==
true?1:0;
44 printf(
"data from \"C\" : [%s]\n",data);
45 strcpy(data,
"troubles"); data[5] = 0;
Four-component Lorentz vector for relativistic kinematics.
Physics analysis helper for filtering and reconstructing reactions from HIPO data.
bool next()
Advance to the next event and read all banks.
bool is_valid()
Check if the current event passes the particle filter.
fizika::lorentz4 get(std::initializer_list< std::tuple< int, int, int, double > > desc)
Reconstruct a Lorentz vector from a particle combination.
void get_format_string(char *data)
fizika::reaction * __reaction
void reaction_get_cm(double *vec)
void reaction_get_vector_debug(double *vec)
void reaction_define(const char *file, double energy, int *pids, int *counts, int length)
void reaction_get_vector(double *vec, int *signs, int *pids, int *skips, double *masses, int length)
Physics analysis utilities for reaction filtering and reconstruction from HIPO events.