]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliGenRadioactive.h
Cog correction improved. Hit position at anod
[u/mrichter/AliRoot.git] / RICH / AliGenRadioactive.h
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                               */
5
6 // Simple radioactive source generator.
7 // Currently Sr90 only
8
9 #include <AliGenerator.h>
10 #include <TH1.h>
11
12 typedef enum {kSr90} RadioNuclei_t;     
13
14 class AliGenRadioactive : public AliGenerator
15 {
16  public:
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 
21
22
23 protected:
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
27 };
28 #endif