* 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"
}
AliITSsimulationFastPointsV0::AliITSsimulationFastPointsV0(const char *dataType){
//constructor
+ Info("AliITSsimulationFastPointsV0","Standard constructor %s",dataType);
fSx = new AliITSstatistics(2);
fSz = new AliITSstatistics(2);
}
}
//-------------------------------------------------------------
-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
//_______________________________________________________________________
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
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 ",
//_______________________________________________________________________
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;
//_______________________________________________________________________
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;