* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 2000/07/10 16:07:19 fca
-Release version of ITS code
-
-*/
+/* $Id$ */
#include <TParticle.h>
#include <TRandom.h>
AliITSsimulationFastPointsV0::AliITSsimulationFastPointsV0()
{
+ // default constructor
+ fSx = 0;
+ fSz = 0;
+}
+AliITSsimulationFastPointsV0::AliITSsimulationFastPointsV0(const char *dataType){
//constructor
+ Info("AliITSsimulationFastPointsV0","Standard constructor %s",dataType);
fSx = new AliITSstatistics(2);
fSz = new AliITSstatistics(2);
}
AliITSsimulationFastPointsV0::~AliITSsimulationFastPointsV0()
{
//destructor
- delete fSx;
- delete fSz;
+ if(fSx) delete fSx;
+ if(fSz) delete fSz;
}
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
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 ",