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