]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use global gRandom generator (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Jul 2001 08:06:49 +0000 (08:06 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Jul 2001 08:06:49 +0000 (08:06 +0000)
ITS/AliITSdcsSSD.cxx
ITS/AliITSgeom.cxx
ITS/AliITSsimulationFastPoints.cxx

index 4e8942bce85c331e6aa1ee0e59935a2937471a9a..58cb57836c27d5be30c22dbc008f9d2e8c19df71 100644 (file)
@@ -18,7 +18,8 @@ AliITSdcsSSD::AliITSdcsSSD(AliITSsegmentation *seg, AliITSresponse *resp)
 {
   // constructor
 
 {
   // constructor
 
-    fRandom = new TRandom();
+  //MI    fRandom = new TRandom();
+    fRandom = gRandom;
 
     fNstrips = seg->Npx();
     
 
     fNstrips = seg->Npx();
     
index 5ed0938a1b4ef0acd9d0feca48890e8369280f1c..5f725cd02c04f1b1e02d32487066232412e02fc9 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
 
 /*
 $Log$
+Revision 1.16  2001/02/08 23:57:00  nilsen
+Fixed up some informational printouts.
+
 Revision 1.15  2001/02/07 20:23:21  nilsen
 Fixed bug with HP and no unget in iostream.h. Now using putback instead.
 Other changes and fixes also included.
 Revision 1.15  2001/02/07 20:23:21  nilsen
 Fixed bug with HP and no unget in iostream.h. Now using putback instead.
 Other changes and fixes also included.
@@ -968,7 +971,7 @@ void AliITSgeom::RandomChange(const Float_t *stran,const Float_t *srot){
 ////////////////////////////////////////////////////////////////////////
    Int_t    i,j;
    Double_t t[3],r[3];
 ////////////////////////////////////////////////////////////////////////
    Int_t    i,j;
    Double_t t[3],r[3];
-   TRandom ran;
+   //MI   TRandom ran;
    AliITSgeomMatrix *g;
 
    fTrans = (fTrans && 0xfffd) + 2;  // set bit 1 true.
    AliITSgeomMatrix *g;
 
    fTrans = (fTrans && 0xfffd) + 2;  // set bit 1 true.
@@ -977,8 +980,8 @@ void AliITSgeom::RandomChange(const Float_t *stran,const Float_t *srot){
          g->GetTranslation(t);
          g->GetAngles(r);
          for(j=0;j<3;j++){
          g->GetTranslation(t);
          g->GetAngles(r);
          for(j=0;j<3;j++){
-              t[j] += ran.Gaus(0.0,stran[j]);
-              r[j] += ran.Gaus(0.0, srot[j]);
+              t[j] += gRandom->Gaus(0.0,stran[j]);
+              r[j] += gRandom->Gaus(0.0, srot[j]);
          } // end for j
          g->SetTranslation(t);
          g->SetAngles(r);
          } // end for j
          g->SetTranslation(t);
          g->SetAngles(r);
index c6e16b98ef7612ef48b500d75386301932546e31..a8fea433545b18c55b27745669094b5a8b1bb90e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
 
 /*
 $Log$
+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.6  2000/10/29 18:30:14  barbera
 Z resolution of pixel changed according with the default lenght of 425 microns
 
@@ -146,9 +149,12 @@ void AliITSsimulationFastPoints::CreateFastRecPoints(AliITSmodule *mod, Int_t mo
           // Randomize position and deposited energy
            Int_t k=3*(Int_t)((hitlay-1)/2);
 
           // 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));
+           //     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
 
            // Apply energy threshold and trasform back to global reference 
            // system