epic-drich-beam-test-analysis
ePIC dRICH beam test analysis framework
Loading...
Searching...
No Matches
tracking_altai Class Reference

Class managing Altai tracking data. More...

#include <tracking_altai.h>

Public Member Functions

Constructors & Destructor
 tracking_altai (const std::string &file_name)
 
Getters
std::map< uint32_t, std::vector< tracking_altai_struct > > get_data_map () const
 Get the full data map.
 
uint32_t get_number_of_events () const
 
std::vector< tracking_altai_structget_event_tracks (uint32_t event_id) const
 Get tracks for a specific event.
 
int get_event_tracks_size (uint32_t event_id) const
 Get number of tracks for an event.
 
Track field getters
float get_zero_plane_x (uint32_t event_id, std::size_t idx) const
 
float get_zero_plane_y (uint32_t event_id, std::size_t idx) const
 
float get_zero_plane_z (uint32_t event_id, std::size_t idx) const
 
float get_angcoeff_dx (uint32_t event_id, std::size_t idx) const
 
float get_angcoeff_dy (uint32_t event_id, std::size_t idx) const
 
float get_angcoeff_dz (uint32_t event_id, std::size_t idx) const
 
float get_chi2 (uint32_t event_id, std::size_t idx) const
 
float get_chi2ndof (uint32_t event_id, std::size_t idx) const
 
int get_ndof (uint32_t event_id, std::size_t idx) const
 
double get_timestamp (uint32_t event_id, std::size_t idx) const
 
Setters
void add_event_track (uint32_t event_id, const tracking_altai_struct &track)
 Add a track to an event.
 
void set_event_tracks (uint32_t event_id, const std::vector< tracking_altai_struct > &tracks)
 Replace all tracks for an event.
 
Checks
bool event_has_one_track (uint32_t event_id) const
 
bool event_has_at_least_one_track (uint32_t event_id) const
 
I/O
void load_tracking_file (const std::string &input_file)
 

Detailed Description

Class managing Altai tracking data.

Member Function Documentation

◆ add_event_track()

void tracking_altai::add_event_track ( uint32_t  event_id,
const tracking_altai_struct track 
)

Add a track to an event.

Parameters
event_idID of the event
trackTrack to add

◆ get_data_map()

std::map< uint32_t, std::vector< tracking_altai_struct > > tracking_altai::get_data_map ( ) const

Get the full data map.

Returns
Map of event_id to vector of tracks

◆ get_event_tracks()

std::vector< tracking_altai_struct > tracking_altai::get_event_tracks ( uint32_t  event_id) const

Get tracks for a specific event.

Parameters
event_idID of the event
Returns
Vector of tracks for that event

◆ get_event_tracks_size()

int tracking_altai::get_event_tracks_size ( uint32_t  event_id) const

Get number of tracks for an event.

Parameters
event_idID of the event
Returns
Number of tracks

◆ set_event_tracks()

void tracking_altai::set_event_tracks ( uint32_t  event_id,
const std::vector< tracking_altai_struct > &  tracks 
)

Replace all tracks for an event.

Parameters
event_idID of the event
tracksVector of tracks

The documentation for this class was generated from the following files: