Object for fast Time of Flight values access. More...
#include <tof_col.h>
Public Member Functions | |
| tof_col () | |
| Default constructor. | |
| ~tof_col () | |
| Default destructor. | |
| void | init (const ana_event &evt_) |
| Init the object in function of the event (mainly number of scins and tracks) | |
| bool | is_initiated () const |
| check tof_col::init | |
| void | set_values (unsigned int s1_, unsigned int s2_, double *dt_, double *chi2_, double *P_, bool tt_=true) |
| set delta time, chi square and probability for scintillators s1_ and s2_. tt_ is for track-track, else track-scin | |
| void | get_values (unsigned int s1_, unsigned int s2_, double *dt_, double *chi2_, double *P_, bool tt_=true) const |
| get delta time, chi square and probability for scintillators s1_ and s2_. tt_ is for track-track, else track-scin | |
| void | get_values (unsigned int s1_, unsigned int s2_, float *dt_, float *chi2_, float *P_, bool tt_=true) const |
| get float delta time, chi square and probability for scintillators s1_ and s2_. tt_ is for track-track, else track-scin | |
| unsigned int | hasher (unsigned int, unsigned int, bool tt_=true) const |
| Hashing calculator for the tables. | |
| void | unhasher (unsigned int hash_, unsigned int &, unsigned int &, bool tt_=true) const |
| table value to scins calculators | |
| void | clean_all () |
| Flush and uninit. | |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar_, const unsigned int version_) |
Private Attributes | |
| bool | __init |
| std::vector< double > | __dt_tt_int |
| internal delta time for track-track | |
| std::vector< double > | __chi2_tt_int |
| internal chi square for track-track | |
| std::vector< double > | __P_tt_int |
| internal probability for track-track | |
| std::vector< double > | __dt_tt_ext |
| external delta time for track-track | |
| std::vector< double > | __chi2_tt_ext |
| external chi square for track-track | |
| std::vector< double > | __P_tt_ext |
| external probability for track-track | |
| std::vector< double > | __dt_ts_int |
| internal delta time for track-scin | |
| std::vector< double > | __chi2_ts_int |
| internal chi square for track-scin | |
| std::vector< double > | __P_ts_int |
| internal probability for track-scin | |
| std::vector< double > | __dt_ts_ext |
| external delta time for track-scin | |
| std::vector< double > | __chi2_ts_ext |
| external chi square for track-scin | |
| std::vector< double > | __P_ts_ext |
| external probability for track-scin | |
Friends | |
| class | boost::serialization::access |
Object for fast Time of Flight values access.
2011-2012 Hugon Christophe CENBG
The tof_col object is designed to contain fast acces tof (time chi2 and prob). For now just for electron-electron and gamma-electron, but later for more dimentionnal ToF (eee, egg...)
It's based on simple bijective hashing calculation.
friend class boost::serialization::access [friend] |
What is saved:
every attributes of the object
1.8.0