-
-protected:
- const Text_t *fFileName; //! Choose the file
- Int_t fNcurrent; // points to the next entry
- TTree *fTreeNtuple; // pointer to the TTree
-//Declaration of variables read from the file -- TTree type
- //Declaration of leaves types
- Int_t Nihead;
- Int_t Ihead[12];
- Int_t Nrhead;
- Float_t Rhead[6];
- UInt_t Idpart;
- Float_t Theta;
- Float_t Phi;
- Float_t P;
- Float_t E;
-public:
- AliGenExtFile();
- AliGenExtFile(Int_t npart);
- virtual ~AliGenExtFile();
- // Initialise
- virtual void Init() {}
- // Initialise fluka data
- virtual void NtupleInit();
- // set file name of data file
- virtual void SetFileName(const Text_t *filname) {fFileName=filname;}
- // generate event
- virtual void Generate();
-
- ClassDef(AliGenExtFile,1) //Boundary source
+ public:
+ AliGenExtFile();
+ AliGenExtFile(Int_t npart);
+ virtual ~AliGenExtFile();
+ // Initialise
+ virtual void Init();
+ // generate event
+ virtual void Generate();
+ void SetReader(AliGenReader* reader) {fReader = reader;}
+ void SetStartEvent(Int_t startEvent) {fStartEvent = startEvent;}
+ protected:
+ void CdEventFile();
+ const Text_t *fFileName; //! File to read from
+ AliGenReader *fReader; //! Reader to read the file
+ Int_t fStartEvent; //! Start event number
+
+ private:
+ AliGenExtFile(const AliGenExtFile &ext);
+ AliGenExtFile & operator=(const AliGenExtFile & rhs);
+
+ ClassDef(AliGenExtFile,1) //Generate particles from external file