]>
Commit | Line | Data |
---|---|---|
34825e2b | 1 | #ifndef ALIGENPARAM_H |
2 | #define ALIGENPARAM_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
fff02fee | 8 | #include "AliGenMC.h" |
5c3fd7ea | 9 | #include <TArrayI.h> |
f87cfe57 | 10 | |
11 | class AliPythia; | |
12 | class TParticle; | |
b22ee262 | 13 | class AliGenLib; |
f87cfe57 | 14 | class TF1; |
15 | ||
34f60c01 | 16 | typedef enum { kAnalog, kNonAnalog} Weighting_t; |
fe4da5cc | 17 | //------------------------------------------------------------- |
fff02fee | 18 | class AliGenParam : public AliGenMC |
fe4da5cc | 19 | { |
34825e2b | 20 | public: |
21 | AliGenParam(); | |
34f60c01 | 22 | AliGenParam(Int_t npart, AliGenLib * Library, Int_t param, char* tname = 0); |
23 | AliGenParam(Int_t npart, Int_t param, char* tname = 0); | |
24 | AliGenParam(Int_t npart, Int_t param, | |
34825e2b | 25 | Double_t (*PtPara)(Double_t*, Double_t*), |
26 | Double_t (*YPara )(Double_t*, Double_t*), | |
65fb704d | 27 | Int_t (*IpPara)(TRandom*) ); |
f87cfe57 | 28 | AliGenParam(const AliGenParam &Param); |
29 | ||
34825e2b | 30 | virtual ~AliGenParam(); |
31 | virtual void Generate(); | |
32 | virtual void Init(); | |
33 | // select particle type | |
34f60c01 | 34 | virtual void SetParam(Int_t param) {fParam = param;} |
34825e2b | 35 | // force decay type |
34f60c01 | 36 | virtual void SetWeighting(Weighting_t flag = kAnalog) {fAnalog = flag;} |
34f60c01 | 37 | virtual void SetDeltaPt(Float_t delta=0.01) {fDeltaPt = delta;} |
34825e2b | 38 | |
f87cfe57 | 39 | AliGenParam & operator=(const AliGenParam & rhs); |
34825e2b | 40 | protected: |
41 | Double_t (*fPtParaFunc)(Double_t*, Double_t*); //! Pointer to Pt parametrisation function | |
42 | Double_t (*fYParaFunc )(Double_t*, Double_t*); //! Pointer to Y parametrisation function | |
65fb704d | 43 | Int_t (*fIpParaFunc )(TRandom*); //! Pointer to particle type parametrisation function |
34825e2b | 44 | TF1* fPtPara; // Transverse momentum parameterisation |
45 | TF1* fYPara; // Rapidity parameterisation | |
34f60c01 | 46 | Int_t fParam; // Parameterisation type |
4d9d5cbd | 47 | Float_t fdNdy0; // central multiplicity per event |
48 | Float_t fYWgt; // Y-weight | |
49 | Float_t fPtWgt; // Pt-weight | |
4d9d5cbd | 50 | Float_t fBias; // Biasing factor |
51 | Int_t fTrials; // Number of trials | |
34825e2b | 52 | Float_t fDeltaPt; // pT sampling in steps of fDeltaPt |
6c24ee7c | 53 | AliDecayer *fDecayer; // ! Pointer to pythia object for decays |
b7601ac4 | 54 | ClassDef(AliGenParam,1) // Generator using parameterised pt- and y-distribution |
fe4da5cc | 55 | }; |
56 | #endif | |
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 |