29 #include "StEmcModule.h"
30 #include "StEmcRawHit.h"
33 static const char rcsid[] =
"$Id: StEmcModule.cxx,v 2.5 2011/09/06 21:33:02 ullrich Exp $";
39 StEmcModule::~StEmcModule() { }
42 StEmcModule::numberOfHits()
const {
return mHits.size();}
45 StEmcModule::printNumberOfHits()
const
47 if(numberOfHits()==0) printf(
" ** no hits ** : module number is unknown **");
48 else printf(
" m %i : nhits %i\n", mHits[0]->module(), numberOfHits());
53 StEmcModule::getEnergy(
const int pri)
const
58 det = mHits[0]->detector()-kBarrelEmcTowerIdentifier + 1;
59 for(
unsigned int i=0; i<mHits.size(); i++) {
60 e = mHits[i]->energy();
63 int id = mHits[i]->softId(det);
64 printf(
" %3i hits : id %i : adc %i : e %9.4f",
65 i+1,
id, mHits[i]->adc(), e);
66 if(e<=0) printf(
" !!");
70 if(pri>0) printf(
"det %i : m %i : Energy %9.3f GeV/C\n",
71 det, mHits[0]->module(), eM);
76 const StSPtrVecEmcRawHit&
77 StEmcModule::hits()
const {
return mHits; }
80 StEmcModule::hits() {
return mHits; }
82 bool StEmcModule::IsFolder()
const
84 if(mHits.size()>0)
return kTRUE;