]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsimulationFastPoints.cxx
Some additional changes related to the previous changes. AliL3Transform
[u/mrichter/AliRoot.git] / ITS / AliITSsimulationFastPoints.cxx
index f094afaebb77b65c53268a08b6abd48c32080632..d68f164b1c4b4544653b26b16366a15f70bc7426 100644 (file)
 
 /*
 $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
 
@@ -41,7 +53,7 @@ AliITSsimulationFastPoints::AliITSsimulationFastPoints()
   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;
@@ -84,7 +96,7 @@ void AliITSsimulationFastPoints::CreateFastRecPoints(AliITSmodule *mod, Int_t mo
 
 
    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);
@@ -138,11 +150,14 @@ void AliITSsimulationFastPoints::CreateFastRecPoints(AliITSmodule *mod, Int_t mo
           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