Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef UTIL_LCAscHepRdr_H
#define UTIL_LCAscHepRdr_H 1
#include "IMPL/LCCollectionVec.h"
#include <fstream>
namespace UTIL{
/**Basic utility for reading a ASCII HEPEvt file and filling
* a LCCollectionVec with MCParticles containing the HEPEvt
* file information.
*
* @author Mora de Freitas
* @version $Id:
*/
class LCAscHepRdr{
public:
/** Open the HEPEvt input file in the constructer
*/
LCAscHepRdr(const char* evfile, int fileFormat) ;
/** noop
*/
~LCAscHepRdr() ;
/** Read an event and return a LCCollectionVec of MCParticles.
*/
IMPL::LCCollectionVec * readEvent() ;
private:
std::ifstream inputFile;
int theFileFormat;
}; // class
} // namespace UTIL
#endif /* ifndef UTIL_LCAscHepRdr_H */