30 virtual void identify(std::ostream& os = std::cout)
const {
31 os <<
"---SQHit base class------------" << std::endl;
39 virtual int get_hit_id()
const {
return std::numeric_limits<int>::max();}
45 virtual short get_element_id()
const {
return std::numeric_limits<short>::max();}
48 virtual short get_tower_id()
const {
return std::numeric_limits<short>::max();}
51 virtual short get_level()
const {
return std::numeric_limits<short>::max();}
54 virtual float get_tdc_time()
const {
return std::numeric_limits<float>::max();}
60 virtual float get_pos()
const {
return std::numeric_limits<float>::max();}
63 virtual float get_edep()
const {
return std::numeric_limits<float>::max();}
66 virtual int get_track_id()
const {
return std::numeric_limits<int>::max();}
72 virtual float get_truth_x()
const {
return std::numeric_limits<float>::max();}
75 virtual float get_truth_y()
const {
return std::numeric_limits<float>::max();}
78 virtual float get_truth_z()
const {
return std::numeric_limits<float>::max();}
81 virtual float get_truth_px()
const {
return std::numeric_limits<float>::max();}
84 virtual float get_truth_py()
const {
return std::numeric_limits<float>::max();}
87 virtual float get_truth_pz()
const {
return std::numeric_limits<float>::max();}
99 virtual unsigned int get_n_cells()
const {
return std::numeric_limits<int>::max(); }
101 virtual float get_cell(
unsigned int i)
const {
return std::numeric_limits<float>::max(); }
virtual void set_truth_z(const float a)
virtual void set_pos(const float a)
virtual void set_hodo_mask(const bool a)
virtual float get_pos() const
Return the absolute position of this hit. Probably the value is not properly set at present...
virtual void add_cell(unsigned int i, float a)
virtual void Reset()
Clear Event.
virtual void set_tdc_time(const float a)
virtual float get_truth_py() const
Return the true y-momentum of this hit. Meaningful only if this hit is of MC.
virtual float get_truth_pz() const
Return the true z-momentum of this hit. Meaningful only if this hit is of MC.
virtual void set_level(const short a)
An SQ interface class to hold one detector hit.
virtual void set_truth_px(const float a)
virtual void set_detector_id(const short a)
virtual SQHit * Clone() const
virtual void set_track_id(const int a)
virtual float get_truth_x() const
Return the true x-position of this hit. Meaningful only if this hit is of MC.
virtual void identify(std::ostream &os=std::cout) const
virtual bool is_in_time() const
Return 'true' if this hit is in the time window.
virtual void set_truth_y(const float a)
virtual float get_edep() const
Not valid in E1039. To be deleted.
virtual void set_drift_distance(const float a)
virtual short get_tower_id() const
Not valid in E1039. To be deleted.
virtual unsigned int get_n_cells() const
Return the number of cells included in this hit.
virtual void set_truth_pz(const float a)
virtual PHG4HitDefs::keytype get_g4hit_id() const
Return the Geant-hit ID associated with this hit.
virtual CellMap get_cells() const
Return the list of all cells included in this hit.
std::map< short, float > CellMap
key -> plateID, float -> edep
virtual int get_track_id() const
Return the track ID associated with this hit. Probably the value is not properly set at present...
virtual void set_trigger_mask(const bool a)
virtual short get_detector_id() const
Return the detector ID of this hit.
virtual void set_truth_x(const float a)
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 float get_tdc_time() const
Return the TDC time (nsec) of this hit.
virtual float get_cell(unsigned int i) const
Return the 'edep' value of the i-th cell.
virtual void set_g4hit_id(const PHG4HitDefs::keytype a)
virtual float get_truth_px() const
Return the true x-momentum of this hit. Meaningful only if this hit is of MC.
virtual void set_in_time(const bool a)
virtual float get_truth_z() const
Return the true z-position of this hit. Meaningful only if this hit is of MC.
virtual void set_hit_id(const int a)
virtual int isValid() const
isValid returns non zero if object contains vailid data
virtual int get_hit_id() const
Return the ID of this hit.
virtual void set_element_id(const short a)
virtual void set_tower_id(const short a)
virtual short get_level() const
Return the trigger level of this hit. Meaningful only if this hit is of V1495 TDC.
virtual short get_element_id() const
Return the element ID of this hit.
virtual float get_truth_y() const
Return the true y-position of this hit. Meaningful only if this hit is of MC.
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.
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 void set_truth_py(const float a)
virtual void set_edep(const float a)