]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEERBase/AliCollisionGeometry.h
Temporary splines for LHC12b-e anchored MC
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliCollisionGeometry.h
1 #ifndef ALICOLLISIONGEOMETRY_H
2 #define ALICOLLISIONGEOMETRY_H
3 /* Copyright(c) 198-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 //-------------------------------------------------------------------------
8 //                          Class AliCollisionGeometry
9 //   This is a class to handle the collison geometry defined by
10 //   the generator
11 //-------------------------------------------------------------------------
12
13 #include <Rtypes.h>
14
15 class AliCollisionGeometry
16 {
17 public:
18     AliCollisionGeometry();
19     AliCollisionGeometry(const AliCollisionGeometry& cgeo);
20     virtual ~AliCollisionGeometry(){;}
21     // Getters
22     Float_t ImpactParameter() const  {return fImpactParameter;}
23     Float_t ReactionPlaneAngle() const {return fReactionPlaneAngle;}
24     Int_t   HardScatters() const {return fNHardScatters;}
25     Int_t   ProjectileParticipants() const {return fNProjectileParticipants;}
26     Int_t   TargetParticipants() const {return fNTargetParticipants;}
27     Int_t   ProjSpectatorsn() const {return fProjectileSpecn;}
28     Int_t   ProjSpectatorsp() const {return fProjectileSpecp;}
29     Int_t   TargSpectatorsn() const {return fTargetSpecn;        }
30     Int_t   TargSpectatorsp() const {return fTargetSpecp;        }
31     Int_t   NN() const  {return fNNColl;}
32     Int_t   NNw() const {return fNNwColl;}
33     Int_t   NwN() const {return fNwNColl;}
34     Int_t   NwNw() const {return fNwNwColl;}
35     void    SetNDiffractive(Int_t sd1, Int_t sd2, Int_t sdd) {fNSD1 = sd1; fNSD2 = sd2; fNDD = sdd;}
36     // Setters
37     void SetImpactParameter(Float_t b)     {fImpactParameter=b;}
38     void SetReactionPlaneAngle(Float_t phi)     {fReactionPlaneAngle = phi;}
39     void SetHardScatters(Int_t n)  {fNHardScatters=n;}
40     void SetParticipants(Int_t np, Int_t nt)
41         {fNProjectileParticipants=np, fNTargetParticipants=nt;}
42     void SetCollisions(Int_t nn, Int_t nnw, Int_t nwn, Int_t nwnw)
43         {fNNColl=nn, fNNwColl=nnw, fNwNColl=nwn,  fNwNwColl=nwnw;}
44     void SetSpectators(Int_t nprojspecn, Int_t nprojspecp, Int_t ntargspecn, Int_t ntargspecp)
45         {fProjectileSpecn=nprojspecn, fProjectileSpecp=nprojspecp, 
46          fTargetSpecn=ntargspecn, fTargetSpecp=ntargspecp;}
47     void    GetNDiffractive(Int_t& sd1, Int_t& sd2, Int_t& sdd) {sd1 = fNSD1; sd2 = fNSD2; sdd = fNDD;}
48  protected:
49     Int_t   fNHardScatters;            // Number of hard scatterings
50     Int_t   fNProjectileParticipants;  // Number of projectiles participants
51     Int_t   fNTargetParticipants;      // Number of target participants
52     Int_t   fNNColl;                   // Number of N-N collisions
53     Int_t   fNNwColl;                  // Number of N-Nwounded collisions
54     Int_t   fNwNColl;                  // Number of Nwounded-N collisons
55     Int_t   fNwNwColl;                 // Number of Nwounded-Nwounded collisions
56     Int_t   fProjectileSpecn;          // Num. of spectator neutrons from projectile nucleus
57     Int_t   fProjectileSpecp;          // Num. of spectator protons from projectile nucleus
58     Int_t   fTargetSpecn;              // Num. of spectator neutrons from target nucleus
59     Int_t   fTargetSpecp;              // Num. of spectator protons from target nucleus
60     Float_t fImpactParameter;          // Impact Parameter
61     Float_t fReactionPlaneAngle;       // Reaction plane angle
62     Int_t   fNSD1;                     // number of SD1 in pA, AA 
63     Int_t   fNSD2;                     // number of SD2 in pA, AA
64     Int_t   fNDD;                      // number of DD  in pA, AA
65 private:
66     AliCollisionGeometry& operator=(const AliCollisionGeometry& cg); //Not implemented
67   ClassDef(AliCollisionGeometry,4)     // Collision Geometry
68 };
69 #endif
70
71
72
73
74
75