Line data Source code
1 : #ifndef ALIPMDHIT_H
2 : #define ALIPMDHIT_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : ////////////////////////////////////////////////
7 : // hits classes for set:PMD //
8 : ////////////////////////////////////////////////
9 :
10 : #include "AliHit.h"
11 : #include <cstdio>
12 :
13 : class TClonesArray;
14 :
15 1562 : class AliPMDhit : public AliHit {
16 :
17 : public:
18 : AliPMDhit();
19 : AliPMDhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
20 : AliPMDhit(AliPMDhit* oldhit);
21 4366 : virtual ~AliPMDhit() {}
22 5322 : Int_t GetVolume(Int_t i) const {return fVolume[i];}
23 2072 : Float_t GetEnergy() const {return fEnergy;}
24 944 : Float_t GetTime() const {return fTime;}
25 : Int_t operator == (AliPMDhit &cell) const;
26 : AliPMDhit operator + (AliPMDhit &cell) {
27 206 : fEnergy+=cell.GetEnergy();
28 103 : return *this;
29 : }
30 : void Print(Option_t *) const;
31 : protected:
32 : Int_t fVolume[6]; //array of volumes
33 : Float_t fEnergy; //Total energy deposited in eV
34 : Float_t fTime; //time information for the event (pile-up cal)
35 :
36 14 : ClassDef(AliPMDhit,6) //Hits object for set:PMD
37 : };
38 : #endif
|