]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenPythia.h
New files needed by the HBT processor (P.Skowronski)
[u/mrichter/AliRoot.git] / EVGEN / AliGenPythia.h
1 #ifndef ALIGENPYTHIA_H
2 #define ALIGENPYTHIA_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
9 #include "AliGenMC.h"
10 #include "AliPythia.h"
11 #include "TArrayF.h"
12
13 class AliPythia;
14 class TParticle;
15
16 class AliGenPythia : public AliGenMC
17 {
18  public:
19     AliGenPythia();
20     AliGenPythia(Int_t npart);
21     AliGenPythia(const AliGenPythia &Pythia);
22     virtual ~AliGenPythia();
23     virtual void    Generate();
24     virtual void    Init();
25     virtual void    SetEventListRange(Int_t eventFirst=-1, Int_t eventLast=-1);
26     // select process type
27     virtual void    SetProcess(Process_t proc = kPyCharm) {fProcess = proc;}
28     // select structure function
29     virtual void    SetStrucFunc(StrucFunc_t func = kGRV_HO) {fStrucFunc = func;}
30     // select pt of hard scattering 
31     virtual void    SetPtHard(Float_t ptmin = 0, Float_t ptmax = 1.e10)
32         {fPtHardMin = ptmin; fPtHardMax = ptmax; }
33     // set centre of mass energy
34     virtual void    SetEnergyCMS(Float_t energy = 5500) {fEnergyCMS = energy;}
35     // treat protons as inside nuclei
36     virtual void    SetNuclei(Int_t a1, Int_t a2);
37     // get cross section of process
38     virtual Float_t GetXsection() {return fXsection;}      
39     virtual void    FinishRun();
40     
41     // Assignment Operator
42     AliGenPythia & operator=(const AliGenPythia & rhs);
43  private:
44     Int_t  GenerateMB();
45     virtual void    MakeHeader();    
46  protected:
47     TClonesArray* fParticles;     //Particle  List
48     
49     Process_t   fProcess;         //Process type
50     StrucFunc_t fStrucFunc;       //Structure Function
51     Float_t     fEnergyCMS;       //Centre of mass energy
52     Float_t     fKineBias;        //!Bias from kinematic selection
53     Int_t       fTrials;          //!Number of trials
54     Int_t       fFlavorSelect;    //Heavy Flavor Selection
55     Float_t     fXsection;        //Cross-section
56     AliPythia   *fPythia;         //!Pythia 
57     Float_t     fPtHardMin;       //lower pT-hard cut 
58     Float_t     fPtHardMax;       //higher pT-hard cut
59     Int_t       fNucA1;           //mass number nucleus side 1
60     Int_t       fNucA2;           //mass number nucleus side 2
61     Bool_t      fFullEvent;       //!Write Full event if true
62     AliDecayer  *fDecayer;        //!Pointer to the decayer instance
63     Int_t       fDebugEventFirst; //!First event to debug
64     Int_t       fDebugEventLast;  //!Last  event to debug
65     TArrayF     fEventVertex;     //!The current event vertex
66     
67  private:
68     // adjust the weight from kinematic cuts
69     void   AdjustWeights();
70
71     ClassDef(AliGenPythia,1) // AliGenerator interface to Pythia
72 };
73 #endif
74
75
76
77
78