-#ifndef TRDv2_H
-#define TRDv2_H
+#ifndef ALITRDV2_H
+#define ALITRDV2_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
////////////////////////////////////////////////////////
-// Manager and hits classes for set:TRD version 2 //
+// Manager and hits classes for set: TRD version 2 //
////////////////////////////////////////////////////////
-
-#include <TF1.h>
-#include "AliTRD.h"
-// Energy spectrum of the delta-rays
-Double_t Ermilova(Double_t *x, Double_t *par);
+#include "AliTRDv1.h"
+
+//_____________________________________________________________________________
+class AliTRDv2 : public AliTRDv1 {
-class AliTRDv2 : public AliTRD {
+ public:
-public:
- AliTRDv2() {}
+ AliTRDv2();
AliTRDv2(const char *name, const char *title);
- virtual ~AliTRDv2();
- virtual void CreateGeometry();
- virtual void CreateMaterials();
- virtual Int_t IsVersion() const {return 2;}
- virtual void StepManager();
- virtual void SetSensPlane(Int_t iplane = 0);
- virtual void SetSensChamber(Int_t ichamber = 0);
- virtual void SetSensSector(Int_t isector = 0);
- virtual void Init();
-
-protected:
- Int_t fIdSens; // Sensitive volume identifier
-
- Int_t fIdSpace1; // Spaceframe volume identifier
- Int_t fIdSpace2; //
- Int_t fIdSpace3; //
-
- Int_t fIdChamber1; // Driftchamber volume identifier
- Int_t fIdChamber2; //
- Int_t fIdChamber3; //
-
- Int_t fSensSelect; // Switch to select only parts of the detector
- Int_t fSensPlane; // Sensitive detector plane
- Int_t fSensChamber; // Sensitive detector chamber
- Int_t fSensSector; // Sensitive detector sector
-
-private:
- virtual Double_t BetheBloch(Double_t bg);
-
- TF1 *fDeltaE; // Energy distribution of the delta-electrons
-
- ClassDef(AliTRDv2,1) // Transition Radiation Detector version 2
+ AliTRDv2(const AliTRDv2 &trd);
+ virtual ~AliTRDv2();
+ AliTRDv2 &operator=(const AliTRDv2 &trd);
+
+ virtual void Copy(TObject &trd);
+ virtual void CreateGeometry();
+ virtual void CreateMaterials();
+ virtual Int_t IsVersion() const { return 2; };
+
+ protected:
+
+ private:
+
+ ClassDef(AliTRDv2,1) // Transition Radiation Detector version 2 (slow simulator,detailed geometry)
};