]>
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" | |
18 | #include "AliGenStarLightEventHeader.h" | |
19 | ||
20 | class AliGenStarLight : public AliGenMC { | |
21 | public: | |
22 | AliGenStarLight(); | |
23 | AliGenStarLight(Int_t npart); | |
24 | ||
25 | virtual ~AliGenStarLight(); | |
26 | ||
27 | void ImportConfigurationFromFile(const char* filename); | |
28 | void SetParameter(const char* line); | |
29 | virtual void Init(); | |
30 | virtual void Generate(); | |
31 | ||
32 | TStarLight *GetTStarLight() { | |
33 | return (TStarLight*)fSLgenerator; | |
34 | } | |
35 | Bool_t PassTrigger() const { | |
36 | return kTRUE; // Dummy for now | |
37 | } | |
38 | Bool_t ParticlesPassTrigger() const { | |
39 | return kTRUE; // Dummy for now | |
40 | } | |
41 | Bool_t ParticalPass(TParticle *) const { | |
42 | return kTRUE; // Dummy for now | |
43 | } | |
44 | Bool_t NoDaughters(const TParticle *p) const { | |
45 | return (p->GetFirstDaughter()<0); | |
46 | } | |
47 | TStarLight* GetStarLightGenerator() const { | |
48 | return fSLgenerator; | |
49 | } | |
50 | ||
51 | private: | |
52 | AliGenStarLight(const AliGenStarLight &p); | |
53 | AliGenStarLight& operator=(const AliGenStarLight &p); | |
54 | ||
55 | void MakeHeader(Int_t np, Float_t orn[4]); | |
56 | ||
57 | Int_t fTrials; // Number of times the STARlight generate has been called to get one event to pass trigger/cuts. | |
58 | AliGenStarLightEventHeader fHeader; | |
59 | TStarLight *fSLgenerator; //! Pointer to StarLight Generator. | |
60 | ||
61 | ClassDef(AliGenStarLight,1); // STARlight parameterisation generator | |
62 | } ; | |
63 | ||
64 | #endif |