]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDhit.cxx
Additional background suppression in the V0 finder (M.Ivanov)
[u/mrichter/AliRoot.git] / PMD / AliPMDhit.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 #include "AliPMDhit.h"
17 #include <TClonesArray.h>
18 #include "Riostream.h"
19 #include "Rtypes.h"
20
21 ClassImp(AliPMDhit)
22   
23 //_____________________________________________________________________________
24 AliPMDhit::AliPMDhit(Int_t shunt,Int_t track, Int_t *vol, Float_t *hits):
25   AliHit(shunt, track)
26 {
27   //
28   // Add a PMD hit
29   //
30   Int_t i;
31   for (i=0;i<8;i++) fVolume[i] = vol[i];
32   fX=hits[0];
33   fY=hits[1];
34   fZ=hits[2];
35   fEnergy=hits[3];
36 }
37 //_____________________________________________________________________________
38 int AliPMDhit::operator == (AliPMDhit &cell) const
39 {
40   Int_t i;
41   if(fTrack!=cell.GetTrack()) return 0;
42   for (i=0; i<8; i++) if(fVolume[i]!=cell.GetVolume(i)) return 0;
43   return 1;
44 }