/*
$Log$
+Revision 1.8 2001/07/27 08:06:49 hristov
+Use global gRandom generator (M.Ivanov)
+
+Revision 1.7 2001/05/11 09:15:21 barbera
+Corrected to make fast point creation working with PPR geometry
+
+Revision 1.6 2000/10/29 18:30:14 barbera
+Z resolution of pixel changed according with the default lenght of 425 microns
+
+Revision 1.1.2.6 2000/10/29 18:29:51 barbera
+Z resolution of pixel changed according with the default lenght of 425 microns
+
Revision 1.1.2.5 2000/10/02 16:03:20 barbera
Forward declarations added
fSigmaRPhi[0] = fSigmaRPhi[1] = 12e-4;
fSigmaRPhi[2] = fSigmaRPhi[3] = 38e-4;
fSigmaRPhi[4] = fSigmaRPhi[5] = 20e-4;
- fSigmaZ[0] = fSigmaZ[1] = 70e-4;
+ fSigmaZ[0] = fSigmaZ[1] = 120e-4; // resolution for 425 micron pixels
fSigmaZ[2] = fSigmaZ[3] = 28e-4;
fSigmaZ[4] = fSigmaZ[5] = 830e-4;
fSigmaDe[0] = fSigmaDe[1] = 0.72e-6;
numofhits = mod->GetNhits();
- printf("numofhits %d \n",numofhits);
+ //printf("numofhits %d \n",numofhits);
flag = 1;
for(ihit=0;ihit<numofhits;ihit++){
AliITShit *hit=mod->GetHit(ihit);
sigmade = SigmaDe(hitlay);
thrde = ThrDe(hitlay);
// Randomize position and deposited energy
- Int_t k=3*(Int_t)((hitlay-1)/2);
-
- deltaXl = (float)(random[k].Gaus(0,sigmarphi));
- deltaZl = (float)(random[k+1].Gaus(0,sigmaz));
- deltaDe = (float)(random[k+2].Gaus(0,sigmade));
+// Int_t k=3*(Int_t)((hitlay-1)/2);
+
+ // deltaXl = (float)(random[k].Gaus(0,sigmarphi));
+ // deltaZl = (float)(random[k+1].Gaus(0,sigmaz));
+ // deltaDe = (float)(random[k+2].Gaus(0,sigmade));
+ deltaXl = random->Gaus(0,sigmarphi);
+ deltaZl = random->Gaus(0,sigmaz);
+ deltaDe = random->Gaus(0,sigmade);
// Apply energy threshold and trasform back to global reference
// system