ROOT logo
#ifndef ALIGLAUBERNUCLEON_H
#define ALIGLAUBERNUCLEON_H

/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

////////////////////////////////////////////////////////////////////////////////
//
//  AliGlauberNucleon
//  support class for Glauber MC
//
//  origin: PHOBOS experiment
//  alification: Mikolaj Krzewicki, Nikhef, mikolaj.krzewicki@cern.ch
//
////////////////////////////////////////////////////////////////////////////////

class TNamed;

class AliGlauberNucleon : public TNamed {
  
private:
   Double32_t fX;            //Position of nucleon
   Double32_t fY;            //Position of nucleon
   Double32_t fZ;            //Position of nucleon
   Bool_t     fInNucleusA;   //=1 from nucleus A, =0 from nucleus B
   Int_t      fNColl;        //Number of binary collisions
   Double32_t fSigNN;        //Interaction cross section of this Nucleon

public:
   AliGlauberNucleon();
   virtual   ~AliGlauberNucleon() {}

   void       Collide()            {fNColl++;}
   Int_t      GetNColl()     const {return fNColl;}
   Double_t   GetSigNN()     const {return fSigNN;}
   Double_t   GetX()         const {return fX;}
   Double_t   GetY()         const {return fY;}
   Double_t   GetZ()         const {return fZ;}
   Bool_t     IsInNucleusA() const {return fInNucleusA;}
   Bool_t     IsInNucleusB() const {return !fInNucleusA;}
   Bool_t     IsSpectator()  const {return !fNColl;}
   Bool_t     IsWounded()    const {return fNColl;}
   void       Reset()              {fNColl=0;}
   void       SetInNucleusA()      {fInNucleusA=1;}
   void       SetInNucleusB()      {fInNucleusA=0;}
   void       SetSigNN(Double_t s) {fSigNN=s;}
   void       SetXYZ(Double_t x, Double_t y, Double_t z) {fX=x; fY=y; fZ=z;}

   ClassDef(AliGlauberNucleon,2)
};

#endif
 AliGlauberNucleon.h:1
 AliGlauberNucleon.h:2
 AliGlauberNucleon.h:3
 AliGlauberNucleon.h:4
 AliGlauberNucleon.h:5
 AliGlauberNucleon.h:6
 AliGlauberNucleon.h:7
 AliGlauberNucleon.h:8
 AliGlauberNucleon.h:9
 AliGlauberNucleon.h:10
 AliGlauberNucleon.h:11
 AliGlauberNucleon.h:12
 AliGlauberNucleon.h:13
 AliGlauberNucleon.h:14
 AliGlauberNucleon.h:15
 AliGlauberNucleon.h:16
 AliGlauberNucleon.h:17
 AliGlauberNucleon.h:18
 AliGlauberNucleon.h:19
 AliGlauberNucleon.h:20
 AliGlauberNucleon.h:21
 AliGlauberNucleon.h:22
 AliGlauberNucleon.h:23
 AliGlauberNucleon.h:24
 AliGlauberNucleon.h:25
 AliGlauberNucleon.h:26
 AliGlauberNucleon.h:27
 AliGlauberNucleon.h:28
 AliGlauberNucleon.h:29
 AliGlauberNucleon.h:30
 AliGlauberNucleon.h:31
 AliGlauberNucleon.h:32
 AliGlauberNucleon.h:33
 AliGlauberNucleon.h:34
 AliGlauberNucleon.h:35
 AliGlauberNucleon.h:36
 AliGlauberNucleon.h:37
 AliGlauberNucleon.h:38
 AliGlauberNucleon.h:39
 AliGlauberNucleon.h:40
 AliGlauberNucleon.h:41
 AliGlauberNucleon.h:42
 AliGlauberNucleon.h:43
 AliGlauberNucleon.h:44
 AliGlauberNucleon.h:45
 AliGlauberNucleon.h:46
 AliGlauberNucleon.h:47
 AliGlauberNucleon.h:48
 AliGlauberNucleon.h:49
 AliGlauberNucleon.h:50
 AliGlauberNucleon.h:51
 AliGlauberNucleon.h:52