27 #include "StMcFgtHit.hh"
29 static const char rcsid[] =
"$Id: StMcFgtHit.cc,v 2.6 2011/10/17 00:24:00 fisyak Exp $";
33 ostream& operator<<(ostream& os, const
StMcFgtHit& h)
35 os <<
"StMcFgtHit" << endl;
37 os <<
"Layer : " << h.layer() << endl;
38 os <<
"Quad : " << h.quad() << endl;
43 StMcFgtHit::layer()
const
48 Int_t numbv1 = volumeId()/1000000;
49 Int_t numbv2 = (volumeId()/10000)%100;
50 if(numbv2 != 0) iLayer = (ULong_t) numbv1 - 1;
56 StMcFgtHit::quad()
const
61 Int_t numbv1 = volumeId()/1000000;
62 Int_t numbv2 = (volumeId()/10000)%100;
63 if(numbv2 != 0) iQuad = (ULong_t) (numbv2 - 1);
64 else iQuad = (ULong_t) (numbv1 - 1);
69 void StMcFgtHit::Print(Option_t *option)
const {
72 cout <<
"\tLayer: " << layer()
73 <<
"\tQuad: " << quad() << endl;;