CMS 3D CMS Logo

AsciiNeutronReader.h
Go to the documentation of this file.
1 #ifndef AsciiNeutronReader_h
2 #define AsciiNeutronReader_h
3 
4 #include <iostream>
5 #include <string>
6 #include <vector>
7 #include <fstream>
9 
18 {
19 public:
20  AsciiNeutronReader(std::string fileNameBase);
21 
22  virtual void readNextEvent(int chamberType, edm::PSimHitContainer & result);
23 
24 private:
25 
26  int read_nhits(std::ifstream & fin, int chamberType);
27  void resetStreampos(std::ifstream & fin, int chamberType);
28 
30  std::vector<std::streampos> theStreamPos;
31 };
32 
33 #endif
34 
virtual void readNextEvent(int chamberType, edm::PSimHitContainer &result)
std::string theFileNameBase
std::vector< std::streampos > theStreamPos
AsciiNeutronReader(std::string fileNameBase)
std::vector< PSimHit > PSimHitContainer
int read_nhits(std::ifstream &fin, int chamberType)
void resetStreampos(std::ifstream &fin, int chamberType)