]>
Commit | Line | Data |
---|---|---|
693caace | 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 | ||
693caace | 8 | ///////////////////////////////////////////////////////// |
9 | // Manager and hits classes for set:MUON version 0 // | |
10 | ///////////////////////////////////////////////////////// | |
11 | #include "AliGenerator.h" | |
12 | #include "TNamed.h" | |
13 | #include "TF1.h" | |
14 | #include "TArrayF.h" | |
15 | #include "TTree.h" | |
16 | ||
17 | // Read background particles from a FLUKA boundary source file | |
18 | ||
19 | class AliGenExtFile : public AliGenerator | |
20 | { | |
21 | ||
22 | protected: | |
9b153ba2 | 23 | const Text_t *fFileName; //! Choose the file |
693caace | 24 | Int_t fNcurrent; // points to the next entry |
25 | TTree *fTreeNtuple; // pointer to the TTree | |
26 | //Declaration of variables read from the file -- TTree type | |
27 | //Declaration of leaves types | |
28 | Int_t Nihead; | |
29 | Int_t Ihead[12]; | |
30 | Int_t Nrhead; | |
31 | Float_t Rhead[6]; | |
32 | UInt_t Idpart; | |
33 | Float_t Theta; | |
34 | Float_t Phi; | |
35 | Float_t P; | |
36 | Float_t E; | |
37 | public: | |
38 | AliGenExtFile(); | |
39 | AliGenExtFile(Int_t npart); | |
40 | virtual ~AliGenExtFile(); | |
41 | // Initialise | |
42 | virtual void Init() {} | |
43 | // Initialise fluka data | |
44 | virtual void NtupleInit(); | |
45 | // set file name of data file | |
46 | virtual void SetFileName(const Text_t *filname) {fFileName=filname;} | |
47 | // generate event | |
48 | virtual void Generate(); | |
49 | ||
50 | ClassDef(AliGenExtFile,1) //Boundary source | |
51 | }; | |
52 | #endif | |
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 |