3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////
7 // hits classes for set:PMD //
8 ////////////////////////////////////////////////
11 #include "Riostream.h"
15 class AliPMDhit : public AliHit {
19 AliPMDhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
20 AliPMDhit(AliPMDhit* oldhit);
21 virtual ~AliPMDhit() {}
22 Int_t GetVolume(Int_t i) const {return fVolume[i];}
23 Float_t GetEnergy() const {return fEnergy;}
24 int operator == (AliPMDhit &cell) const;
25 AliPMDhit operator + (AliPMDhit &cell) {
26 fEnergy+=cell.GetEnergy();
29 void Print(Option_t *) const {
30 printf("PMD Cell %d %d %d %d %d %d\n Primary %d - Energy %f\n",
31 fVolume[0],fVolume[1],fVolume[2],fVolume[3],
32 fVolume[7],fVolume[8],fTrack,fEnergy);
36 Int_t fVolume[10]; //array of volumes
37 Float_t fEnergy; //Total energy deposited in eV
39 ClassDef(AliPMDhit,4) //Hits object for set:PMD