NEMO3 2e measurement. More...
#include <tof_2e_measurement.h>
Public Member Functions | |
tof_2e_measurement (bool debug_=false) | |
constructor | |
virtual | ~tof_2e_measurement () |
destructor | |
void | set_debug (bool debug_) |
sets the debug option | |
void | set_ECorr (bool energy_loss_) |
sets the use of energy losses in the tracking chamber for the tof_tools | |
void | set_TimeErr (bool timeerr_) |
sets the use of the time error for the tof_tools | |
void | set_LTFluct (bool fluct_) |
sets the use of LT fluctiation in the tof_tools | |
virtual void | do_measurement (ana_event &) |
ana_event::i_measurement interface | |
virtual void | init_from (const datatools::utils::properties &) |
datatools::utils::i_propinit interface | |
Static Public Attributes | |
static const string | VALIDITY_PROPERTY_NAME |
static const string | INTERNAL_PROBABILITY_PROPERTY_NAME |
static const string | EXTERNAL_PROBABILITY_PROPERTY_NAME |
Protected Member Functions | |
virtual void | _compute_tof_properties () |
do all the job | |
Private Attributes | |
bool | __debug |
string | __tracking_name |
string | __required_channel |
ana_event * | __event |
tof_tools | __tof_tools |
NEMO3 2e measurement.
Author(s): Francois Mauger <mauger@lpccaen.in2p3.fr> Creation date: 2010-03-01 Last modified: 2012-03-08 License: GPL Description: NEMO3 2e measurement History: Example:
configuration of the 2e TOF measurement algorithm: datatools::utils::properties tof_meas_config; tof_meas_config.store ("tof_2e_measurement.debug", true); tof_meas_config.store ("tof_2e_measurement.tracking_name", "default"); tof_meas_config.store ("tof_2e_measurement.required_channel", "2e");
setup the 2e TOF measurement algorithm: tof_2e_measurement tof_meas; tof_meas.init (tof_meas_config);
... nemo3::ana_event the_event; ... load the event from a reader: ... apply the 2e TOF measurement algorithm to the event: the_event.measure (tof_meas); ... if (the_event.properties ().has_flag ("tof_2e_measurement.valid")) { const nemo3::tracking & the_tracking = the_event.get_default_tracking (); double int_prob = the_tracking.properties ().fetch_real ("tof_2e_measurement.internal_probability"); double ext_prob = the_tracking.properties ().fetch_real ("tof_2e_measurement.external_probability");
apply cuts...
virtual void nemo3::tof_2e_measurement::_compute_tof_properties | ( | ) | [protected, virtual] |
do all the job
Takes only 2 tracks and 2 scins events Measures and stores their internal and external probabilities in properties