Counters for diffractive collisions
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Sep 2012 07:19:43 +0000 (07:19 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Sep 2012 07:19:43 +0000 (07:19 +0000)
STEER/STEERBase/AliCollisionGeometry.cxx
STEER/STEERBase/AliCollisionGeometry.h

index 620e235..4b24846 100644 (file)
@@ -39,7 +39,10 @@ AliCollisionGeometry::AliCollisionGeometry() :
   fTargetSpecn(0),
   fTargetSpecp(0),
   fImpactParameter(0),
-  fReactionPlaneAngle(0)
+  fReactionPlaneAngle(0),
+  fNSD1(0),
+  fNSD2(0),
+  fNDD(0)
 {
 }
 
@@ -56,7 +59,10 @@ AliCollisionGeometry::AliCollisionGeometry(const AliCollisionGeometry& cgeo):
   fTargetSpecn(cgeo.fTargetSpecn),
   fTargetSpecp(cgeo.fTargetSpecp),
   fImpactParameter(cgeo.fImpactParameter),
-  fReactionPlaneAngle(cgeo.fReactionPlaneAngle)
+  fReactionPlaneAngle(cgeo.fReactionPlaneAngle),
+  fNSD1(cgeo.fNSD1),
+  fNSD2(cgeo.fNSD2),
+  fNDD(cgeo.fNDD)
 {
     // Copy constructor
 }
index 06fdc56..8deac8a 100644 (file)
@@ -32,6 +32,7 @@ public:
     Int_t   NNw() const {return fNNwColl;}
     Int_t   NwN() const {return fNwNColl;}
     Int_t   NwNw() const {return fNwNwColl;}
+    void    SetNDiffractive(Int_t sd1, Int_t sd2, Int_t sdd) {fNSD1 = sd1; fNSD2 = sd2; fNDD = sdd;}
     // Setters
     void SetImpactParameter(Float_t b)     {fImpactParameter=b;}
     void SetReactionPlaneAngle(Float_t phi)     {fReactionPlaneAngle = phi;}
@@ -43,6 +44,7 @@ public:
     void SetSpectators(Int_t nprojspecn, Int_t nprojspecp, Int_t ntargspecn, Int_t ntargspecp)
        {fProjectileSpecn=nprojspecn, fProjectileSpecp=nprojspecp, 
         fTargetSpecn=ntargspecn, fTargetSpecp=ntargspecp;}
+    void    GetNDiffractive(Int_t& sd1, Int_t& sd2, Int_t& sdd) {sd1 = fNSD1; sd2 = fNSD2; sdd = fNDD;}
  protected:
     Int_t   fNHardScatters;            // Number of hard scatterings
     Int_t   fNProjectileParticipants;  // Number of projectiles participants
@@ -57,11 +59,12 @@ public:
     Int_t   fTargetSpecp;             // Num. of spectator protons from target nucleus
     Float_t fImpactParameter;          // Impact Parameter
     Float_t fReactionPlaneAngle;       // Reaction plane angle
-
+    Int_t   fNSD1;                     // number of SD1 in pA, AA 
+    Int_t   fNSD2;                     // number of SD2 in pA, AA
+    Int_t   fNDD;                      // number of DD  in pA, AA
 private:
     AliCollisionGeometry& operator=(const AliCollisionGeometry& cg); //Not implemented
-    
-  ClassDef(AliCollisionGeometry,3)     // Collision Geometry
+  ClassDef(AliCollisionGeometry,4)     // Collision Geometry
 };
 #endif