#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-02-24/DDTMonopole/Track.h"
Public Member Functions | |
Track (novaddt::DAQHit const &start, novaddt::DAQHit const &end) | |
Track (art::Ptr< rb::CellHit > const &start, art::Ptr< rb::CellHit > const &end) | |
double | time () const |
double | distance () const |
double | velocity () const |
double | beta () const |
bool | slope_plane_is_valid () const |
double | slope_cell_plane () const |
double | slope_time_plane () const |
bool | slope_time_is_valid () const |
double | slope_cell_time () const |
double | slope_plane_time () const |
bool | slope_cell_is_valid () const |
double | slope_time_cell () const |
unsigned | max_plane () const |
unsigned | min_plane () const |
int | plane_difference () const |
unsigned | max_cell () const |
unsigned | min_cell () const |
int | cell_difference () const |
void | mark_as_good () |
bool | is_good () const |
void | set (std::string const &name, double value) |
template<class T > | |
void | set (std::map< std::string, T > const &info, std::string const &prefix="") |
double | get (std::string const &name) const |
novaddt::DAQHit | start_ddt () const |
novaddt::DAQHit | end_ddt () const |
art::Ptr< rb::CellHit > | start_rb () const |
art::Ptr< rb::CellHit > | end_rb () const |
Private Member Functions | |
double | calculate_distance () const |
double | calculate_velocity () const |
void | calculate_slopes () |
Private Attributes | |
unsigned | max_plane_ |
unsigned | min_plane_ |
unsigned | max_cell_ |
unsigned | min_cell_ |
double | dp_ |
double | dc_ |
double | dt_ |
double | distance_ |
double | velocity_ |
double | beta_ |
double | slope_cell_plane_ |
double | slope_time_plane_ |
double | slope_cell_time_ |
double | slope_plane_time_ |
double | slope_time_cell_ |
bool | slope_plane_is_valid_ |
bool | slope_time_is_valid_ |
bool | slope_cell_is_valid_ |
bool | is_ddt_ |
novaddt::DAQHit | start_ddt_ |
novaddt::DAQHit | end_ddt_ |
art::Ptr< rb::CellHit > | start_rb_ |
art::Ptr< rb::CellHit > | end_rb_ |
std::string | goodness_ |
std::map< std::string, double > | info_ |
mono::Track::Track | ( | novaddt::DAQHit const & | start, |
novaddt::DAQHit const & | end | ||
) |
Definition at line 7 of file Track.cxx.
References beta_, calculate_distance(), calculate_slopes(), calculate_velocity(), novaddt::DAQHit::Cell(), dc_, distance_, dp_, dt_, std::max(), max_cell_, max_plane_, std::min(), min_cell_, min_plane_, novaddt::DAQHit::Plane(), novaddt::smt::Constants::SPEED_OF_LIGHT, novaddt::DAQHit::TDC(), novaddt::TDC::val, novaddt::Plane::val, novaddt::Cell::val, and velocity_.
mono::Track::Track | ( | art::Ptr< rb::CellHit > const & | start, |
art::Ptr< rb::CellHit > const & | end | ||
) |
Definition at line 32 of file Track.cxx.
References beta_, calculate_distance(), calculate_slopes(), calculate_velocity(), rb::CellHit::Cell(), dc_, distance_, dp_, dt_, std::max(), max_cell_, max_plane_, std::min(), min_cell_, min_plane_, rb::CellHit::Plane(), novaddt::smt::Constants::SPEED_OF_LIGHT, rawdata::RawDigit::TDC(), and velocity_.
double mono::Track::beta | ( | ) | const |
Definition at line 129 of file Track.cxx.
References beta_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), and mono::Cluster::good_track().
|
private |
Definition at line 58 of file Track.cxx.
References novaddt::smt::Constants::CELL_WIDTH, dc_, dp_, dx, dz, novaddt::smt::Constants::PLANE_WIDTH, and std::sqrt().
Referenced by Track().
|
private |
Definition at line 77 of file Track.cxx.
References dc_, dp_, dt_, slope_cell_is_valid_, slope_cell_plane_, slope_cell_time_, slope_plane_is_valid_, slope_plane_time_, slope_time_cell_, slope_time_is_valid_, and slope_time_plane_.
Referenced by Track().
|
private |
int mono::Track::cell_difference | ( | ) | const |
double mono::Track::distance | ( | ) | const |
Definition at line 108 of file Track.cxx.
References distance_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), mono::Cluster::good_track(), and mono::SlowMonopoleTrigger::good_track().
novaddt::DAQHit mono::Track::end_ddt | ( | ) | const |
Definition at line 330 of file Track.cxx.
References ana::assert(), om::cerr, end_ddt_, allTimeWatchdog::endl, and is_ddt_.
art::Ptr< rb::CellHit > mono::Track::end_rb | ( | ) | const |
Definition at line 358 of file Track.cxx.
References ana::assert(), om::cerr, end_rb_, allTimeWatchdog::endl, and is_ddt_.
double mono::Track::get | ( | std::string const & | name | ) | const |
Definition at line 303 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, and info_.
unsigned mono::Track::max_cell | ( | ) | const |
Definition at line 266 of file Track.cxx.
References max_cell_.
Referenced by mono::Cluster::hit_is_between_track_end_points(), and mono::SlowMonopoleTrigger::hit_is_between_track_end_points().
unsigned mono::Track::max_plane | ( | ) | const |
Definition at line 245 of file Track.cxx.
References max_plane_.
Referenced by mono::Cluster::hit_is_between_track_end_points(), and mono::SlowMonopoleTrigger::hit_is_between_track_end_points().
unsigned mono::Track::min_cell | ( | ) | const |
Definition at line 259 of file Track.cxx.
References min_cell_.
Referenced by mono::Cluster::hit_is_between_track_end_points(), and mono::SlowMonopoleTrigger::hit_is_between_track_end_points().
unsigned mono::Track::min_plane | ( | ) | const |
Definition at line 238 of file Track.cxx.
References min_plane_.
Referenced by mono::Cluster::hit_is_between_track_end_points(), and mono::SlowMonopoleTrigger::hit_is_between_track_end_points().
int mono::Track::plane_difference | ( | ) | const |
Definition at line 232 of file Track.cxx.
References dp_.
Referenced by mono::Cluster::good_track(), and mono::SlowMonopoleTrigger::good_track().
void mono::Track::set | ( | std::string const & | name, |
double | value | ||
) |
Definition at line 290 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, and info_.
void mono::Track::set | ( | std::map< std::string, T > const & | info, |
std::string const & | prefix = "" |
||
) |
bool mono::Track::slope_cell_is_valid | ( | ) | const |
Definition at line 150 of file Track.cxx.
References slope_cell_is_valid_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), mono::Cluster::make(), and slope_time_cell().
double mono::Track::slope_cell_plane | ( | ) | const |
Definition at line 157 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, slope_cell_plane_, and slope_plane_is_valid().
Referenced by mono::Cluster::hit_is_on_road(), and mono::SlowMonopoleTrigger::hit_is_on_road().
double mono::Track::slope_cell_time | ( | ) | const |
Definition at line 187 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, slope_cell_time_, and slope_time_is_valid().
Referenced by mono::SlowMonopoleTrigger::algorithm(), and mono::Cluster::make().
bool mono::Track::slope_plane_is_valid | ( | ) | const |
Definition at line 136 of file Track.cxx.
References slope_plane_is_valid_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), mono::Cluster::hit_is_in_time_with_road(), mono::SlowMonopoleTrigger::hit_is_in_time_with_road(), mono::Cluster::hit_is_on_road(), mono::SlowMonopoleTrigger::hit_is_on_road(), mono::Cluster::make(), slope_cell_plane(), and slope_time_plane().
double mono::Track::slope_plane_time | ( | ) | const |
Definition at line 202 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, slope_plane_time_, and slope_time_is_valid().
Referenced by mono::SlowMonopoleTrigger::algorithm(), and mono::Cluster::make().
double mono::Track::slope_time_cell | ( | ) | const |
Definition at line 217 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, slope_cell_is_valid(), and slope_time_cell_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), and mono::Cluster::make().
bool mono::Track::slope_time_is_valid | ( | ) | const |
Definition at line 143 of file Track.cxx.
References slope_time_is_valid_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), mono::Cluster::make(), slope_cell_time(), and slope_plane_time().
double mono::Track::slope_time_plane | ( | ) | const |
Definition at line 172 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, slope_plane_is_valid(), and slope_time_plane_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), mono::Cluster::hit_is_in_time_with_road(), mono::SlowMonopoleTrigger::hit_is_in_time_with_road(), and mono::Cluster::make().
novaddt::DAQHit mono::Track::start_ddt | ( | ) | const |
Definition at line 316 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, is_ddt_, and start_ddt_.
Referenced by mono::SlowMonopoleTrigger::algorithm(), mono::SlowMonopoleTrigger::hit_is_in_time_with_road(), and mono::SlowMonopoleTrigger::hit_is_on_road().
art::Ptr< rb::CellHit > mono::Track::start_rb | ( | ) | const |
Definition at line 344 of file Track.cxx.
References ana::assert(), om::cerr, allTimeWatchdog::endl, is_ddt_, and start_rb_.
Referenced by mono::Cluster::hit_is_in_time_with_road(), mono::Cluster::hit_is_on_road(), and mono::Cluster::make().
double mono::Track::velocity | ( | ) | const |
Definition at line 122 of file Track.cxx.
References velocity_.
Referenced by mono::SlowMonopoleTrigger::good_track().
|
private |
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_distance(), calculate_slopes(), cell_difference(), and Track().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_velocity(), distance(), and Track().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_distance(), calculate_slopes(), plane_difference(), and Track().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_slopes(), calculate_velocity(), time(), and Track().
|
private |
|
private |
|
private |
Definition at line 78 of file Track.h.
Referenced by is_good(), and mark_as_good().
|
private |
|
private |
Definition at line 74 of file Track.h.
Referenced by end_ddt(), end_rb(), start_ddt(), and start_rb().
|
private |
Definition at line 65 of file Track.h.
Referenced by max_cell(), and Track().
|
private |
Definition at line 65 of file Track.h.
Referenced by max_plane(), and Track().
|
private |
Definition at line 65 of file Track.h.
Referenced by min_cell(), and Track().
|
private |
Definition at line 65 of file Track.h.
Referenced by min_plane(), and Track().
|
private |
Definition at line 72 of file Track.h.
Referenced by calculate_slopes(), and slope_cell_is_valid().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_slopes(), and slope_cell_plane().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_slopes(), and slope_cell_time().
|
private |
Definition at line 72 of file Track.h.
Referenced by calculate_slopes(), and slope_plane_is_valid().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_slopes(), and slope_plane_time().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_slopes(), and slope_time_cell().
|
private |
Definition at line 72 of file Track.h.
Referenced by calculate_slopes(), and slope_time_is_valid().
|
private |
Definition at line 67 of file Track.h.
Referenced by calculate_slopes(), and slope_time_plane().
|
private |
Definition at line 75 of file Track.h.
Referenced by start_ddt().
|
private |
Definition at line 76 of file Track.h.
Referenced by start_rb().
|
private |
Definition at line 67 of file Track.h.
Referenced by Track(), and velocity().