]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDv1.h
Dimitri just makes it work
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
CommitLineData
8230f242 1#ifndef ALITRDV1_H
2#define ALITRDV1_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
8230f242 24 AliTRDv1();
fe4da5cc 25 AliTRDv1(const char *name, const char *title);
dd9a6ee3 26 AliTRDv1(const AliTRDv1 &trd);
8230f242 27 virtual ~AliTRDv1();
dd9a6ee3 28 AliTRDv1 &operator=(const AliTRDv1 &trd);
8230f242 29
43da34c0 30 virtual void Copy(TObject &trd);
5c7f4665 31 virtual void CreateGeometry();
32 virtual void CreateMaterials();
8230f242 33 virtual Int_t IsVersion() const { return 1; };
5c7f4665 34 virtual void StepManager();
851d3db9 35 virtual void Init();
36
6f1e466d 37 void SetSensPlane(Int_t iplane = 0);
38 void SetSensChamber(Int_t ichamber = 0);
9d0b222b 39 void SetSensSector(Int_t isector);
40 void SetSensSector(Int_t isector, Int_t nsector);
851d3db9 41
8230f242 42 Int_t GetSensPlane() { return fSensPlane; };
43 Int_t GetSensChamber() { return fSensChamber; };
44 Int_t GetSensSector() { return fSensSector; };
9d0b222b 45 Int_t GetSensSectorRange() { return fSensSectorRange; };
851d3db9 46
47 protected:
48
5c7f4665 49 Int_t fIdSens; // Sensitive volume identifier
50
51 Int_t fIdChamber1; // Driftchamber volume identifier
8230f242 52 Int_t fIdChamber2; // Driftchamber volume identifier
53 Int_t fIdChamber3; // Driftchamber volume identifier
5c7f4665 54
55 Int_t fSensSelect; // Switch to select only parts of the detector
56 Int_t fSensPlane; // Sensitive detector plane
57 Int_t fSensChamber; // Sensitive detector chamber
9d0b222b 58 Int_t fSensSector; // Sensitive detector sector
59 Int_t fSensSectorRange; // Sensitive detector range
5c7f4665 60
851d3db9 61 private:
82bbf98a 62
5c7f4665 63 virtual Double_t BetheBloch(Double_t bg);
82bbf98a 64
5c7f4665 65 TF1 *fDeltaE; // Energy distribution of the delta-electrons
66
67 ClassDef(AliTRDv1,1) // Transition Radiation Detector version 1 (slow simulator)
82bbf98a 68
fe4da5cc 69};
70
71#endif