FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGenerator.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairGenerator header file -----
10 // ----- Created 09/06/04 by D. Bertini / V. Friese -----
11 // -------------------------------------------------------------------------
12 
23 #ifndef FAIRGENERATOR_H
24 #define FAIRGENERATOR_H
25 
26 #include <Rtypes.h> // for Bool_t, etc
27 #include <TNamed.h> // for TNamed
28 
30 
31 class FairGenerator : public TNamed
32 {
33  public:
35  FairGenerator();
36 
38  FairGenerator(const char* name, const char* title = "FAIR Generator");
39 
41  virtual ~FairGenerator();
42 
50  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen) = 0;
51 
53  virtual Bool_t Init() { return kTRUE; }
54 
56  virtual FairGenerator* CloneGenerator() const;
57 
58  protected:
63 
65 };
66 
67 #endif
virtual FairGenerator * CloneGenerator() const
FairGenerator & operator=(const FairGenerator &)
ClassDef(FairGenerator, 1)
virtual ~FairGenerator()
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)=0
virtual Bool_t Init()
Definition: FairGenerator.h:53