Line data Source code
1 : #ifndef ALIT0hit_H
2 : #define ALIT0hit_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id$ */
7 : ////////////////////////////////////////////////
8 : // Manager and hits classes for set:T0 //
9 : ////////////////////////////////////////////////
10 :
11 : #include "AliHit.h"
12 :
13 : class AliT0hit : public AliHit {
14 : public:
15 :
16 : AliT0hit();//Empty ctor
17 : AliT0hit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
18 24450 : virtual ~AliT0hit(){}//Empty virtual dtor
19 :
20 0 : AliT0hit& operator=(const AliT0hit&) { return *this; }
21 0 : AliT0hit(const AliT0hit& o):AliHit(),
22 0 : fVolume(0),
23 0 : fPmt(0),
24 0 : fParticle(0),
25 0 : fEtot(0),
26 0 : fTime(0)
27 0 : { ((AliT0hit &) o).Copy(*this);}
28 :
29 :
30 5488 : Int_t Volume() const {return fVolume;}
31 10976 : Int_t Pmt() const {return fPmt;}
32 0 : Float_t Particle() const {return fParticle;}
33 5488 : Double_t Etot() const {return fEtot;}
34 10976 : Float_t Time() const {return fTime;}
35 :
36 : private:
37 : Int_t fVolume; //T0 arm mark
38 : Int_t fPmt; //PMT number in the arm
39 : Int_t fParticle; //Primary particle ID
40 : Double_t fEtot; //Energy of primary particle at the entrance to radiator
41 : Float_t fTime; //Primary particle TOF
42 :
43 :
44 22 : ClassDef(AliT0hit,3) //Hits for detector T0
45 : };
46 :
47 : typedef AliT0hit AliSTARThit; // for backward compatibility
48 :
49 : #endif//ALIT0hit_H
|