]> git.uio.no Git - u/mrichter/AliRoot.git/blob - THijing/AliGenHijing.h
Removing warnings (icc), adding more detailed description
[u/mrichter/AliRoot.git] / THijing / 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
38     virtual void    SetImpactParameterRange(Float_t bmin = 0, Float_t bmax = 15.)
39         {fMinImpactParam=bmin; fMaxImpactParam=bmax;}
40     virtual void    KeepFullEvent();
41     virtual void    SetJetQuenching(Int_t flag=1)     {fQuench     = flag;}
42     virtual void    SetShadowing(Int_t flag=1)        {fShadowing  = flag;}
43     virtual void    SetDecaysOff(Int_t flag=1)        {fDecaysOff  = flag;}
44     virtual void    SetTrigger(Int_t flag=kNoTrigger) {fTrigger    = flag;}
45     virtual void    SetFlavor(Int_t flag=0)           {fFlavor     = flag;}
46     virtual void    SetEvaluate(Int_t flag=0)         {fEvaluate   = flag;}
47     virtual void    SetSelectAll(Int_t flag=0)        {fSelectAll  = flag;}
48     virtual void    SetRadiation(Int_t flag=3)        {fRadiation  = flag;}    
49     virtual void    SetSpectators(Int_t spects=1)     {fSpectators = spects;}
50     virtual void    SetPtJet(Float_t ptmin)           {fPtMinJet   = ptmin;}
51     virtual void    SetSimpleJets(Int_t flag=0)       {fSimpleJet  = flag;}
52     virtual void    SetNoGammas(Int_t flag=0)         {fNoGammas   = flag;}
53             
54     virtual void    SetJetEtaRange(Float_t etamin = -20., Float_t etamax = 20.)
55         {fEtaMinJet = etamin; fEtaMaxJet = etamax;}
56     virtual void    SetJetPhiRange(Float_t phimin = -180., Float_t phimax = 180.)
57         {fPhiMinJet = TMath::Pi()*phimin/180.; fPhiMaxJet = TMath::Pi()*phimax/180.;}
58     virtual void    SetBoostLHC(Int_t flag = 0)         {fLHC        = flag;}
59 // Getters
60     virtual Float_t GetEnergyCMS() {return fEnergyCMS;}
61     virtual TString GetReferenceFrame() {return fFrame;}
62     virtual void    GetProjectile(TString& tar, Int_t& a, Int_t& z)
63         {tar = fProjectile; a = fAProjectile; z = fZProjectile;}    
64     virtual void    GetTarget(TString& tar, Int_t& a, Int_t& z)
65         {tar = fTarget; a = fATarget; z = fZTarget;}    
66     virtual void    GetImpactParameterRange(Float_t& bmin, Float_t& bmax)
67         {bmin = fMinImpactParam; bmax = fMaxImpactParam;}
68     virtual Int_t   GetJetQuenching()                    {return fQuench;}
69     virtual Int_t   GetShadowing()                       {return fShadowing;}
70     virtual Int_t   GetTrigger()                         {return fTrigger;}
71     virtual Int_t   GetFlavor()                          {return fFlavor;}
72     virtual Int_t   GetRadiation()                       {return fRadiation;}    
73     virtual Int_t   GetSpectators()                      {return fSpectators;}
74     virtual Float_t GetPtJet()                           {return fPtMinJet;}
75     virtual void    GetJetEtaRange(Float_t& etamin, Float_t& etamax)
76         {etamin = fEtaMinJet; etamax = fEtaMaxJet;}
77     virtual void    GetJetPhiRange(Float_t& phimin, Float_t& phimax)
78         {phimin = fPhiMinJet*180./TMath::Pi(); phimax = fPhiMaxJet*180./TMath::Pi();}
79     
80
81 // Physics Routines
82     virtual Bool_t ProvidesCollisionGeometry() const {return kTRUE;}
83     virtual void EvaluateCrossSections();
84     virtual TGraph* CrossSection()     {return fDsigmaDb;}
85     virtual TGraph* BinaryCollisions() {return fDnDb;}
86     virtual Bool_t  CheckTrigger();
87 //
88     AliGenHijing &  operator=(const AliGenHijing & rhs);
89  protected:
90     Bool_t SelectFlavor(Int_t pid);
91     void   MakeHeader();
92  private:
93     void Copy(TObject &rhs) const;
94
95  protected:
96     TString     fFrame;         // Reference frame 
97
98     Float_t     fMinImpactParam; // minimum impact parameter
99     Float_t     fMaxImpactParam; // maximum impact parameter    
100     Int_t       fKeep;           // Flag to keep full event information
101     Int_t       fQuench;         // Flag to switch on jet quenching
102     Int_t       fShadowing;      // Flag to switch on nuclear effects on parton distribution function
103     Int_t       fDecaysOff;      // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
104     Int_t       fTrigger;        // Trigger type
105     Int_t       fEvaluate;       // Evaluate total and partial cross-sections
106     Int_t       fSelectAll;      // Flag to write the full event
107     Int_t       fFlavor;         // Selected particle flavor 4: charm+beauty 5: beauty
108     Float_t     fEnergyCMS;      // Centre of mass energy
109     Float_t     fKineBias;       // Bias from kinematic selection
110     Int_t       fTrials;         // Number of trials
111     TArrayI     fParentSelect;   // Parent particles to be selected 
112     TArrayI     fChildSelect;    // Decay products to be selected
113     Float_t     fXsection;       // Cross-section
114     THijing    *fHijing;         //!Hijing
115     Float_t     fPtHardMin;      // lower pT-hard cut 
116     Float_t     fPtHardMax;      // higher pT-hard cut
117     Int_t       fSpectators;     // put spectators on stack
118     TGraph*     fDsigmaDb;       // dSigma/db for the system
119     TGraph*     fDnDb;           // dNBinaryCollisions/db
120     Float_t     fPtMinJet;       // Minimum Pt of triggered Jet
121     Float_t     fEtaMinJet;      // Minimum eta of triggered Jet
122     Float_t     fEtaMaxJet;      // Maximum eta of triggered Jet
123     Float_t     fPhiMinJet;      // At least one of triggered Jets must be in this
124     Float_t     fPhiMaxJet;      // phi range
125     Int_t       fRadiation;      // Flag to switch on/off initial and final state radiation
126     Int_t       fSimpleJet;      // Flag to produce simple tiggered jet topology
127     Int_t       fNoGammas;       // Don't write gammas if flag "on"
128     
129 // ZDC proposal (by Chiara) to store num. of SPECTATORS protons and neutrons
130     Int_t       fSpecn;          // Num. of spectator neutrons
131     Int_t       fSpecp;          // Num. of spectator protons
132     Int_t       fLHC;            // Assume LHC as lab frame
133
134  private:
135     // adjust the weight from kinematic cuts
136     void   AdjustWeights();
137     // check seleted daughters
138     Bool_t DaughtersSelection(TParticle* iparticle);
139     // check if stable
140     Bool_t Stable(TParticle*  particle);
141     
142     ClassDef(AliGenHijing,4) // AliGenerator interface to Hijing
143 };
144 #endif
145
146
147
148
149