|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Physics analysis helper for filtering and reconstructing reactions from HIPO data. More...
#include <reaction.h>
Public Member Functions | |
| reaction () | |
| Default constructor. More... | |
| reaction (const char *file) | |
| Construct a reaction from a HIPO file (no filter, no beam setup). More... | |
| reaction (const char *file, std::initializer_list< std::tuple< int, int > > desc) | |
| Construct a reaction with a particle filter. More... | |
| reaction (const char *file, double benergy, std::initializer_list< std::tuple< int, int > > desc) | |
| Construct a reaction with beam energy and particle filter. More... | |
| reaction (const char *file, double benergy, int *pids, int *count, int length) | |
| Construct a reaction with beam energy and C-style filter arrays. More... | |
| virtual | ~reaction () |
| fizika::lorentz4 & | cm () |
| void | init_filter (std::initializer_list< std::tuple< int, int > > desc) |
| Initialize the particle filter from PID/count pairs. More... | |
| fizika::lorentz4 | get (std::initializer_list< std::tuple< int, int, int, double > > desc) |
| Reconstruct a Lorentz vector from a particle combination. More... | |
| fizika::lorentz4 | get (int *signs, int *pids, int *skips, double *masses, int length) |
| Reconstruct a Lorentz vector from arrays of particle parameters. More... | |
| bool | next () |
| Advance to the next event and read all banks. More... | |
| void | get_vector (fizika::lorentz4 &vec, double mass, hipo::bank &b, int order, int ind_px, int ind_py, int ind_pz) |
| Fill a Lorentz vector from a bank row's momentum columns and a given mass. More... | |
| bool | is_valid () |
| Check if the current event passes the particle filter. More... | |
| int | countpid (int pid) |
| Count particles with the given PID that pass status cuts. More... | |
| int | index (int pid, int skip) |
| Find the row index of the Nth particle with the given PID. More... | |
| std::vector< hipo::bank > & | getBanks () |
| fizika::lorentz4 & | beam () |
| fizika::lorentz4 & | target () |
Physics analysis helper for filtering and reconstructing reactions from HIPO data.
Reads REC::Particle banks and provides particle identification filtering, Lorentz vector reconstruction, and exclusive/inclusive reaction selection. Beam and target kinematics are configurable.
Definition at line 37 of file reaction.h.
|
inline |
Default constructor.
Definition at line 62 of file reaction.h.
|
inline |
Construct a reaction from a HIPO file (no filter, no beam setup).
| file | Path to the HIPO file |
Definition at line 65 of file reaction.h.
|
inline |
Construct a reaction with a particle filter.
| file | Path to the HIPO file |
| desc | Initializer list of (pid, count) tuples defining the filter |
Definition at line 71 of file reaction.h.
|
inline |
Construct a reaction with beam energy and particle filter.
| file | Path to the HIPO file |
| benergy | Beam energy in GeV |
| desc | Initializer list of (pid, count) tuples defining the filter |
Definition at line 79 of file reaction.h.
|
inline |
Construct a reaction with beam energy and C-style filter arrays.
| file | Path to the HIPO file |
| benergy | Beam energy in GeV |
| pids | Array of particle IDs |
| count | Array of required counts per PID |
| length | Number of entries in pids and count arrays |
Definition at line 93 of file reaction.h.
|
inlinevirtual |
Definition at line 105 of file reaction.h.
|
inline |
Definition at line 223 of file reaction.h.
|
inline |
Definition at line 109 of file reaction.h.
|
inline |
Count particles with the given PID that pass status cuts.
| pid | Particle ID to count |
Definition at line 192 of file reaction.h.
|
inline |
Reconstruct a Lorentz vector from arrays of particle parameters.
| signs | Array of signs (+1 or -1) |
| pids | Array of particle IDs |
| skips | Array of occurrence indices |
| masses | Array of assumed masses |
| length | Number of particles |
Definition at line 148 of file reaction.h.
|
inline |
Reconstruct a Lorentz vector from a particle combination.
| desc | Initializer list of (sign, pid, skip, mass) tuples. sign: +1 to add, -1 to subtract. skip: occurrence index. |
Definition at line 129 of file reaction.h.
|
inline |
Fill a Lorentz vector from a bank row's momentum columns and a given mass.
Definition at line 173 of file reaction.h.
|
inline |
Definition at line 221 of file reaction.h.
|
inline |
Find the row index of the Nth particle with the given PID.
| pid | Particle ID to search for |
| skip | Occurrence index (0 = first match) |
Definition at line 207 of file reaction.h.
|
inline |
Initialize the particle filter from PID/count pairs.
| desc | Initializer list of (pid, count) tuples |
Definition at line 113 of file reaction.h.
|
inline |
Check if the current event passes the particle filter.
Definition at line 179 of file reaction.h.
|
inline |
Advance to the next event and read all banks.
Definition at line 164 of file reaction.h.
|
inline |
Definition at line 225 of file reaction.h.