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 */
8 /////////////////////////////////////////////////////////
9 // Manager and hits classes for set:MUON version 0 //
10 /////////////////////////////////////////////////////////
11 #include "AliGenerator.h"
17 // Read background particles from a FLUKA boundary source file
19 class AliGenExtFile : public AliGenerator
23 const Text_t *fFileName; //! Choose the file
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
39 AliGenExtFile(Int_t npart);
40 virtual ~AliGenExtFile();
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;}
48 virtual void Generate();
50 ClassDef(AliGenExtFile,1) //Boundary source