32 #include "StMcCtbHit.hh"
33 static const char rcsid[] =
"$Id: StMcCtbHit.cc,v 2.7 2011/10/17 00:24:00 fisyak Exp $";
39 ostream& operator<<(ostream& os, const
StMcCtbHit& h)
41 os <<
"CtbHit\t" << *((
StMcHit *) &h);
44 h.get_slat_tray(slat,tray);
45 os <<
"\tSlat: " << slat
47 <<
" TofF: " << h.tof();
51 void StMcCtbHit::get_slat_tray(
unsigned int &slat_out,
unsigned int &tray_out )
const {
53 unsigned int volume = mVolumeId;
54 int i_phi =
static_cast<int>(fmod(volume,100.)) ;
59 i1 = int(volume/100) ;
62 if ( i_phi < 1 ) i_phi = i_phi + 60 ;
63 if ( i1 == 11 ) i_eta = 3 ;
65 if ( i1 == 12 ) i_eta = 4 ;
69 if ( i_phi < 1 ) i_phi = i_phi + 60 ;
70 if ( i1 == 21 ) i_eta = 2 ;
72 if ( i1 == 22 ) i_eta = 1 ;