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 | |
15 | class TArrayI; |
16 | class TParticle; |
17 | |
18 | class 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;} |
2705454f |
55 | virtual void SetSpectators(Int_t spects=1) {fSpectators = spects;} |
eb342d2d |
56 | AliGenHijing & operator=(const AliGenHijing & rhs); |
110410f9 |
57 | // Physics Routines |
58 | virtual void EvaluateCrossSections(); |
eb342d2d |
59 | protected: |
60 | Bool_t SelectFlavor(Int_t pid); |
3b8bd63f |
61 | void MakeHeader(); |
62 | |
110410f9 |
63 | protected: |
3b8bd63f |
64 | TString fFrame; // Reference frame |
65 | TString fProjectile; // Projectile |
66 | TString fTarget; // Target |
67 | Int_t fAProjectile; // Projectile A |
68 | Int_t fZProjectile; // Projectile Z |
69 | Int_t fATarget; // Target A |
70 | Int_t fZTarget; // Target Z |
110410f9 |
71 | Float_t fMinImpactParam; // minimum impact parameter |
72 | Float_t fMaxImpactParam; // maximum impact parameter |
3b8bd63f |
73 | Int_t fKeep; // Flag to keep full event information |
74 | Int_t fQuench; // Flag to switch on jet quenching |
75 | Int_t fShadowing; // Flag to switch on voclear effects on parton distribution function |
76 | Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma |
77 | Int_t fTrigger; // Trigger type |
78 | Int_t fEvaluate; // Evaluate total and partial cross-sections |
79 | Int_t fSelectAll; // Flag to write the full event |
80 | Int_t fFlavor; // Selected particle flavor 4: charm+beauty 5: beauty |
81 | Decay_t fForceDecay; // Decay channel are forced |
82 | Float_t fEnergyCMS; // Centre of mass energy |
83 | Float_t fKineBias; // Bias from kinematic selection |
84 | Int_t fTrials; // Number of trials |
85 | TArrayI fParentSelect; // Parent particles to be selected |
86 | TArrayI fChildSelect; // Decay products to be selected |
87 | Float_t fXsection; // Cross-section |
88 | THijing *fHijing; // Hijing |
89 | Float_t fPtHardMin; // lower pT-hard cut |
90 | Float_t fPtHardMax; // higher pT-hard cut |
2705454f |
91 | Int_t fSpectators; // put spectators on stack |
110410f9 |
92 | |
93 | private: |
94 | // check if particle is selected as parent particle |
95 | Bool_t ParentSelected(Int_t ip); |
96 | // check if particle is selected as child particle |
97 | Bool_t ChildSelected(Int_t ip); |
98 | // all kinematic selection cuts go here |
99 | Bool_t KinematicSelection(TParticle *particle); |
100 | // adjust the weight from kinematic cuts |
101 | void AdjustWeights(); |
102 | // check seleted daughters |
103 | Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles); |
608708ba |
104 | // check if stable |
105 | Bool_t Stable(TParticle* particle); |
106 | |
110410f9 |
107 | ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing |
108 | }; |
109 | #endif |
110 | |
111 | |
112 | |
113 | |
114 | |