1 #ifndef AliGenRadioactive_h
2 #define AliGenRadioactive_h
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 // Simple radioactive source generator.
9 #include <AliGenerator.h>
12 typedef enum {kSr90} RadioNuclei_t;
14 class AliGenRadioactive : public AliGenerator
17 AliGenRadioactive() : AliGenerator(),fPartId(0),fGenH1(0) {;}//default ctor
18 AliGenRadioactive(Int_t iSource,Int_t iNparts); //main ctor
19 virtual ~AliGenRadioactive() {if(fGenH1) delete fGenH1;}//dtor
20 virtual void Generate(); //interface from AliGenerator, generates current event
24 Int_t fPartId; //ID of secondary from radioactive nucleus
25 TH1F *fGenH1; //Histogram containg exp spectrum to be used to sample the energy
26 ClassDef(AliGenRadioactive,1) // Radioactive source generator