FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEvtGenGenerator.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 // ----- FairEvtGenGenerator header file -----
10 // ----- Created 09/10/06 by S. Spataro -----
11 // -------------------------------------------------------------------------
12 
81 #ifndef FAIR_EVTGENGENERATOR_H
82 #define FAIR_EVTGENGENERATOR_H
83 
84 #include "FairGenerator.h" // for FairGenerator
85 
86 #include <Rtypes.h> // for FairEvtGenGenerator::Class, etc
87 #include <stdio.h> // for FILE
88 
90 class TF1;
91 
93 {
94  public:
97 
101  FairEvtGenGenerator(const char* fileName);
102 
105  FairEvtGenGenerator(const char* fileName, Double_t Rsigma, TF1* DensityFunction);
106 
108  virtual ~FairEvtGenGenerator();
109 
114  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
115 
116  private:
117  // ifstream* fInputFile; //! Input file stream
118  const Char_t* fFileName;
119  FILE* fInputFile;
120 
123  void CloseInput();
124 
125  int fGasmode;
126  double fRsigma;
127 
130  // TDatabasePDG *fPDG; //!
131  TF1* fDensityFunction;
132 
134  FairEvtGenGenerator& operator=(const FairEvtGenGenerator&);
135 
136  ClassDef(FairEvtGenGenerator, 1);
137 };
138 
139 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)