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