FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairAsciiGenerator.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 // ----- FairAsciiGenerator header file -----
10 // ----- Created 09/06/04 by V. Friese / D.Bertini -----
11 // -------------------------------------------------------------------------
12 
28 #ifndef FAIR_ASCIIGENERATOR_H
29 #define FAIR_ASCIIGENERATOR_H
30 
31 #include "FairGenerator.h" // for FairGenerator
32 
33 #include <Rtypes.h> // for FairAsciiGenerator::Class, etc
34 #include <iosfwd> // for ifstream
35 
37 
39 {
40  public:
43 
47  FairAsciiGenerator(const char* fileName);
48 
50  virtual ~FairAsciiGenerator();
51 
56  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
57 
58  private:
59  std::ifstream* fInputFile;
60  const Char_t* fFileName;
61 
64  void CloseInput();
65 
67  FairAsciiGenerator& operator=(const FairAsciiGenerator&);
68 
71  // TDatabasePDG *fPDG; //!
72 
73  ClassDef(FairAsciiGenerator, 1);
74 };
75 
76 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)