]> git.uio.no Git - u/mrichter/AliRoot.git/blame - THijing/AliGenHijing.h
detatch PbPb config and the skipping of every second time bin
[u/mrichter/AliRoot.git] / THijing / AliGenHijing.h
CommitLineData
36b81802 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>
36b81802 14
15class THijing;
36b81802 16class TParticle;
17class TClonesArray;
18class TGraph;
68f18c58 19class AliGenHijingEventHeader;
36b81802 20
21class AliGenHijing : public AliGenMC
22{
23 enum {kNoTrigger, kHardProcesses, kDirectPhotons};
24
25 public:
26 AliGenHijing();
27 AliGenHijing(Int_t npart);
36b81802 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;}
0c85382f 35
36b81802 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;}
5bfd0cb7 48 virtual void SetPtHardMin(Float_t ptmin) {fPtHardMin = ptmin;}
49 virtual void SetPtHardMax(Float_t ptmax) {fPtHardMax = ptmax;}
36b81802 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;}
b25b821e 59 virtual void SetRandomPz(Bool_t flag = 0) {fRandomPz = flag;}
f82795ff 60 virtual void SwitchOffHeavyQuarks(Bool_t flag = kTRUE) {fNoHeavyQuarks = flag;}
61
62
36b81802 63// Getters
14cae7e9 64 virtual TString GetReferenceFrame() const {return fFrame;}
14cae7e9 65 virtual void GetImpactParameterRange(Float_t& bmin, Float_t& bmax) const
36b81802 66 {bmin = fMinImpactParam; bmax = fMaxImpactParam;}
14cae7e9 67 virtual Int_t GetJetQuenching() const {return fQuench;}
68 virtual Int_t GetShadowing() const {return fShadowing;}
69 virtual Int_t GetTrigger() const {return fTrigger;}
70 virtual Int_t GetFlavor() const {return fFlavor;}
71 virtual Int_t GetRadiation() const {return fRadiation;}
72 virtual Int_t GetSpectators() const {return fSpectators;}
5bfd0cb7 73 virtual Float_t GetPtHardMin() const {return fPtHardMin;}
74 virtual Float_t GetPtHardMax() const {return fPtHardMax;}
14cae7e9 75 virtual Float_t GetPtJet() const {return fPtMinJet;}
76 virtual void GetJetEtaRange(Float_t& etamin, Float_t& etamax) const
36b81802 77 {etamin = fEtaMinJet; etamax = fEtaMaxJet;}
14cae7e9 78 virtual void GetJetPhiRange(Float_t& phimin, Float_t& phimax) const
36b81802 79 {phimin = fPhiMinJet*180./TMath::Pi(); phimax = fPhiMaxJet*180./TMath::Pi();}
80
81
82// Physics Routines
14cae7e9 83 virtual Bool_t ProvidesCollisionGeometry() const {return kTRUE;}
84 virtual void EvaluateCrossSections();
36b81802 85 virtual TGraph* CrossSection() {return fDsigmaDb;}
86 virtual TGraph* BinaryCollisions() {return fDnDb;}
87 virtual Bool_t CheckTrigger();
88//
36b81802 89 protected:
90 Bool_t SelectFlavor(Int_t pid);
91 void MakeHeader();
36b81802 92 protected:
14cae7e9 93 TString fFrame; // Reference frame
36b81802 94 Float_t fMinImpactParam; // minimum impact parameter
95 Float_t fMaxImpactParam; // maximum impact parameter
96 Int_t fKeep; // Flag to keep full event information
97 Int_t fQuench; // Flag to switch on jet quenching
98 Int_t fShadowing; // Flag to switch on nuclear effects on parton distribution function
99 Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
100 Int_t fTrigger; // Trigger type
101 Int_t fEvaluate; // Evaluate total and partial cross-sections
102 Int_t fSelectAll; // Flag to write the full event
103 Int_t fFlavor; // Selected particle flavor 4: charm+beauty 5: beauty
36b81802 104 Float_t fKineBias; // Bias from kinematic selection
105 Int_t fTrials; // Number of trials
36b81802 106 Float_t fXsection; // Cross-section
b88f5cea 107 THijing *fHijing; //!Hijing
36b81802 108 Float_t fPtHardMin; // lower pT-hard cut
109 Float_t fPtHardMax; // higher pT-hard cut
110 Int_t fSpectators; // put spectators on stack
111 TGraph* fDsigmaDb; // dSigma/db for the system
112 TGraph* fDnDb; // dNBinaryCollisions/db
113 Float_t fPtMinJet; // Minimum Pt of triggered Jet
114 Float_t fEtaMinJet; // Minimum eta of triggered Jet
115 Float_t fEtaMaxJet; // Maximum eta of triggered Jet
116 Float_t fPhiMinJet; // At least one of triggered Jets must be in this
117 Float_t fPhiMaxJet; // phi range
118 Int_t fRadiation; // Flag to switch on/off initial and final state radiation
119 Int_t fSimpleJet; // Flag to produce simple tiggered jet topology
120 Int_t fNoGammas; // Don't write gammas if flag "on"
36b81802 121// ZDC proposal (by Chiara) to store num. of SPECTATORS protons and neutrons
f0c86dd6 122 Int_t fProjectileSpecn;// Num. of spectator neutrons from projectile nucleus
123 Int_t fProjectileSpecp;// Num. of spectator protons from projectile nucleus
124 Int_t fTargetSpecn; // Num. of spectator neutrons from target nucleus
125 Int_t fTargetSpecp; // Num. of spectator protons from target nucleus
36b81802 126 Int_t fLHC; // Assume LHC as lab frame
f82795ff 127 Bool_t fRandomPz; // Randomise sign of pz event by event
128 Bool_t fNoHeavyQuarks; // If true no heavy quarks are produced
d07f0af2 129 Float_t fEventTime; // The event time
68f18c58 130 AliGenHijingEventHeader* fHeader; // MC Header
f82795ff 131
36b81802 132 private:
93a2041b 133 AliGenHijing(const AliGenHijing &Hijing);
134 AliGenHijing & operator=(const AliGenHijing & rhs);
135
36b81802 136 // adjust the weight from kinematic cuts
137 void AdjustWeights();
138 // check seleted daughters
139 Bool_t DaughtersSelection(TParticle* iparticle);
140 // check if stable
14cae7e9 141 Bool_t Stable(TParticle* particle) const;
36b81802 142
fc7e1b1c 143 ClassDef(AliGenHijing, 7) // AliGenerator interface to Hijing
36b81802 144};
145#endif
146
147
148
149
150