1 #ifndef ALIGENSTARLIGHT_H
2 #define ALIGENSTARLIGHT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 // Interface to AliRoot of the STARlight generator.
9 // Author: Christoph.Mayer@cern.ch, Bjorn.Nilsen@cern.ch
13 #include <TParticle.h>
14 #include "TStarLight.h"
19 class AliGenStarLight : public AliGenMC {
22 AliGenStarLight(Int_t npart);
24 virtual ~AliGenStarLight();
26 void ImportConfigurationFromFile(const char* filename);
27 void SetParameter(const char* line);
29 virtual void Generate();
31 void SetRapidityMotherRange(Double_t yMin, Double_t yMax) {
32 fRapidityMotherMin = yMin;
33 fRapidityMotherMax = yMax;
35 void SetEtaChildRange(Double_t etaMin, Double_t etaMax) {
36 fEtaChildMin = etaMin;
37 fEtaChildMax = etaMax;
40 TStarLight *GetTStarLight() {
41 return (TStarLight*)fSLgenerator;
43 Bool_t NoDaughters(const TParticle *p) const {
44 return (p->GetFirstDaughter()<0);
46 TStarLight* GetStarLightGenerator() const {
51 AliGenStarLight(const AliGenStarLight &p);
52 AliGenStarLight& operator=(const AliGenStarLight &p);
54 Double_t fRapidityMotherMin; // Max < Min: no cut
55 Double_t fRapidityMotherMax;
56 Double_t fEtaChildMin; // Max < Min: no cut
57 Double_t fEtaChildMax;
58 TStarLight *fSLgenerator; //! Pointer to StarLight Generator.
60 ClassDef(AliGenStarLight,3); // STARlight parameterisation generator