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