5 #include "St2009WMaker.h"
6 #include "StEmcUtil/geometry/StEmcGeom.h"
7 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
12 St2009WMaker::passes_L0(){
21 for (
int m=0;m<300;m++)
22 if(muEve->emcTriggerDetector().highTower(m)>par_l0emulAdcThresh)
return true;
29 St2009WMaker::passes_L2(){
37 for (
int i=0;i<mxBtow;i++)
38 if (wEve.bemc.statTile[0][i]==0) {
39 float adc = wEve.bemc.adcTile[0][i];
40 float ET = adc*60./4096.;
41 if (ET>par_l2emulSeedThresh) {
44 if( L2algoEtaPhi2IJ(positionBtow[i].Eta(),positionBtow[i].Phi(),iEta,iPhi))
continue;
49 int I0=iEta-1;
int J0=iPhi-1;
50 for(
int I=I0;I<=I0+1;I++){
51 for(
int J=J0;J<=J0+1;J++) {
53 for(
int i=I;i<I+2;i++){
55 if(i>=mxBTetaBin)
continue;
56 for(
int j=J;j<J+2;j++) {
57 int jj=(j+mxBTphiBin)%mxBTphiBin;
59 int softID = mapBtowIJ2ID[ i+ jj*mxBTetaBin];
60 float adc = wEve.bemc.adcTile[kBTow][softID-1];
62 float ET = adc*60./4096.;
69 if(maxET>CL.ET)
continue;
75 if(maxET>par_l2emulClusterThresh)
return true;
83 St2009WMaker::patchToEtaPhi(
int patch,
int*eta,
int*phi)
85 if (patch<0 || patch>299)
87 printf(
"patchToEtaPhi p=%d, out of range. Eta phi not defined.\n",patch);
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)