#include "AliRun.h"
#include "AliTRDgeometry.h"
-#include "AliTRDparameter.h"
#include "AliTRDsimpleMC.h"
#include "AliTRDv1.h"
-#include "AliTRDparameter.h"
#include "AliMC.h"
-
+
ClassImp(AliTRDsimpleMC)
//_____________________________________________________________________________
fTrackEntering = kFALSE;
fTRD = NULL;
- fPar = NULL;
-
-}
+
+}
//_____________________________________________________________________________
AliTRDsimpleMC::AliTRDsimpleMC(const char *name, const char *title)
fTrackEntering = kFALSE;
fTRD = NULL;
- fPar = NULL;
-
-}
+
+}
//_____________________________________________________________________________
AliTRDsimpleMC::AliTRDsimpleMC(const AliTRDsimpleMC &m):TVirtualMC(m)
}
//_____________________________________________________________________________
-void AliTRDsimpleMC::Copy(TObject &m)
+void AliTRDsimpleMC::Copy(TObject &m) const
{
//
// Copy function
// Starts a new track.
//
- if (!fPar) {
- fPar = new AliTRDparameter("TRDparameter","Standard TRD parameter");
- }
-
if (!fTRD) {
fTRD = (AliTRDv1 *) gAlice->GetDetector("TRD");
- fX0 = fPar->GetTime0(0) - AliTRDgeometry::DrThick();
+ fX0 = AliTRDgeometry::GetTime0(0) - AliTRDgeometry::DrThick();
}
fTRD->ResetHits();
// Check for the current volume
//
- Char_t *volName = "UA00";
+ const char *volName = "UA00";
// Drift region
if ((fTrackX-fX0) < AliTRDgeometry::DrThick()) {