FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairUrqmdGenerator.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 // ----- FairUrqmdGenerator header file -----
10 // ----- Created 11/06/04 by V. Friese / D.Bertini -----
11 // -------------------------------------------------------------------------
12 
23 #ifndef FAIRURQMDGENERATOR_H
24 #define FAIRURQMDGENERATOR_H
25 
26 #include "FairGenerator.h" // for FairGenerator
27 
28 #include <Rtypes.h> // for Int_t, Bool_t, etc
29 #include <TString.h>
30 #include <map> // for map
31 #include <stdio.h> // for FILE
32 
34 
36 {
37  public:
40 
44  FairUrqmdGenerator(const char* fileName);
45 
51  FairUrqmdGenerator(const char* fileName, const char* conversion_table);
52 
55 
61  Bool_t ReadEvent(FairPrimaryGenerator* primGen);
62 
64  Bool_t SkipEvents(Int_t count);
65 
66  private:
67  FILE* fInputFile;
68 
69  std::map<Int_t, Int_t> fParticleTable;
70 
71  const Char_t* fFileName;
72 
76  void ReadConversionTable(TString conversion_table = "");
77 
79  void CheckReturnValue(Int_t retval);
80 
82  FairUrqmdGenerator& operator=(const FairUrqmdGenerator&);
83 
84  ClassDef(FairUrqmdGenerator, 1);
85 };
86 
87 #endif
Bool_t SkipEvents(Int_t count)
Bool_t ReadEvent(FairPrimaryGenerator *primGen)