]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenExtFile.h
Coding convention rules obeyed
[u/mrichter/AliRoot.git] / EVGEN / AliGenExtFile.h
1 #ifndef ALIGENEXTFILE_H
2 #define ALIGENEXTFILE_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
10 #include "AliGenerator.h"
11 #include "TTree.h"
12
13 // Read background particles from a FLUKA boundary source file
14
15 class AliGenExtFile : public AliGenerator
16 {
17  public:
18     AliGenExtFile();
19     AliGenExtFile(Int_t npart);
20     AliGenExtFile(const AliGenExtFile &cocktail);
21     
22     virtual ~AliGenExtFile();
23     // Initialise 
24     virtual void Init() {}
25     // Initialise fluka data 
26     virtual void NtupleInit();
27     // set file name of data file
28     virtual void SetFileName(const Text_t *filname) {fFileName=filname;}
29     // generate event
30     virtual void Generate();
31     AliGenExtFile & operator=(const AliGenExtFile & rhs);
32 protected:
33     const Text_t     *fFileName;      //! Choose the file
34     Int_t             fNcurrent;      // points to the next entry
35     TTree            *fTreeNtuple;    // pointer to the TTree
36     //Declaration of leaves types
37     Int_t           fNihead;          // Number of entries in integer header  
38     Int_t           fIhead[12];       // Integer header
39     Int_t           fNrhead;          // Number of entries in float header
40     Float_t         fRhead[6];        // Float header
41     UInt_t          fIdpart;          // Particle type
42     Float_t         fTheta;           // Theta 
43     Float_t         fPhi;             // Phi
44     Float_t         fP;               // Total momentum
45     Float_t         fE;               // Total energy
46     
47   ClassDef(AliGenExtFile,1) //Generate particles from external file
48 };
49 #endif
50
51
52
53
54
55