#include "PamVMCS4Dig.h" #include ClassImp(PamVMCS4Dig) void PamVMCS4Dig::Digitize(){ #ifdef DIG_DEBUG cout<<"Starting S4 Digitization...."<GetEntriesFast();i++){ hit = (PamVMCDetectorHit*)hc->At(i); Ert += hit->GetEREL(); NdF=Int_t(hit->GetEREL()/E1); NdFT=0; X=hit->GetXIN(); Y=hit->GetYIN(); Z=(Float_t)(random())/(Float_t)(0x7fffffff)-0.5; for(j=0;jXs[0] && xYs[0] && yZs[0] && zXs[0] && xYs[0] && yZs[0] && zXs[1]-p)&&(y>Ys[0]+p && yZs[0]+p && z=Yp[2*t] && yXs[0]+p && xYs[1]-p)&&(z>Zs[0]+p && zXs[0]+p && xYs[0]+p && yZs[1]-p))V[2]=-V[2]; x+=V[0]; y+=V[1]; z+=V[2]; l=0; } } } Ert=Ert/0.002; q=(Float_t)(random())/(Float_t)0x7fffffff; w=0.7; E0=4064./7.; if(Ert<1) S4=0; else S4=(Int_t)(4064.*(1.-exp(-(Ert-1.)/E0))); i=S4/4; if(S4%4==0) S4v=S4+S4p; else if(S4%4==1){ if(q