StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjEEMCTxt.h
1 // -*- mode: c++;-*-
2 // $Id: StjEEMCTxt.h,v 1.1 2008/11/27 07:35:24 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJEEMCTXT_H
5 #define STJEEMCTXT_H
6 
7 #include "StjEEMC.h"
8 
9 #include <string>
10 #include <fstream>
11 
12 class StjEEMCTxt : public StjEEMC {
13 
14 public:
15  StjEEMCTxt(const char* path);
16  virtual ~StjEEMCTxt() { }
17 
18  StjTowerEnergyList getEnergyList();
19 
20 private:
21 
22  std::ifstream _dataFile;
23  long _currentEvent;
24  std::string _oldLine;
25 
26  ClassDef(StjEEMCTxt, 1)
27 
28 };
29 
30 #endif // STJEEMCTXT_H