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