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