17 _hit_id(std::numeric_limits<int>::max()),
18 _detector_id(std::numeric_limits<int>::max()),
19 _element_id(std::numeric_limits<int>::max())
25 os <<
"---SQCalHit_v1--------------------" << endl;
28 os <<
"---------------------------------" << endl;
34 if (_hit_id == std::numeric_limits<int>::max())
return 0;
40 auto it = _cells.find(cellID);
41 if(it != _cells.end())
return it->second;
47 if(_cells.find(cellID) != _cells.end())
48 _cells[cellID] += edep;
50 _cells[cellID] = edep;
int isValid() const
isValid returns non zero if object contains vailid data
virtual float get_cell(short i) const
virtual short get_detector_id() const
Return the detector ID of this hit.
virtual void add_cell(short i, float edep)
virtual short get_element_id() const
Return the element ID of this hit.
void identify(std::ostream &os=std::cout) const
virtual int get_hit_id() const
Return the ID of this hit.
virtual float get_edep() const
Not valid in E1039. To be deleted.