]> git.uio.no Git - u/mrichter/AliRoot.git/blob - DIME/TDime.h
TGenerator interface to DIME generator
[u/mrichter/AliRoot.git] / DIME / TDime.h
1 #ifndef TDIME_H
2 #define TDIME_H
3
4
5 //////////////////////////////////////////////////////////////////////////
6 //                                                                      //
7 // TDime                                                                //
8 //                                                                      //
9 // This class implements an interface to the DIME event generator.      //
10 //                                                                      //
11 //////////////////////////////////////////////////////////////////////////
12
13 #ifndef ROOT_TGenerator
14 #include "TGenerator.h"
15 #endif
16 class TObjArray;
17
18 class TDime : public TGenerator {
19 public:
20    
21    TDime();
22    TDime(Double_t efrm);
23    virtual            ~TDime();
24    virtual void        Initialize();
25    virtual void        GenerateEvent();
26    virtual Int_t       ImportParticles(TClonesArray *particles, Option_t *option="");
27    virtual TObjArray*  ImportParticles(Option_t *option="");
28    //Parameters for the generation:
29    virtual void        SetEnergyCMS(Float_t efrm) {fEfrm = efrm;}
30    virtual Float_t     GetEnergyCMS() const {return fEfrm;}
31    protected:
32    Float_t      fEfrm;     // Energy in the centre of mass (CMS) or lab-frame (LAB)
33    ClassDef(TDime,1)  //Interface to Dime Event Generator
34 };
35
36 #endif
37
38
39
40
41
42
43