]>
Commit | Line | Data |
---|---|---|
da32329d AM |
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 */ | |
5 | ||
6 | /* $Id: $ */ | |
7 | ||
8 | // Interface to AliRoot of the STARlight generator. | |
9 | // Author: Christoph.Mayer@cern.ch, Bjorn.Nilsen@cern.ch | |
10 | ||
11 | //- Root Includes | |
12 | #include <TString.h> | |
13 | #include <TParticle.h> | |
14 | #include "TStarLight.h" | |
15 | ||
16 | //- AliRoot Includes | |
17 | #include "AliGenMC.h" | |
da32329d AM |
18 | |
19 | class AliGenStarLight : public AliGenMC { | |
20 | public: | |
21 | AliGenStarLight(); | |
22 | AliGenStarLight(Int_t npart); | |
23 | ||
24 | virtual ~AliGenStarLight(); | |
25 | ||
26 | void ImportConfigurationFromFile(const char* filename); | |
27 | void SetParameter(const char* line); | |
28 | virtual void Init(); | |
29 | virtual void Generate(); | |
30 | ||
31 | TStarLight *GetTStarLight() { | |
32 | return (TStarLight*)fSLgenerator; | |
33 | } | |
da32329d AM |
34 | Bool_t NoDaughters(const TParticle *p) const { |
35 | return (p->GetFirstDaughter()<0); | |
36 | } | |
37 | TStarLight* GetStarLightGenerator() const { | |
38 | return fSLgenerator; | |
39 | } | |
40 | ||
41 | private: | |
42 | AliGenStarLight(const AliGenStarLight &p); | |
43 | AliGenStarLight& operator=(const AliGenStarLight &p); | |
44 | ||
45d54d9a | 45 | TStarLight *fSLgenerator; //! Pointer to StarLight Generator. |
da32329d | 46 | |
52284ebd | 47 | ClassDef(AliGenStarLight,3); // STARlight parameterisation generator |
da32329d AM |
48 | } ; |
49 | ||
50 | #endif |