25-apr-2002 NvE Projectile and target specifications introduced in AliEvent.
authornick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Apr 2002 11:23:37 +0000 (11:23 +0000)
committernick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Apr 2002 11:23:37 +0000 (11:23 +0000)
RALICE/AliEvent.cxx
RALICE/AliEvent.h
RALICE/history.txt

index 5f4b8a6bdb8d37fc097e3bcb12fdcfff1be73ae3..08e645fb7cb1e60a6e0097154c8eb4efd1807e02 100644 (file)
@@ -13,7 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-// $Id: AliEvent.cxx,v 1.4 2001/07/06 09:30:59 nick Exp $
+// $Id: AliEvent.cxx,v 1.5 2002/01/18 08:46:59 nick Exp $
 
 ///////////////////////////////////////////////////////////////////////////
 // Class AliEvent
 // Note : All quantities are in GeV, GeV/c or GeV/c**2
 //
 //--- Author: Nick van Eijndhoven 27-may-2001 UU-SAP Utrecht
-//- Modified: NvE $Date: 2001/07/06 09:30:59 $ UU-SAP Utrecht
+//- Modified: NvE $Date: 2002/01/18 08:46:59 $ UU-SAP Utrecht
 ///////////////////////////////////////////////////////////////////////////
 
 #include "AliEvent.h"
@@ -201,6 +201,12 @@ AliEvent::AliEvent()
  fDaytime.Set();
  fRun=0;
  fEvent=0;
+ fAproj=0;
+ fZproj=0;
+ fPnucProj=0;
+ fAtarg=0;
+ fZtarg=0;
+ fPnucTarg=0;
  fNcals=0;
  fCalorimeters=0;
  fCalCopy=0;
@@ -213,6 +219,12 @@ AliEvent::AliEvent(Int_t n): AliVertex(n)
  fDaytime.Set();
  fRun=0;
  fEvent=0;
+ fAproj=0;
+ fZproj=0;
+ fPnucProj=0;
+ fAtarg=0;
+ fZtarg=0;
+ fPnucTarg=0;
  fNcals=0;
  fCalorimeters=0;
  fCalCopy=0;
@@ -236,6 +248,12 @@ void AliEvent::Reset()
  fDaytime.Set();
  fRun=0;
  fEvent=0;
+ fAproj=0;
+ fZproj=0;
+ fPnucProj=0;
+ fAtarg=0;
+ fZtarg=0;
+ fPnucTarg=0;
 
  fNcals=0;
  if (fCalorimeters)
@@ -283,6 +301,58 @@ Int_t AliEvent::GetEventNumber()
  return fEvent;
 }
 ///////////////////////////////////////////////////////////////////////////
+void AliEvent::SetProjectile(Int_t a,Int_t z,Double_t pnuc)
+{
+// Set the projectile A, Z and momentum value per nucleon.
+ fAproj=a;
+ fZproj=z;
+ fPnucProj=pnuc;
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliEvent::GetProjectileA()
+{
+// Provide the projectile A value.
+ return fAproj;
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliEvent::GetProjectileZ()
+{
+// Provide the projectile Z value.
+ return fZproj;
+}
+///////////////////////////////////////////////////////////////////////////
+Double_t AliEvent::GetProjectilePnuc()
+{
+// Provide the projectile momentum value per nucleon.
+ return fPnucProj;
+}
+///////////////////////////////////////////////////////////////////////////
+void AliEvent::SetTarget(Int_t a,Int_t z,Double_t pnuc)
+{
+// Set the target A, Z and momentum value per nucleon.
+ fAtarg=a;
+ fZtarg=z;
+ fPnucTarg=pnuc;
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliEvent::GetTargetA()
+{
+// Provide the target A value.
+ return fAtarg;
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliEvent::GetTargetZ()
+{
+// Provide the target Z value.
+ return fZtarg;
+}
+///////////////////////////////////////////////////////////////////////////
+Double_t AliEvent::GetTargetPnuc()
+{
+// Provide the target momentum value per nucleon.
+ return fPnucTarg;
+}
+///////////////////////////////////////////////////////////////////////////
 void AliEvent::HeaderInfo()
 {
 // Provide event header information
index 477379535ecddeede7fdd13550fa35e374e04922..2bc9905856d59c8df80542f40800ced426a0d09b 100644 (file)
@@ -3,7 +3,7 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-// $Id: AliEvent.h,v 1.1 2001/06/06 13:22:48 nick Exp $
+// $Id: AliEvent.h,v 1.2 2001/07/04 15:59:20 nick Exp $
 
 #include <iomanip.h>
 #include <math.h>
@@ -24,6 +24,14 @@ class AliEvent : public AliVertex
   void SetDayTime(TDatime& stamp);        // Set the date and time stamp
   void SetRunNumber(Int_t run);           // Set the run number
   void SetEventNumber(Int_t evt);         // Set the event number
+  void SetProjectile(Int_t a,Int_t z,Double_t pnuc); // Set projectile A, Z and momentum value per nucleon
+  Int_t GetProjectileA();                 // Provide A value of the projectile
+  Int_t GetProjectileZ();                 // Provide Z value of the projectile
+  Double_t GetProjectilePnuc();           // Provide the projectile momentum value per nucleon
+  void SetTarget(Int_t a,Int_t z,Double_t pnuc); // Set target A, Z and momentum value per nucleon
+  Int_t GetTargetA();                     // Provide A value of the target
+  Int_t GetTargetZ();                     // Provide Z value of the target
+  Double_t GetTargetPnuc();               // Provide the target momentum value per nucleon
   void Reset();                           // Reset all values
   TDatime GetDayTime();                   // Provide the date and time stamp
   Int_t GetRunNumber();                   // Provide the run number
@@ -42,10 +50,16 @@ class AliEvent : public AliVertex
   TDatime fDaytime;         // The date and time stamp
   Int_t fRun;               // The run number
   Int_t fEvent;             // The event number
+  Int_t fAproj;             // The projectile A value
+  Int_t fZproj;             // The projectile Z value
+  Double_t fPnucProj;       // The projectile momentum per nucleon
+  Int_t fAtarg;             // The target A value
+  Int_t fZtarg;             // The target Z value
+  Double_t fPnucTarg;       // The target momentum per nucleon
   Int_t fNcals;             // The number of calorimeter systems 
   TObjArray* fCalorimeters; // Array to hold the pointers to the calorimeter systems
   Int_t fCalCopy;           // Flag to denote creation of private copies in fCalorimeters
 
- ClassDef(AliEvent,1) // Creation and investigation of an Alice physics event.
+ ClassDef(AliEvent,2) // Creation and investigation of an Alice physics event.
 };
 #endif
index bc1b68cd60c58c756b5d9d2940ec49d3a30256d7..c2ba15a754faf1bafb4d5651367594d23361d2f9 100644 (file)
 14-feb-2002 NvE Support for name tag introduced in AliSignal to indicate the kind of signal.
                 Missing comment lines added in SetName() and GetName() of AliCalorimeter and AliSignal.
 19-mar-2002 NvE AliVertex::Draw() introduced to enable 3D event display. 
+25-apr-2002 NvE Projectile and target specifications introduced in AliEvent.