Include the new TRD classes
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
CommitLineData
fe4da5cc 1#ifndef TRDv1_H
2#define TRDv1_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
fe4da5cc 8////////////////////////////////////////////////////////
9// Manager and hits classes for set:TRD version 1 //
10////////////////////////////////////////////////////////
5c7f4665 11
12// Energy spectrum of the delta-rays
13Double_t Ermilova(Double_t *x, Double_t *par);
851d3db9 14
15#include <TF1.h>
16
17#include "AliTRD.h"
5c7f4665 18
851d3db9 19//_____________________________________________________________________________
fe4da5cc 20class AliTRDv1 : public AliTRD {
21
851d3db9 22 public:
23
24 AliTRDv1() {};
fe4da5cc 25 AliTRDv1(const char *name, const char *title);
851d3db9 26 ~AliTRDv1();
5c7f4665 27 virtual void CreateGeometry();
28 virtual void CreateMaterials();
29 virtual Int_t IsVersion() const { return 1; };
30 virtual void StepManager();
851d3db9 31 virtual void Init();
32
5c7f4665 33 virtual void SetSensPlane(Int_t iplane = 0);
34 virtual void SetSensChamber(Int_t ichamber = 0);
35 virtual void SetSensSector(Int_t isector = 0);
851d3db9 36
37 virtual Int_t GetSensPlane() { return fSensPlane; };
38 virtual Int_t GetSensChamber() { return fSensChamber; };
39 virtual Int_t GetSensSector() { return fSensSector; };
40
41 protected:
42
5c7f4665 43 Int_t fIdSens; // Sensitive volume identifier
44
45 Int_t fIdChamber1; // Driftchamber volume identifier
46 Int_t fIdChamber2; //
47 Int_t fIdChamber3; //
48
49 Int_t fSensSelect; // Switch to select only parts of the detector
50 Int_t fSensPlane; // Sensitive detector plane
51 Int_t fSensChamber; // Sensitive detector chamber
52 Int_t fSensSector; // Sensitive detector sector
53
851d3db9 54 private:
82bbf98a 55
5c7f4665 56 virtual Double_t BetheBloch(Double_t bg);
82bbf98a 57
5c7f4665 58 TF1 *fDeltaE; // Energy distribution of the delta-electrons
59
60 ClassDef(AliTRDv1,1) // Transition Radiation Detector version 1 (slow simulator)
82bbf98a 61
fe4da5cc 62};
63
64#endif