EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicAsciiBoxGenerator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicAsciiBoxGenerator.h
1 //
2 // AYK (ayk@bnl.gov), 2015/11/06
3 //
4 // A (temporary) hack to import HIJING ASCII files with the same interface
5 // calls which are provided with the EicBox Generator;
6 //
7 
8 #include <iostream>
9 
10 #include <TString.h>
11 
12 #include <EicBoxGenerator.h>
13 
14 #ifndef _EIC_ASCII_BOX_GENERATOR_
15 #define _EIC_ASCII_BOX_GENERATOR_
16 
18 {
19  public:
20  EicAsciiBoxGenerator(const char *fileName = 0);
22 
23  Bool_t ReadEvent(FairPrimaryGenerator* primGen);
24  void SetPtRange(double min, double max) { mPtMin = min; mPtMax = max; };
25 
26  void SetTrackMultiplicityLimit(unsigned mult) { mMult = mult; };
27 
28  bool IsOver() { return !mFstream || mFstream->fail() || mFstream->eof(); };
29 
30  private:
31  double mPtMin, mPtMax;
32 
33  std::fstream *mFstream;
34 
36 
38 };
39 
40 #endif
41