7 char* file =
"R50530.MuDst.root",
14 file =
"R5015034x.MuDst.root";
16 inDir =
"/star/data05/scratch/balewski/outProd/R5086037/";
17 file=
"st_physics_5086037_raw_4040001-1*.MuDst.root";
20 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
21 loadSharedLibraries();
22 cout <<
" loading done " << endl;
29 muMk =
new StMuDstMaker(0,0,inDir,file,
"MuDst.root",nFiles);
39 if(eventCounter>=nEve)
break;
49 printf(
"\n\n ====================%d processing eventID %d nPrim=%d ==============\n", eventCounter++,info.id(),nPrim);
53 printf(
" No EMC data for this event\n");
72 printf(
"\Total %d hits in Tower (only ADC>0)\n",emc->getNEndcapTowerADC());
74 for (i=0; i< emc->getNEndcapTowerADC(); i++) {
75 emc->getEndcapTowerADC(i,adc,sec,sub,eta);
78 printf(
"i=%d Tower %2.2dT%c%2.2d adc=%4d\n",i,sec,sub+
'A'-1,eta,adc );
80 int adcX=1000+ (eta-1) + (sub-1)*12 +(sec-1)*60;
83 printf(
" Total %d towers with ADC>0\n",nh);
90 int sec,eta,sub,pre,adc;
94 nh= emc->getNEndcapPrsHits();
95 printf(
"\nTotal %d hits in pre1+2+post\n",nh);
96 for (i=0; i<nh; i++) {
97 hit=emc->getEndcapPrsHit(i,sec,sub,eta,pre);
98 int ss=sub + 5*(pre-1);
100 printf(
"i=%d pre/post(%d) %2.2d%c%c%2.2d : energy=%f adc=%d\n",i,pre,sec,pre+
'P'-1,sub+
'A'-1,eta,hit->
getEnergy(),adc);
101 int adcX= (eta-1) + (sub-1) *12 +(sec-1)*60 + 1000*pre;
115 for(uv=
'U'; uv<=
'V'; uv++) {
116 int nh= emc->getNEndcapSmdHits(uv);
117 printf(
"\nTotal %d hits in SMD-%c\n",nh,uv);
118 for (
int i=0; i<nh; i++) {
119 hit=emc->getEndcapSmdHit(uv,i,sec,strip);
121 printf(
" SMD-%c %2.2d%c%3.3d : energy=%f adc=%d\n",uv,sec,uv,strip,hit->
getEnergy(),adc);
122 int adcX= 1000 + strip-1 +(sec-1)*300;
float getEnergy() const
Return Hit energy.
virtual void Clear(Option_t *option="")
User defined functions.
int getAdc() const
Return ADC value.
virtual void ls(Option_t *option="") const
static TObjArray * primaryTracks()
returns pointer to a list of tracks belonging to the selected primary vertex
static StMuEmcCollection * muEmcCollection()
returns pointer to current StMuEmcCollection
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)