forked from aiola/alice-fast-simulation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
AliGenExtFile_dev.h
42 lines (35 loc) · 1.31 KB
/
AliGenExtFile_dev.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef ALIGENEXTFILE_DEV_H
#define ALIGENEXTFILE_DEV_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// Event generator that can read events from a files.
// The reading is performed by a realisation of AliGenReader specific to the file format.
// Author: [email protected]
#include <AliGenMC.h>
class AliGenReader;
class TTree;
class AliGenExtFile_dev : public AliGenMC {
public:
AliGenExtFile_dev();
AliGenExtFile_dev(Int_t npart);
virtual ~AliGenExtFile_dev();
// Initialise
virtual void Init();
// generate event
virtual void Generate();
void SetReader(AliGenReader* reader) { fReader = reader; }
void SetStartEvent(Int_t startEvent) { fStartEvent = startEvent; }
void SetFileName(const char* name) { fFileName = name; }
AliGenReader* Reader() const { return fReader; }
protected:
void CdEventFile();
AliGenReader* fReader; //! Reader to read the file
Int_t fStartEvent; //! Start event number
void InhibitAllTasks();
TString fFileName;
private:
AliGenExtFile_dev(const AliGenExtFile_dev& ext);
AliGenExtFile_dev& operator=(const AliGenExtFile_dev& rhs);
ClassDef(AliGenExtFile_dev, 1) //Generate particles from external file
};
#endif