]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsimulationFastPointsV0.cxx
Moving the functions used to initialize TF1 and TF2 to the pivate part of the class
[u/mrichter/AliRoot.git] / ITS / AliITSsimulationFastPointsV0.cxx
index c78d22f03c15c6f64d47dd80ecf413ac83df9cf3..0d0411edebae5c075f52c1da9c7ddc7cb82cff72 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.4  2000/10/02 16:34:28  barbera
-Forward declarations added
-
-Revision 1.1.2.4  2000/10/02 16:03:20  barbera
-Forward declarations added
-
-Revision 1.3  2000/09/22 12:44:34  nilsen
-Default track number set to -3 and not 0.
-
-Revision 1.2  2000/07/10 16:07:19  fca
-Release version of ITS code
-
-*/
-
-#include <TParticle.h>
-#include <TRandom.h>
+/* $Id$ */
 
 #include "AliITS.h"
 #include "AliITShit.h"
 #include "AliITSRecPoint.h"
 #include "AliITSmodule.h"
-#include "AliITSgeom.h"
 #include "AliITSsimulationFastPointsV0.h"
 #include "AliITSstatistics.h"
 
@@ -50,6 +32,7 @@ AliITSsimulationFastPointsV0::AliITSsimulationFastPointsV0()
 }
 AliITSsimulationFastPointsV0::AliITSsimulationFastPointsV0(const char *dataType){
   //constructor
+  Info("AliITSsimulationFastPointsV0","Standard constructor %s",dataType);
   fSx = new AliITSstatistics(2);
   fSz = new AliITSstatistics(2);
 }
@@ -64,13 +47,14 @@ AliITSsimulationFastPointsV0::~AliITSsimulationFastPointsV0()
 }
 
 //-------------------------------------------------------------
-void AliITSsimulationFastPointsV0::CreateFastRecPoints(AliITSmodule *mod,Int_t module,TRandom *rndm){
+void AliITSsimulationFastPointsV0::CreateFastRecPoints(AliITSmodule *mod,Int_t module,TRandom *rndm) {
   // Fast points simulator for all of the ITS.
   Int_t   nhit,h,trk,ifirst;
   Float_t x,y,z,t,e;// local coordinate (cm) and time of flight, and dedx.
   Float_t x1,y1,z1;
   AliITShit *hit;
 
+  if(rndm!=0) module=0; // fix unsued parameter warnings.
   fSx->Reset(); // Start out with things clearly zeroed
   fSz->Reset(); // Start out with things clearly zeroed
   e = 0.; // Start out with things clearly zeroed
@@ -117,6 +101,8 @@ void AliITSsimulationFastPointsV0::CreateFastRecPoints(AliITSmodule *mod,Int_t m
 //_______________________________________________________________________
 void AliITSsimulationFastPointsV0::AddSPD(Float_t &e,
                                         AliITSmodule *mod,Int_t trackNumber){
+  //
+
   const Float_t kmicronTocm = 1.0e-4;
   //  const Float_t kdEdXtoQ = ;
   const Float_t kRMSx = 12.0*kmicronTocm; // microns->cm ITS TDR Table 1.3
@@ -129,7 +115,7 @@ void AliITSsimulationFastPointsV0::AddSPD(Float_t &e,
   rpSPD.fTracks[2]=-3;
   rpSPD.SetX(fSx->GetMean());
   rpSPD.SetZ(fSz->GetMean());
-  rpSPD.SetdEdX(0.0);
+  rpSPD.SetdEdX(e);
   rpSPD.SetQ(1.0);
   a1 = fSx->GetRMS(); a1 *= a1; a1 += kRMSx*kRMSx;
   //  if(a1>1.E5) printf("addSPD: layer=%d track #%d dedx=%e sigmaX2= %e ",
@@ -144,6 +130,7 @@ void AliITSsimulationFastPointsV0::AddSPD(Float_t &e,
 //_______________________________________________________________________
 void AliITSsimulationFastPointsV0::AddSDD(Float_t &e,
                                         AliITSmodule *mod,Int_t trackNumber){
+  //
 
   const Float_t kmicronTocm = 1.0e-4;
   const Float_t kdEdXtoQ = 2.778e+8; 
@@ -172,6 +159,7 @@ void AliITSsimulationFastPointsV0::AddSDD(Float_t &e,
 //_______________________________________________________________________
 void AliITSsimulationFastPointsV0::AddSSD(Float_t &e,
                                         AliITSmodule *mod,Int_t trackNumber){
+  // 
 
   const Float_t kmicronTocm = 1.0e-4;
   const Float_t kdEdXtoQ = 2.778e+8;