ClassImp(AliPMDhit)
+//_____________________________________________________________________________
+AliPMDhit::AliPMDhit():
+ fEnergy(0.),
+ fTime(0.)
+{
+ for (Int_t i=0; i<6; i++)
+ {
+ fVolume[i] = 0;
+ }
+}
//_____________________________________________________________________________
AliPMDhit::AliPMDhit(Int_t shunt,Int_t track, Int_t *vol, Float_t *hits):
- AliHit(shunt, track)
+ AliHit(shunt, track),
+ fEnergy(hits[3]),
+ fTime(hits[4])
{
//
// Add a PMD hit
//
Int_t i;
- for (i=0;i<8;i++) fVolume[i] = vol[i];
+ for (i=0; i<6; i++) fVolume[i] = vol[i];
fX=hits[0];
fY=hits[1];
fZ=hits[2];
- fEnergy=hits[3];
}
+//_____________________________________________________________________________
+AliPMDhit::AliPMDhit(AliPMDhit* oldhit):
+ fEnergy(0.),
+ fTime(0.)
+{
+ *this=*oldhit;
+}
+
//_____________________________________________________________________________
int AliPMDhit::operator == (AliPMDhit &cell) const
{
Int_t i;
if(fTrack!=cell.GetTrack()) return 0;
- for (i=0; i<8; i++) if(fVolume[i]!=cell.GetVolume(i)) return 0;
+ for (i=0; i<6; i++) if(fVolume[i]!=cell.GetVolume(i)) return 0;
return 1;
}