Removed PadResponse(). Merge problem
[u/mrichter/AliRoot.git] / TOF / AliTOF.h
CommitLineData
fe4da5cc 1#ifndef TOF_H
2#define TOF_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:TOF //
10////////////////////////////////////////////////
11
12#include "AliDetector.h"
13#include "AliHit.h"
14
15
16class AliTOF : public AliDetector {
17
18protected:
19 Int_t fIdSens;
20
21public:
22 AliTOF();
23 AliTOF(const char *name, const char *title);
24 virtual ~AliTOF() {}
826b71ec 25 virtual void AddHit(Int_t, Int_t, Int_t, Int_t, Int_t, Float_t*);
19b66937 26 virtual void AddHit(Int_t track, Int_t *vol, Float_t*hits)
27 { AddHit(track, vol[0], vol[1], vol[2], vol[3], hits);}
fe4da5cc 28 virtual void BuildGeometry();
29 virtual void CreateGeometry();
30 virtual void CreateMaterials();
31 virtual void Init();
32 virtual Int_t IsVersion() const =0;
33 Int_t DistancetoPrimitive(Int_t px, Int_t py);
34 virtual void StepManager()=0;
937fe4a4 35 virtual void TOFpc(Float_t, Float_t, Float_t, Float_t, Float_t,Float_t) {}
8f72dc0c 36 virtual void DrawModule();
fe4da5cc 37
38 ClassDef(AliTOF,1) // Time Of Flight base class
39};
40
41//___________________________________________
42
43class AliTOFhit : public AliHit {
44public:
826b71ec 45 Int_t fSector; // number of sector
46 Int_t fPlate; // number of plate
47 Int_t fPad_x; // number of pad along x
48 Int_t fPad_z; // number of pad along z
fe4da5cc 49 Float_t fPx; // px in TOF
50 Float_t fPy; // py in TOF
51 Float_t fPz; // pz in TOF
52 Float_t fPmom; // P in TOF
53 Float_t fTof; // Time of Flight
54
55public:
56 AliTOFhit() {}
826b71ec 57 AliTOFhit(Int_t shunt, Int_t track, Int_t sector, Int_t plate, Int_t pad_x, Int_t pad_z, Float_t *hits);
fe4da5cc 58 virtual ~AliTOFhit() {}
59
60 ClassDef(AliTOFhit,1) // Hits for Time Of Flight
61};
62
63#endif