1 #ifndef _H_SQCalHit_v1_H_
2 #define _H_SQCalHit_v1_H_
19 void identify(std::ostream& os = std::cout)
const;
38 virtual void set_edep(
const float a) {_edep = a;}
40 virtual unsigned int get_n_cells()
const {
return _cells.size();}
42 virtual float get_cell(
short i)
const;
43 virtual void add_cell(
short i,
float edep);
virtual CellMap get_cells() const
Return the list of all cells included in this hit.
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 set_edep(const float a)
virtual short get_tower_id() const
Not valid in E1039. To be deleted.
virtual void add_cell(short i, float edep)
virtual void set_hit_id(const int a)
virtual short get_element_id() const
Return the element ID of this hit.
virtual unsigned int get_n_cells() const
Return the number of cells included in this hit.
virtual void set_element_id(const short id)
void identify(std::ostream &os=std::cout) const
virtual void set_tower_id(const short id)
virtual int get_hit_id() const
Return the ID of this hit.
virtual float get_edep() const
Not valid in E1039. To be deleted.
virtual void set_detector_id(const short a)
An SQ interface class to hold one detector hit.
std::map< short, float > CellMap
key -> plateID, float -> edep