1 #ifndef AliGenExtFile_H
2 #define AliGenExtFile_H
3 /////////////////////////////////////////////////////////
4 // Manager and hits classes for set:MUON version 0 //
5 /////////////////////////////////////////////////////////
6 #include "AliGenerator.h"
12 // Read background particles from a FLUKA boundary source file
14 class AliGenExtFile : public AliGenerator
18 const Text_t *fFileName; // Choose the file
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
34 AliGenExtFile(Int_t npart);
35 virtual ~AliGenExtFile();
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;}
43 virtual void Generate();
45 ClassDef(AliGenExtFile,1) //Boundary source