* 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"
fDaytime.Set();
fRun=0;
fEvent=0;
+ fAproj=0;
+ fZproj=0;
+ fPnucProj=0;
+ fAtarg=0;
+ fZtarg=0;
+ fPnucTarg=0;
fNcals=0;
fCalorimeters=0;
fCalCopy=0;
fDaytime.Set();
fRun=0;
fEvent=0;
+ fAproj=0;
+ fZproj=0;
+ fPnucProj=0;
+ fAtarg=0;
+ fZtarg=0;
+ fPnucTarg=0;
fNcals=0;
fCalorimeters=0;
fCalCopy=0;
fDaytime.Set();
fRun=0;
fEvent=0;
+ fAproj=0;
+ fZproj=0;
+ fPnucProj=0;
+ fAtarg=0;
+ fZtarg=0;
+ fPnucTarg=0;
fNcals=0;
if (fCalorimeters)
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
/* 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>
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
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
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.