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 public:
19  AsciiNeutronReader(std::string fileNameBase);
20 
21  void readNextEvent(int chamberType, edm::PSimHitContainer& result) override;
22 
23 private:
24  int read_nhits(std::ifstream& fin, int chamberType);
25  void resetStreampos(std::ifstream& fin, int chamberType);
26 
28  std::vector<std::streampos> theStreamPos;
29 };
30 
31 #endif
void readNextEvent(int chamberType, edm::PSimHitContainer &result) override
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)