This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / TOF / AliTOF.h
CommitLineData
fe4da5cc 1#ifndef TOF_H
2#define TOF_H
3////////////////////////////////////////////////
4// Manager and hits classes for set:TOF //
5////////////////////////////////////////////////
6
7#include "AliDetector.h"
8#include "AliHit.h"
9
10
11class AliTOF : public AliDetector {
12
13protected:
14 Int_t fIdSens;
15
16public:
17 AliTOF();
18 AliTOF(const char *name, const char *title);
19 virtual ~AliTOF() {}
20 virtual void AddHit(Int_t, Int_t*, Float_t*);
21 virtual void BuildGeometry();
22 virtual void CreateGeometry();
23 virtual void CreateMaterials();
24 virtual void Init();
25 virtual Int_t IsVersion() const =0;
26 Int_t DistancetoPrimitive(Int_t px, Int_t py);
27 virtual void StepManager()=0;
28 virtual void TOFpc(Float_t, Float_t, Float_t, Float_t, Float_t) {}
29 virtual void DrawDetector();
30
31 ClassDef(AliTOF,1) // Time Of Flight base class
32};
33
34//___________________________________________
35
36class AliTOFhit : public AliHit {
37public:
38 Int_t fVolume[3]; //array of volumes
39 Float_t fPx; // px in TOF
40 Float_t fPy; // py in TOF
41 Float_t fPz; // pz in TOF
42 Float_t fPmom; // P in TOF
43 Float_t fTof; // Time of Flight
44
45public:
46 AliTOFhit() {}
47 AliTOFhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
48 virtual ~AliTOFhit() {}
49
50 ClassDef(AliTOFhit,1) // Hits for Time Of Flight
51};
52
53#endif