--- /dev/null
+/**************************************************************************
+ * 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$
+*/
+
+#include "AliGenEventHeader.h"
+ClassImp(AliGenEventHeader)
+
+
+//_____________________________________________________________________________
+AliGenEventHeader::AliGenEventHeader(const char * name)
+ :TNamed(name, "Event Header")
+{
+// Constructor
+// fDate=new TDatime;
+ fRunNumber=-1;
+ fEventNumber=-1;
+ fNProduced=-1;
+ fImpactParameter=-1.;
+}
--- /dev/null
+#ifndef ALIGENEVENTHEADER_H
+#define ALIGENEVENTHEADER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#include <TNamed.h>
+#include <TDatime.h>
+
+class AliGenEventHeader : public TNamed
+{
+ public:
+
+ AliGenEventHeader(const char* name="Undefined");
+ virtual ~AliGenEventHeader() {}
+ // Getters
+ virtual TDatime Date() {return fDate;}
+ virtual Int_t RunNumber() {return fRunNumber;}
+ virtual Int_t EventNumber() {return fEventNumber;}
+ virtual Int_t NProduced() {return fNProduced;}
+ virtual Float_t ImpactParameter() {return fImpactParameter;}
+ // Setters
+ virtual void SetDate(TDatime date) {fDate=date;}
+ virtual void SetRunNumber(Int_t run) {fRunNumber=run;}
+ virtual void SetEventNumber(Int_t event) {fEventNumber=event;}
+ virtual void SetNProduced(Int_t nprod) {fNProduced=nprod;}
+ virtual void SetImpactParameter(Float_t b) {fImpactParameter=b;}
+
+protected:
+ TDatime fDate; // Date
+ Int_t fRunNumber; // Run Number
+ Int_t fEventNumber; // Event Number
+ Int_t fNProduced; // Number stable or undecayed particles
+ Float_t fImpactParameter; // Impact Parameter
+
+ ClassDef(AliGenEventHeader,1) // Event header for primary event
+};
+
+#endif
--- /dev/null
+/**************************************************************************
+ * 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$
+*/
+
+#include "AliGenHijingEventHeader.h"
+ClassImp(AliGenHijingEventHeader)
+
+
--- /dev/null
+#ifndef ALIGENHIJINGEVENTHEADER_H
+#define ALIGENHIJINGEVENTHEADER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#include "AliGenEventHeader.h"
+
+
+class AliGenHijingEventHeader : public AliGenEventHeader
+{
+ public:
+
+ AliGenHijingEventHeader(const char* name){;}
+ virtual ~AliGenHijingEventHeader() {}
+ // Getters
+ Float_t TotalEnergy() {return fTotalEnergy;}
+ Int_t HardScatters() {return fNHardScatters;}
+ Int_t ProjectileParticipants() {return fNProjectileParticipants;}
+ Int_t TargetParticipants() {return fNTargetParticipants;}
+ Int_t NN() {return fNNColl;}
+ Int_t NNw() {return fNNwColl;}
+ Int_t NwN() {return fNwNColl;}
+ Int_t NwNw() {return fNwNwColl;}
+ // Setters
+ void SetTotalEnergy(Float_t energy) {fTotalEnergy=energy;}
+ 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;}
+
+protected:
+ Float_t fTotalEnergy; // Total energy of produced particles
+ 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
+
+
+ ClassDef(AliGenHijingEventHeader,1) // Event header for hijing event
+};
+
+#endif
#pragma link C++ class AliDimuCombinator;
#pragma link C++ class AliGenPHOSlib;
#pragma link C++ class AliGenGSIlib;
-//#pragma link C++ class AliGenEventHeader;
-//#pragma link C++ class AliGenHijingEventHeader;
+#pragma link C++ class AliGenEventHeader;
+#pragma link C++ class AliGenHijingEventHeader;
#pragma link C++ class AliGenHijing;
#endif
AliGenExtFile.cxx AliGenScan.cxx AliGenPHOSlib.cxx \
AliGenDoubleScan.cxx AliGenCocktailEntry.cxx \
AliGenGSIlib.cxx \
- AliGenHijing.cxx
-# AliGenEventHeader.cxx AliGenHijingEventHeader.cxx \
+ AliGenHijing.cxx \
+ AliGenEventHeader.cxx AliGenHijingEventHeader.cxx
# C++ Headers
HDRS = $(SRCS:.cxx=.h) EVGENLinkDef.h