14 #ifndef FALAISE_SNEMO_DATAMODELS_CALIBRATED_TRACKER_HIT_H 15 #define FALAISE_SNEMO_DATAMODELS_CALIBRATED_TRACKER_HIT_H 1 23 #include <boost/cstdint.hpp> 105 double get_x()
const;
108 double get_y()
const;
114 void set_xy(
double x_,
double y_);
159 void set_delayed_time(
double ref_delayed_time_,
double ref_delayed_time_error_ = 0.0);
210 virtual void clear();
216 virtual void tree_dump(std::ostream& a_out = std::clog,
const std::string& a_title =
"",
217 const std::string& a_indent =
"",
bool a_inherit =
false)
const;
241 double _delayed_time_;
242 double _delayed_time_error_;
257 #include <boost/serialization/version.hpp> 260 #endif // FALAISE_SNEMO_DATAMODELS_CALIBRATED_TRACKER_HIT_H void set_r(double)
Set the drift radius of the Geiger hit.
void set_sigma_r(double)
Set the error on the drift radius of the Geiger hit.
bool are_both_cathodes_missing() const
Check if the hit lacks both measurements of the top and bottom cathode signals.
bool is_prompt() const
Check if the hit is not marked as delayed.
int32_t get_row() const
Return the row.
bool is_noisy() const
Check if the hit is marked as noisy.
Definition: calibrated_tracker_hit.h:39
double get_x() const
Return the X position of the center of the cell in the module coordinates system.
void set_sterile(bool)
Mark/unmark the hit as sterile.
virtual void tree_dump(std::ostream &a_out=std::clog, const std::string &a_title="", const std::string &a_indent="", bool a_inherit=false) const
Smart print method.
void set_sigma_z(double)
Set the error on the longitudinal position of the Geiger hit along the anode wire.
void invalidate_positions()
Reset all calibration informations.
bool is_sterile() const
Check if the hit is marked as sterile.
void set_z(double)
Set the longitudinal position of the Geiger hit along the anode wire.
datatools::handle< calibrated_tracker_hit > handle_type
Alias for a handle on a calibrated tracker hit.
Definition: calibrated_tracker_hit.h:51
bool is_delayed() const
Check if the hit is marked as delayed.
void set_noisy(bool)
Mark/unmark the hit as noisy.
void set_fake(bool)
Mark/unmark the hit as fake.
void dump() const
Shortcut for the smart print method.
bool is_top_cathode_missing() const
Check if the hit lacks the measurement of the top cathode signal.
double get_delayed_time() const
Return the delayed reference time of the hit.
double get_sigma_z() const
Return the error on the longitudinal position of the Geiger hit along the anode wire.
void _set_x(double)
Set the X position of the center of the cell in the module coordinates system.
virtual ~calibrated_tracker_hit()
void invalidate_xy()
Invalidate X/Y position of the center of the cell.
traits_type
Special traits.
Definition: calibrated_tracker_hit.h:38
int32_t get_id() const
Return the hit ID.
Functor that compares hits by delayed time.
Definition: calibrated_tracker_hit.h:248
double get_sigma_r() const
Return the error on the drift radius of the Geiger hit.
bool is_bottom_cathode_missing() const
Check if the hit lacks the measurement of the bottom cathode signal.
#define DATATOOLS_SERIALIZATION_DECLARATION()
bool _get_trait_bit(uint32_t mask_) const
calibrated_tracker_hit & measure(i_measurement &)
Apply a measurement functor on the hit.
bool has_delayed_time() const
Check if the delayed time is stored.
double get_y() const
Return the Y position of the center of the cell in the module coordinates system.
void set_bottom_cathode_missing(bool)
Mark/unmark the hit lacking the measurement of the bottom cathode signal.
Definition: calibrated_tracker_hit.h:46
Definition: calibrated_tracker_hit.h:43
bool has_anode_time() const
Check if the anode drift time is stored as an auxiliary property.
Model of a calibrated tracker hit (Geiger regime)
Definition: calibrated_tracker_hit.h:35
int32_t get_module() const
Return the module number.
double get_r() const
Return the drift radius of the Geiger hit.
bool operator()(const calibrated_tracker_hit &hit_i_, const calibrated_tracker_hit &hit_j_) const
bool is_valid() const
Check if minimal calibration informations are present to consider the hit as valid and usable.
Definition: calo_tapered_scin_box_model.h:54
void invalidate()
Invalidate calibration informations stored in the hit.
virtual void clear()
Invalidate calibration informations stored in the hit.
static const std::string & top_cathode_time_key()
Name of the property to store optional top cathode time.
Definition: calibrated_tracker_hit.h:47
bool has_delayed_time_error() const
Check if the delayed time error is stored.
static const std::string & bottom_cathode_time_key()
Name of the property to store optional bottom cathode time.
double get_delayed_time_error() const
Return the delayed reference time error of the hit.
Definition: calibrated_tracker_hit.h:40
Definition: calibrated_tracker_hit.h:44
Definition: calibrated_tracker_hit.h:42
static const std::string & anode_time_key()
Name of the property to store optional anode time.
bool is_peripheral() const
Check if the hit is marked as peripheral.
double get_z() const
Return the longitudinal position of the Geiger hit along the anode wire.
int32_t get_side() const
Return the number of the tracker submodule.
void set_anode_time(double)
Store the anode drift time as an auxiliary property.
bool get_trait_bit(uint32_t mask_) const
Interface to deal with trait bits.
Definition: calibrated_tracker_hit.h:45
calibrated_tracker_hit()
Default constructor.
bool is_fake() const
Check if the hit is marked as fake.
void set_xy(double x_, double y_)
Set the X/Y position of the center of the cell in the module coordinates system.
void _set_y(double)
Set the Y position of the center of the cell in the module coordinates system.
void set_peripheral(bool)
Mark/unmark the hit as peripheral.
std::vector< handle_type > collection_type
Alias for a collection of handles on calibrated tracker hits.
Definition: calibrated_tracker_hit.h:54
void _set_trait_bit(bool value_, uint32_t mask_)
Definition: calibrated_tracker_hit.h:41
void set_delayed_time(double ref_delayed_time_, double ref_delayed_time_error_=0.0)
Set the hit as delayed and store its referece delayed time and associated error.
double get_anode_time() const
Get the anode drift time from a stored auxiliary property.
bool has_xy() const
Check if the X/Y position of the center of the cell is stored.
void set_top_cathode_missing(bool)
Mark/unmark the hit lacking the measurement of the bottom cathode signal.
void set_delayed(bool)
Mark/unmark the hit as delayed.
int32_t get_layer() const
Return the layer.