]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenHijing.h
e6512bfccb8804d82b10618abf4aa65c8ed0f029
[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
9 #include "AliGenerator.h"
10 #include "GenTypeDefs.h"
11 #include <TString.h>
12 #include <TArrayI.h>
13
14 class THijing;
15 class TArrayI;
16 class TParticle;
17
18 class AliGenHijing : public AliGenerator
19 {
20     enum {kNoTrigger, kHardProcesses, kDirectPhotons};
21
22  public:
23     AliGenHijing();
24     AliGenHijing(Int_t npart);
25     AliGenHijing(const AliGenHijing &Hijing);
26     virtual ~AliGenHijing();
27     virtual void    Generate();
28     virtual void    Init();
29     // set centre of mass energy
30     virtual void    SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;}
31     virtual void    SetReferenceFrame(TString frame="CMS")
32         {fFrame=frame;}
33     virtual void    SetProjectile(TString proj="A",
34                                   Int_t a=208, Int_t z=82)
35         {fProjectile = proj;
36         fAProjectile = a;
37         fZProjectile = z;}    
38     virtual void    SetTarget(TString tar="A",
39                               Int_t a=208, Int_t z=82)
40         {fTarget = tar;
41         fATarget = a;
42         fZTarget =z;}    
43     virtual void    SetImpactParameterRange(Float_t bmin = 0, Float_t bmax =15.)
44         { fMinImpactParam=bmin;
45         fMaxImpactParam=bmax;
46         }
47     virtual void    KeepFullEvent();
48     virtual void    SetJetQuenching(Int_t flag=1)     {fQuench    = flag;}
49     virtual void    SetShadowing(Int_t flag=1)        {fShadowing = flag;}
50     virtual void    SetDecaysOff(Int_t flag=1)        {fDecaysOff = flag;}
51     virtual void    SetTrigger(Int_t flag=kNoTrigger) {fTrigger   = flag;}
52     virtual void    SetFlavor(Int_t flag=0)           {fFlavor    = flag;}    
53     virtual void    SetEvaluate(Int_t flag=0)         {fEvaluate  = flag;}
54     virtual void    SetSelectAll(Int_t flag=0)        {fSelectAll = flag;}    
55     virtual void    SetSpectators(Int_t spects=1)     {fSpectators = spects;}
56     AliGenHijing &  operator=(const AliGenHijing & rhs);
57 // Physics Routines         
58     virtual void EvaluateCrossSections();
59  protected:
60     Bool_t SelectFlavor(Int_t pid);
61     void   MakeHeader();
62
63  protected:
64     TString     fFrame;         // Reference frame 
65     TString     fProjectile;    // Projectile
66     TString     fTarget;        // Target
67     Int_t       fAProjectile;    // Projectile A
68     Int_t       fZProjectile;    // Projectile Z
69     Int_t       fATarget;        // Target A
70     Int_t       fZTarget;        // Target Z
71     Float_t     fMinImpactParam; // minimum impact parameter
72     Float_t     fMaxImpactParam; // maximum impact parameter    
73     Int_t       fKeep;           // Flag to keep full event information
74     Int_t       fQuench;         // Flag to switch on jet quenching
75     Int_t       fShadowing;      // Flag to switch on voclear effects on parton distribution function
76     Int_t       fDecaysOff;      // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
77     Int_t       fTrigger;        // Trigger type
78     Int_t       fEvaluate;       // Evaluate total and partial cross-sections
79     Int_t       fSelectAll;      // Flag to write the full event
80     Int_t       fFlavor;         // Selected particle flavor 4: charm+beauty 5: beauty
81     Decay_t     fForceDecay;     // Decay channel  are forced
82     Float_t     fEnergyCMS;      // Centre of mass energy
83     Float_t     fKineBias;       // Bias from kinematic selection
84     Int_t       fTrials;         // Number of trials
85     TArrayI     fParentSelect;   // Parent particles to be selected 
86     TArrayI     fChildSelect;    // Decay products to be selected
87     Float_t     fXsection;       // Cross-section
88     THijing    *fHijing;         // Hijing
89     Float_t     fPtHardMin;      // lower pT-hard cut 
90     Float_t     fPtHardMax;      // higher pT-hard cut
91     Int_t       fSpectators;     // put spectators on stack
92
93  private:
94     // check if particle is selected as parent particle
95     Bool_t ParentSelected(Int_t ip);
96     // check if particle is selected as child particle
97     Bool_t ChildSelected(Int_t ip);
98     // all kinematic selection cuts go here 
99     Bool_t KinematicSelection(TParticle *particle);
100     // adjust the weight from kinematic cuts
101     void   AdjustWeights();
102     // check seleted daughters
103     Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles);
104     // check if stable
105     Bool_t Stable(TParticle*  particle);
106     
107     ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing
108 };
109 #endif
110
111
112
113
114