EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
17
class
EicAsciiBoxGenerator
:
public
EicBoxGenerator
18
{
19
public
:
20
EicAsciiBoxGenerator
(
const
char
*fileName = 0);
21
~EicAsciiBoxGenerator
() {};
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
35
unsigned
mRemainingTrackCounter
;
36
37
ClassDef
(
EicAsciiBoxGenerator
,4);
38
};
39
40
#endif
41
EicRoot
blob
master
eic
base
EicAsciiBoxGenerator.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration