]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenPythia.h
Thread libraries filtered out
[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     // set a cut on the Z coord. of the primary vertex (cm)
26     //
27     virtual void    SetEventListRange(Int_t eventFirst=-1, Int_t eventLast=-1);
28     // select process type
29     virtual void    SetProcess(Process_t proc = kPyCharm) {fProcess = proc;}
30     // select structure function
31     virtual void    SetStrucFunc(StrucFunc_t func = kGRV_HO) {fStrucFunc = func;}
32     // select pt of hard scattering 
33     virtual void    SetPtHard(Float_t ptmin = 0, Float_t ptmax = 1.e10)
34         {fPtHardMin = ptmin; fPtHardMax = ptmax; }
35     // set centre of mass energy
36     virtual void    SetEnergyCMS(Float_t energy = 5500) {fEnergyCMS = energy;}
37     // treat protons as inside nuclei
38     virtual void    SetNuclei(Int_t a1, Int_t a2);
39     virtual void    SetJetEtaRange(Float_t etamin = -20., Float_t etamax = 20.)
40         {fEtaMinJet = etamin; fEtaMaxJet = etamax;}
41     virtual void    SetJetPhiRange(Float_t phimin = -180., Float_t phimax = 180.)
42         {fPhiMinJet = TMath::Pi()*phimin/180.; fPhiMaxJet = TMath::Pi()*phimax/180.;}
43     virtual void    SetGammaEtaRange(Float_t etamin = -20., Float_t etamax = 20.)
44         {fEtaMinGamma = etamin; fEtaMaxGamma = etamax;}
45     virtual void    SetGammaPhiRange(Float_t phimin = -180., Float_t phimax = 180.)
46         {fPhiMinGamma = TMath::Pi()*phimin/180.; fPhiMaxGamma = TMath::Pi()*phimax/180.;}
47     
48     // get cross section of process
49     virtual Float_t GetXsection() {return fXsection;}      
50     virtual void    FinishRun();
51     Bool_t CheckTrigger(TParticle* jet1, TParticle* jet2);
52     
53     // Assignment Operator
54     AliGenPythia & operator=(const AliGenPythia & rhs);
55  private:
56     Int_t  GenerateMB();
57     virtual void    MakeHeader();    
58  protected:
59     TClonesArray* fParticles;     //Particle  List
60     
61     Process_t   fProcess;         //Process type
62     StrucFunc_t fStrucFunc;       //Structure Function
63     Float_t     fEnergyCMS;       //Centre of mass energy
64     Float_t     fKineBias;        //!Bias from kinematic selection
65     Int_t       fTrials;          //!Number of trials
66     Int_t       fFlavorSelect;    //Heavy Flavor Selection
67     Float_t     fXsection;        //Cross-section
68     AliPythia   *fPythia;         //!Pythia 
69     Float_t     fPtHardMin;       //lower pT-hard cut 
70     Float_t     fPtHardMax;       //higher pT-hard cut
71     Int_t       fNucA1;           //mass number nucleus side 1
72     Int_t       fNucA2;           //mass number nucleus side 2
73     Bool_t      fFullEvent;       //!Write Full event if true
74     AliDecayer  *fDecayer;        //!Pointer to the decayer instance
75     Int_t       fDebugEventFirst; //!First event to debug
76     Int_t       fDebugEventLast;  //!Last  event to debug
77     Float_t     fEtaMinJet;      // Minimum eta of triggered Jet
78     Float_t     fEtaMaxJet;      // Maximum eta of triggered Jet
79     Float_t     fPhiMinJet;      // Minimum phi of triggered Jet
80     Float_t     fPhiMaxJet;      // Maximum phi of triggered Jet
81
82     Float_t     fEtaMinGamma;    // Minimum eta of triggered gamma
83     Float_t     fEtaMaxGamma;    // Maximum eta of triggered gamma
84     Float_t     fPhiMinGamma;    // Minimum phi of triggered gamma
85     Float_t     fPhiMaxGamma;    // Maximum phi of triggered gamma
86
87  private:
88     // adjust the weight from kinematic cuts
89     void   AdjustWeights();
90
91     ClassDef(AliGenPythia,2) // AliGenerator interface to Pythia
92 };
93 #endif
94
95
96
97
98