StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StEStructPool
EventGenerators
StEStructAscii.h
1
/**********************************************************************
2
*
3
* StEStructAscii.h
4
*
5
* Author: msd
6
*
7
**********************************************************************
8
*
9
* Description: EStructEventReader wrapper for ascii files.
10
* Modified from StEStructPythia.
11
*
12
**********************************************************************/
13
#ifndef __STESTRUCTASCII__H
14
#define __STESTRUCTASCII__H
15
16
#include "StEStructPool/AnalysisMaker/StEStructEventReader.h"
17
#include "TROOT.h"
18
#include <iostream>
19
#include <fstream>
20
21
class
StEStructEventCuts
;
22
class
StEStructTrackCuts
;
23
24
class
StEStructAscii
:
public
StEStructEventReader
{
25
26
int
meventCount;
27
int
meventsToDo;
28
bool
mAmDone;
29
int
mnumTracks;
30
int
mlineNumber;
// line number of input file
31
32
std::ifstream in;
// input file reader
33
34
void
fillTracks(
StEStructEvent
* estructEvent);
35
36
public
:
37
38
StEStructAscii
();
39
StEStructAscii
(
int
nevents,
char
* infile,
StEStructEventCuts
* ecuts,
StEStructTrackCuts
* tcuts);
40
41
virtual
~
StEStructAscii
(){};
42
bool
hasInputFile();
43
44
virtual
StEStructEvent
* next();
45
virtual
bool
done();
46
virtual
StEStructEvent
* generateEvent();
47
48
ClassDef(
StEStructAscii
,1)
49
};
50
51
52
inline
bool
StEStructAscii::done(){
return
mAmDone; };
53
54
#endif
55
56
/**********************************************************************
57
*
58
*
59
* Revision 1.1
60
*
61
*
62
*
63
*********************************************************************/
StEStructEvent
Definition:
StEStructEvent.h:25
StEStructTrackCuts
Definition:
StEStructTrackCuts.h:21
StEStructEventReader
Definition:
StEStructEventReader.h:24
StEStructEventCuts
Definition:
StEStructEventCuts.h:26
StEStructAscii
Definition:
StEStructAscii.h:24
Generated by
1.8.5