replace castor: by rfio: in physical file name
[u/mrichter/AliRoot.git] / EVGEN / AliGenParam.h
CommitLineData
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
6d4dd317 8//
9// Class to generate particles from using paramtrized pT and y distributions.
10// Distributions are obtained from pointer to object of type AliGenLib.
11// (For example AliGenMUONlib)
12//
13// andreas.morsch@cern.ch
14//
15
fff02fee 16#include "AliGenMC.h"
f87cfe57 17
18class AliPythia;
19class TParticle;
b22ee262 20class AliGenLib;
f87cfe57 21class TF1;
22
34f60c01 23typedef enum { kAnalog, kNonAnalog} Weighting_t;
fe4da5cc 24//-------------------------------------------------------------
fff02fee 25class AliGenParam : public AliGenMC
fe4da5cc 26{
34825e2b 27 public:
28 AliGenParam();
34f60c01 29 AliGenParam(Int_t npart, AliGenLib * Library, Int_t param, char* tname = 0);
30 AliGenParam(Int_t npart, Int_t param, char* tname = 0);
31 AliGenParam(Int_t npart, Int_t param,
34825e2b 32 Double_t (*PtPara)(Double_t*, Double_t*),
33 Double_t (*YPara )(Double_t*, Double_t*),
65fb704d 34 Int_t (*IpPara)(TRandom*) );
f87cfe57 35 AliGenParam(const AliGenParam &Param);
36
34825e2b 37 virtual ~AliGenParam();
38 virtual void Generate();
39 virtual void Init();
40 // select particle type
34f60c01 41 virtual void SetParam(Int_t param) {fParam = param;}
34825e2b 42 // force decay type
34f60c01 43 virtual void SetWeighting(Weighting_t flag = kAnalog) {fAnalog = flag;}
34f60c01 44 virtual void SetDeltaPt(Float_t delta=0.01) {fDeltaPt = delta;}
a595093b 45 virtual void SetDecayer(AliDecayer* decayer) {fDecayer = decayer;}
5bd39445 46 virtual void Draw();
f87cfe57 47 AliGenParam & operator=(const AliGenParam & rhs);
34825e2b 48 protected:
49 Double_t (*fPtParaFunc)(Double_t*, Double_t*); //! Pointer to Pt parametrisation function
50 Double_t (*fYParaFunc )(Double_t*, Double_t*); //! Pointer to Y parametrisation function
65fb704d 51 Int_t (*fIpParaFunc )(TRandom*); //! Pointer to particle type parametrisation function
34825e2b 52 TF1* fPtPara; // Transverse momentum parameterisation
53 TF1* fYPara; // Rapidity parameterisation
34f60c01 54 Int_t fParam; // Parameterisation type
4d9d5cbd 55 Float_t fdNdy0; // central multiplicity per event
56 Float_t fYWgt; // Y-weight
57 Float_t fPtWgt; // Pt-weight
4d9d5cbd 58 Float_t fBias; // Biasing factor
59 Int_t fTrials; // Number of trials
34825e2b 60 Float_t fDeltaPt; // pT sampling in steps of fDeltaPt
6c24ee7c 61 AliDecayer *fDecayer; // ! Pointer to pythia object for decays
b7601ac4 62 ClassDef(AliGenParam,1) // Generator using parameterised pt- and y-distribution
fe4da5cc 63};
64#endif
65
66
67
68
69
70
71
72
73
74