5 #include "StMcEtrHit.hh"
6 #include "tables/St_g2t_etr_hit_Table.h"
8 static const char rcsid[] =
"$Id: StMcEtrHit.cc,v 2.2 2015/07/22 19:29:17 jwebb Exp $";
13 ostream& operator<<(ostream& os, const
StMcEtrHit& h)
15 os <<
"StMcEtrHit" << endl;
17 os <<
"Layer : " << h.layer() << endl;
18 os <<
"Sector : " << h.sector() << endl;
22 StMcEtrHit::StMcEtrHit(g2t_etr_hit_st* pt) :
25 pt->de, pt->ds, pt->
tof, pt->id, pt->volume_id, 0) {}
28 int StMcEtrHit::layer()
const
33 int ilayer = (volumeId()/100)%100;
34 assert (ilayer <=2 || ilayer >=0);
42 int StMcEtrHit::sector()
const
45 int iSector = volumeId()/10000;
46 assert(iSector>=0 || iSector<=11);
50 void StMcEtrHit::Print(Option_t *option)
const {
53 cout <<
"\tLayer: " << layer()
54 <<
"\tSector: " << sector() << endl;;