AliCollisionGeometry added.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Jan 2003 14:07:25 +0000 (14:07 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Jan 2003 14:07:25 +0000 (14:07 +0000)
STEER/AliCollisionGeometry.cxx [new file with mode: 0644]
STEER/AliCollisionGeometry.h [new file with mode: 0644]
STEER/STEERLinkDef.h
STEER/libSTEER.pkg

diff --git a/STEER/AliCollisionGeometry.cxx b/STEER/AliCollisionGeometry.cxx
new file mode 100644 (file)
index 0000000..ac574d4
--- /dev/null
@@ -0,0 +1,25 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/*
+$Log$
+Revision 1.1  2003/01/06 10:09:08  morsch
+First commit.
+
+*/
+
+
+#include "AliCollisionGeometry.h"
+ClassImp(AliCollisionGeometry)
diff --git a/STEER/AliCollisionGeometry.h b/STEER/AliCollisionGeometry.h
new file mode 100644 (file)
index 0000000..612ce78
--- /dev/null
@@ -0,0 +1,55 @@
+#ifndef ALICOLLISIONGEOMETRY_H
+#define ALICOLLISIONGEOMETRY_H
+/* Copyright(c) 198-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+#include <TClassTable.h>
+
+class AliCollisionGeometry
+{
+public:
+    AliCollisionGeometry() {;}
+    virtual ~AliCollisionGeometry(){;}
+    // Getters
+    Float_t ImpactParameter()   {return fImpactParameter;}
+    Int_t   HardScatters() {return fNHardScatters;}
+    Int_t   ProjectileParticipants()  {return fNProjectileParticipants;}
+    Int_t   TargetParticipants()      {return fNTargetParticipants;}
+    Int_t   Spectatorsn()      {return fSpecn;}
+    Int_t   Spectatorsp()      {return fSpecp;}
+    Int_t   NN()    {return fNNColl;}
+    Int_t   NNw()   {return fNNwColl;}
+    Int_t   NwN()   {return fNwNColl;}
+    Int_t   NwNw()  {return fNwNwColl;}
+    // Setters
+    void SetImpactParameter(Float_t b)     {fImpactParameter=b;}
+    void SetHardScatters(Int_t n)  {fNHardScatters=n;}
+    void SetParticipants(Int_t np, Int_t nt)
+       {fNProjectileParticipants=np, fNTargetParticipants=nt;}
+    void SetCollisions(Int_t nn, Int_t nnw, Int_t nwn, Int_t nwnw)
+       {fNNColl=nn, fNNwColl=nnw, fNwNColl=nwn,  fNwNwColl=nwnw;}
+    void SetSpectators(Int_t nspecn, Int_t nspecp)
+       {fSpecn=nspecn, fSpecp=nspecp;}
+ protected:
+    Int_t   fNHardScatters;            // Number of hard scatterings
+    Int_t   fNProjectileParticipants;  // Number of projectiles participants
+    Int_t   fNTargetParticipants;      // Number of target participants
+    Int_t   fNNColl;                   // Number of N-N collisions
+    Int_t   fNNwColl;                  // Number of N-Nwounded collisions
+    Int_t   fNwNColl;                  // Number of Nwounded-N collisons
+    Int_t   fNwNwColl;                 // Number of Nwounded-Nwounded collisions
+    Int_t   fSpecn;                    // Number of spectators neutrons
+    Int_t   fSpecp;                    // Number of spectators protons
+    Float_t fImpactParameter;          // Impact Parameter
+
+  ClassDef(AliCollisionGeometry,1)     // Collision Geometry
+};
+#endif
+
+
+
+
+
+
index c6b2a00..4b0039b 100644 (file)
@@ -61,7 +61,7 @@
 #pragma link C++ class  AliESDVertex+;
 #pragma link C++ class  AliTrackMap+;
 #pragma link C++ class  AliTrackMapper+;
-
+#pragma link C++ class  AliCollisionGeometry+;
 #endif
 
 
index 263a943..fa685fd 100644 (file)
@@ -14,7 +14,7 @@ AliGenEventHeader.cxx AliStack.cxx AliConfig.cxx \
 AliRunDigitizer.cxx AliDigitizer.cxx AliStream.cxx \
 AliMergeCombi.cxx AliMagFMaps.cxx AliFieldMap.cxx \
 AliGausCorr.cxx AliTrackReference.cxx AliESD.cxx \
-AliTrackMap.cxx AliTrackMapper.cxx
+AliTrackMap.cxx AliTrackMapper.cxx AliCollisionGeometry.cxx
 
 HDRS:= $(SRCS:.cxx=.h)