]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenHijing.h
comment about deleting det switch objects added
[u/mrichter/AliRoot.git] / EVGEN / AliGenHijing.h
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>
12 #include <TString.h>
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;}
31     virtual void    SetReferenceFrame(TString frame="CMS")
32         {fFrame=frame;}
33     virtual void    SetProjectile(TString proj="A",
34                                   Int_t a=208, Int_t z=82)
35         {fProjectile = proj;
36         fAProjectile = a;
37         fZProjectile = z;}    
38     virtual void    SetTarget(TString tar="A",
39                               Int_t a=208, Int_t z=82)
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;}
52     virtual void    SetFlavor(Int_t flag=0)           {fFlavor    = flag;}    
53     virtual void    SetEvaluate(Int_t flag=0)         {fEvaluate  = flag;}
54     virtual void    SetSelectAll(Int_t flag=0)        {fSelectAll = flag;}    
55     AliGenHijing &  operator=(const AliGenHijing & rhs);
56 // Physics Routines         
57     virtual void EvaluateCrossSections();
58  protected:
59     Bool_t SelectFlavor(Int_t pid);
60     void   MakeHeader();
61
62  protected:
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
70     Float_t     fMinImpactParam; // minimum impact parameter
71     Float_t     fMaxImpactParam; // maximum impact parameter    
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
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);
102     ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing
103 };
104 #endif
105
106
107
108
109