12 #ifndef ROOT_TSelEventGen
13 #define ROOT_TSelEventGen
33 class TSelEventGen :
public TSelector {
45 TList* fFilesGenerated;
51 Long64_t GenerateFiles(
const char *filename, Long64_t sizenevents);
59 virtual ~TSelEventGen() { }
60 virtual Int_t Version()
const {
return 1;}
61 virtual void Begin(TTree *);
62 virtual void SlaveBegin(TTree *tree);
63 virtual void Init(TTree *tree);
64 virtual Bool_t Notify();
65 virtual Bool_t Process(Long64_t entry);
66 virtual void SetOption(
const char *option) { fOption = option; }
67 virtual void SetObject(TObject *obj) { fObject = obj; }
68 virtual void SetInputList(TList *input) {fInput = input;}
69 virtual TList *GetOutputList()
const {
return fOutput; }
70 virtual void SlaveTerminate();
71 virtual void Terminate();
72 virtual void Print(Option_t *option=
"")
const;
74 ClassDef(TSelEventGen,0)
79 #ifdef TSelEventGen_cxx
81 void TSelEventGen::Init(TTree *tree)
89 if (tree == 0)
return;
91 fChain->SetMakeClass(1);
94 Bool_t TSelEventGen::Notify()
106 #endif // #ifdef TSelEventGen_cxx