CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
tuple result
Definition: query.py:137
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)