17 : _hit_id(std::numeric_limits<int>::max()),
18 _detector_id(std::numeric_limits<short>::max()),
19 _element_id(std::numeric_limits<short>::max()),
20 _level(std::numeric_limits<short>::max()),
28 os <<
"---SQHit_v1--------------------" << endl;
41 os <<
"---------------------------------" << endl;
47 if (_hit_id == std::numeric_limits<int>::max())
return 0;
48 if (_detector_id == std::numeric_limits<short>::max())
return 0;
49 if (_element_id == std::numeric_limits<short>::max())
return 0;
50 if (_level == std::numeric_limits<short>::max())
return 0;
51 if (isnan(_tdc_time))
return 0;
52 if (isnan(_drift_distance))
return 0;
virtual short get_element_id() const
Return the element ID of this hit.
virtual float get_pos() const
Return the absolute position of this hit. Probably the value is not properly set at present...
void identify(std::ostream &os=std::cout) const
virtual float get_drift_distance() const
Return the drift distance of this hit. Probably the value is not properly set at present. Meaningful only if this hit is of drift chamber or prop tube.
virtual short get_detector_id() const
Return the detector ID of this hit.
virtual float get_tdc_time() const
Return the TDC time (nsec) of this hit.
virtual bool is_in_time() const
Return 'true' if this hit is in the time window.
virtual bool is_hodo_mask() const
Return 'true' if this hit is accepted (or masked out?) by the hodoscope masking. Meaningful only if t...
virtual int get_hit_id() const
Return the ID of this hit.
virtual bool is_trigger_mask() const
Return 'true' if this hit is accepted (or masked out?) by the trigger-road masking. Meaningful only if this hit is of drift chamber.
int isValid() const
isValid returns non zero if object contains vailid data
virtual short get_level() const
Return the trigger level of this hit. Meaningful only if this hit is of V1495 TDC.