]>
Commit | Line | Data |
---|---|---|
790bbabf | 1 | #ifndef ALIGENHIJINGPARA_H |
2 | #define ALIGENHIJINGPARA_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 | ||
675e9664 | 8 | // Parameterisation of pi and K, eta and pt distributions |
9 | // used for the ALICE TDRs. | |
10 | // Author: andreas.morsch@cern.ch | |
11 | ||
ac3faee4 | 12 | class TF1; |
13 | ||
790bbabf | 14 | #include "AliGenerator.h" |
2904363f | 15 | #include "AliDecayer.h" |
790bbabf | 16 | |
17 | class AliGenHIJINGpara : public AliGenerator | |
18 | { | |
19 | public: | |
20 | ||
21 | AliGenHIJINGpara(); | |
22 | AliGenHIJINGpara(Int_t npart); | |
23 | AliGenHIJINGpara(const AliGenHIJINGpara &HIJINGpara); | |
198bb1c7 | 24 | AliGenHIJINGpara& operator = (const AliGenHIJINGpara ¶) |
25 | {para.Copy(*this); return (*this);} | |
790bbabf | 26 | virtual ~AliGenHIJINGpara(); |
971816d4 | 27 | virtual void SetCutVertexZ(Float_t cut=999999.) {fCutVertexZ = cut;} |
790bbabf | 28 | virtual void Generate(); |
29 | virtual void Init(); | |
2067f62c | 30 | virtual void SetPtRange(Float_t ptmin = 0., Float_t ptmax=15.); |
31 | virtual void SetPi0Decays(Bool_t flag = kFALSE) {fPi0Decays = flag;} | |
bbb64b45 | 32 | virtual void SetWeighting(Int_t flag = 0) {fAnalog = flag;} |
cc692c80 | 33 | virtual void Draw( const char *); |
34 | ||
790bbabf | 35 | protected: |
2904363f | 36 | Int_t fNt; // CurrentTrack; |
a142c195 | 37 | Int_t fNpartProd; // Total number of particles produced |
2904363f | 38 | Bool_t fPi0Decays; // Flag for pi0 decays |
bbb64b45 | 39 | Float_t fPtWgtPi; // pt weight for pions |
40 | Float_t fPtWgtKa; // pt weight for kaons | |
2904363f | 41 | TF1* fPtpi; // Parametrised pt distribution for pi |
42 | TF1* fPtka; // Parametrised pt distribution for ka | |
43 | TF1* fETApic; // Parametrised eta distribution for pi | |
44 | TF1* fETAkac; // Parametrised eta distribution fro ka | |
45 | AliDecayer* fDecayer; // ! Pointer to pythia object for decays | |
bbb64b45 | 46 | |
bbb64b45 | 47 | void DecayPi0(Float_t* orig, Float_t * p); |
dc1d768c | 48 | void Copy(TObject ¶) const; |
14f9f6b4 | 49 | ClassDef(AliGenHIJINGpara,3) // Hijing parametrisation generator |
790bbabf | 50 | }; |
51 | #endif | |
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 |