StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
JanEventReader.cxx
1 //
2 // Pibero Djawotho <pibero@iucf.indiana.edu>
3 // Indiana University
4 // Feb 18, 2006
5 //
6 
7 // Local
8 #include "JanEvent.h"
9 #include "JanEventReader.h"
10 
11 JanEventReader::JanEventReader(const string& filename)
12  : in(*new ifstream(filename.c_str()))
13 {
14  if (!in) cerr << "Can't open " << filename << endl;
15 }
16 
17 JanEventReader::~JanEventReader()
18 {
19  delete& in;
20 }
21 
22 istream& JanEventReader::operator()(JanEvent& event)
23 {
24  return in >> event;
25 }