]>
Commit | Line | Data |
---|---|---|
f87cfe57 | 1 | #ifndef ALIGENEXTFILE_H |
2 | #define ALIGENEXTFILE_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
f87cfe57 | 8 | |
9 | ||
693caace | 10 | #include "AliGenerator.h" |
693caace | 11 | #include "TTree.h" |
12 | ||
13 | // Read background particles from a FLUKA boundary source file | |
14 | ||
15 | class AliGenExtFile : public AliGenerator | |
16 | { | |
f87cfe57 | 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); | |
693caace | 32 | protected: |
f87cfe57 | 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 | |
693caace | 48 | }; |
49 | #endif | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 |