]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenHijing.h
Possibility of kinematic biasing of jet phi range. (J. Klay)
[u/mrichter/AliRoot.git] / EVGEN / AliGenHijing.h
1 #ifndef ALIGENHIJING_H
2 #define ALIGENHIJING_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 // Generator using HIJING as an external generator
9 // The main HIJING options are accessable for the user through this interface.
10 // andreas.morsch@cern.ch
11
12 #include "AliGenMC.h"
13 #include <TString.h>
14 #include <TArrayI.h>
15
16 class THijing;
17 class TArrayI;
18 class TParticle;
19 class TClonesArray;
20 class TGraph;
21
22 class AliGenHijing : public AliGenMC
23 {
24     enum {kNoTrigger, kHardProcesses, kDirectPhotons};
25
26  public:
27     AliGenHijing();
28     AliGenHijing(Int_t npart);
29     AliGenHijing(const AliGenHijing &Hijing);
30     virtual ~AliGenHijing();
31     virtual void    Generate();
32     virtual void    Init();
33     // set centre of mass energy
34     virtual void    SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;}
35     virtual void    SetReferenceFrame(TString frame="CMS")
36         {fFrame=frame;}
37     virtual void    SetProjectile(TString proj="A",
38                                   Int_t a=208, Int_t z=82)
39         {fProjectile = proj;
40         fAProjectile = a;
41         fZProjectile = z;}    
42     virtual void    SetTarget(TString tar="A",
43                               Int_t a=208, Int_t z=82)
44         {fTarget = tar;
45         fATarget = a;
46         fZTarget = z;}    
47     virtual void    SetImpactParameterRange(Float_t bmin = 0, Float_t bmax = 15.)
48         { fMinImpactParam=bmin;
49         fMaxImpactParam=bmax;
50         }
51     virtual void    KeepFullEvent();
52     virtual void    SetJetQuenching(Int_t flag=1)     {fQuench     = flag;}
53     virtual void    SetShadowing(Int_t flag=1)        {fShadowing  = flag;}
54     virtual void    SetDecaysOff(Int_t flag=1)        {fDecaysOff  = flag;}
55     virtual void    SetTrigger(Int_t flag=kNoTrigger) {fTrigger    = flag;}
56     virtual void    SetFlavor(Int_t flag=0)           {fFlavor     = flag;}
57     virtual void    SetEvaluate(Int_t flag=0)         {fEvaluate   = flag;}
58     virtual void    SetSelectAll(Int_t flag=0)        {fSelectAll  = flag;}
59     virtual void    SetRadiation(Int_t flag=3)        {fRadiation  = flag;}    
60     virtual void    SetSpectators(Int_t spects=1)     {fSpectators = spects;}
61     virtual void    SetPtMinJet(Float_t ptmin)        {fPtMinJet   = ptmin;}
62     virtual void    SetJetEtaRange(Float_t etamin = -20., Float_t etamax = 20.)
63         {fEtaMinJet = etamin; fEtaMaxJet = etamax;}
64     virtual void    SetJetPhiRange(Float_t phimin = -180., Float_t phimax = 180.)
65         {fPhiMinJet = phimin; fPhiMaxJet = phimax;}
66     virtual void    SetBoostLHC(Int_t flag=0)         {fLHC        = flag;}
67     
68             
69     AliGenHijing &  operator=(const AliGenHijing & rhs);
70 // Physics Routines         
71     virtual void EvaluateCrossSections();
72     virtual void Boost(TClonesArray* particles);
73     virtual TGraph* CrossSection()     {return fDsigmaDb;}
74     virtual TGraph* BinaryCollisions() {return fDnDb;}
75     virtual Bool_t  CheckTrigger();
76     
77  protected:
78     Bool_t SelectFlavor(Int_t pid);
79     void   MakeHeader();
80
81  protected:
82     TString     fFrame;         // Reference frame 
83     TString     fProjectile;    // Projectile
84     TString     fTarget;        // Target
85     Int_t       fAProjectile;    // Projectile A
86     Int_t       fZProjectile;    // Projectile Z
87     Int_t       fATarget;        // Target A
88     Int_t       fZTarget;        // Target Z
89     Float_t     fMinImpactParam; // minimum impact parameter
90     Float_t     fMaxImpactParam; // maximum impact parameter    
91     Int_t       fKeep;           // Flag to keep full event information
92     Int_t       fQuench;         // Flag to switch on jet quenching
93     Int_t       fShadowing;      // Flag to switch on voclear effects on parton distribution function
94     Int_t       fDecaysOff;      // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
95     Int_t       fTrigger;        // Trigger type
96     Int_t       fEvaluate;       // Evaluate total and partial cross-sections
97     Int_t       fSelectAll;      // Flag to write the full event
98     Int_t       fFlavor;         // Selected particle flavor 4: charm+beauty 5: beauty
99     Float_t     fEnergyCMS;      // Centre of mass energy
100     Float_t     fKineBias;       // Bias from kinematic selection
101     Int_t       fTrials;         // Number of trials
102     TArrayI     fParentSelect;   // Parent particles to be selected 
103     TArrayI     fChildSelect;    // Decay products to be selected
104     Float_t     fXsection;       // Cross-section
105     THijing    *fHijing;         // Hijing
106     Float_t     fPtHardMin;      // lower pT-hard cut 
107     Float_t     fPtHardMax;      // higher pT-hard cut
108     Int_t       fSpectators;     // put spectators on stack
109     TGraph*     fDsigmaDb;       // dSigma/db for the system
110     TGraph*     fDnDb;           // dNBinaryCollisions/db
111     Float_t     fPtMinJet;       // Minimum Pt of triggered Jet
112     Float_t     fEtaMinJet;      // Minimum eta of triggered Jet
113     Float_t     fEtaMaxJet;      // Maximum eta of triggered Jet
114     Float_t     fPhiMinJet;      // At least one of triggered Jets must be in this
115     Float_t     fPhiMaxJet;      // phi range
116     Int_t       fRadiation;      // Flag to switch on/off initial and final state radiation
117     
118 // ZDC proposal (by Chiara) to store num. of SPECTATORS protons and neutrons
119     Int_t       fSpecn;          // Num. of spectator neutrons
120     Int_t       fSpecp;          // Num. of spectator protons
121     Int_t       fLHC;            // Assume LHC as lab frame
122     
123  private:
124     // adjust the weight from kinematic cuts
125     void   AdjustWeights();
126     // check seleted daughters
127     Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles);
128     // check if stable
129     Bool_t Stable(TParticle*  particle);
130     
131     ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing
132 };
133 #endif
134
135
136
137
138