msamplingFraction=0.05; // towers are gain matched to fixed E_T const int maxAdc=4095; const int maxEtot=60; // in GeV const float feta[kEEmcNumEtas]= {1.95,1.855,1.765,1.675,1.59,1.51,1.435,1.365,1.3,1.235,1.17,1.115}; mfixTgain=new float [kEEmcNumEtas]; for (i=0;i< kEEmcNumEtas;i++) { mfixTgain[i]=maxAdc/maxEtot/cosh(feta[i])/msamplingFraction; } int adc=(int) (t->energy() * mfixTgain[eta-1]);
pre/post :
mfixPgain=23000; int adc= (int) (t->energy()* mfixPgain);SMD:
mfixSMDgain=23000; int adc= (int) (t->energy()* mfixSMDgain);Details in $STAR/StRoot/StEEmcSimulatorMaker/StEEmcFastMaker.cxx