]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/AliCollider.h
f1b081529a8a083ed50971ae57c45f55cc60d6e7
[u/mrichter/AliRoot.git] / RALICE / AliCollider.h
1 #ifndef ALICOLLIDER_H
2 #define ALICOLLIDER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 // $Id: AliCollider.h,v 1.3 2002/12/11 14:45:12 nick Exp $
7
8 #include "TPythia6.h"
9 #include "TString.h"
10 #include "TFile.h"
11 #include "TTree.h" 
12
13 #include "AliEvent.h"
14 #include "AliRandom.h"
15  
16 class AliCollider : public TPythia6
17 {
18  public:
19   AliCollider();                                        // Default constructor
20   virtual ~AliCollider();                               // Default destructor
21   void SetOutputFile(TString name);                     // Initialise the ROOT output data file
22   void SetVertexMode(Int_t mode);                       // Select mode for (sec.) vertex structure creation
23   Int_t GetVertexMode();                                // Provide vertex structure creation mode
24   void SetResolution(Double_t res);                     // Set resolution (in cm) for resolving (sec.) vertices
25   Double_t GetResolution();                             // Provide (sec.) vertex resolving resolution (in cm)
26   void SetRunNumber(Int_t run);                         // Set user defined run number
27   Int_t GetRunNumber();                                 // Provide the user defined run number
28   void SetPrintFreq(Int_t n);                           // Set print frequency for every 'n' events
29   Int_t GetPrintFreq();                                 // Provide the print frequency
30   void Init(char* frame,char* beam,char* target,Float_t win); // Standard Pythia initialisation
31   void Init(char* frame,Int_t zp,Int_t ap,Int_t zt,Int_t at,Float_t win); // Nucl-Nucl initialisation
32   void MakeEvent(Int_t npt,Int_t mlist=-1,Int_t medit=1);// Generate a single event with npt participant nucleons
33   void EndRun();                                        // Properly close all buffers and output file
34   AliEvent* GetEvent();                                 // Provide pointer to the generated event structure
35
36  protected:
37   Int_t fVertexmode;    // The vertex structure creation mode
38   Double_t fResolution; // The resolution (in cm) for resolving (sec.) vertices 
39   Int_t fRunnum;        // The user defined run number
40   Int_t fEventnum;      // The automatically updated event number
41   Int_t fPrintfreq;     // The user selected print frequency
42   char* fFrame;         // The Pythia frame indicator
43   Float_t fWin;         // The Pythia energy indicator
44   Int_t fNucl;          // Flag to denote nucleus-nucleus (1) or standard Pythia (0) running
45   Int_t fZproj;         // Z of the projectile particle
46   Int_t fAproj;         // A of the projectile particle
47   Int_t fZtarg;         // Z of the target particle
48   Int_t fAtarg;         // A of the target particle
49   Float_t fFracpp;      // Fraction of p+p collisions
50   Float_t fFracnp;      // Fraction of n+p collisions
51   Float_t fFracpn;      // Fraction of p+n collisions
52   Float_t fFracnn;      // Fraction of n+n collisions
53   AliRandom fRan;       // Random number generator
54   AliEvent* fEvent;     // The produced event structure
55
56   TFile* fOutFile;      // The user defined output data file 
57   TTree* fOutTree;      // The standard ROOT output tree
58
59   void GetFractions(Float_t zp,Float_t ap,Float_t zt,Float_t at); // Determine various N-N collision fractions
60
61  ClassDef(AliCollider,3) // Pythia based universal physics event generator
62 };
63 #endif