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
AsciiNeutronReader::AsciiNeutronReader
AsciiNeutronReader(std::string fileNameBase)
Definition: AsciiNeutronReader.cc:10
AsciiNeutronReader::readNextEvent
void readNextEvent(int chamberType, edm::PSimHitContainer &result) override
Definition: AsciiNeutronReader.cc:15
AsciiNeutronReader
Definition: AsciiNeutronReader.h:17
AsciiNeutronReader::theStreamPos
std::vector< std::streampos > theStreamPos
Definition: AsciiNeutronReader.h:28
groupFilesInBlocks.fin
fin
Definition: groupFilesInBlocks.py:94
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
AsciiNeutronReader::theFileNameBase
std::string theFileNameBase
Definition: AsciiNeutronReader.h:27
NeutronReader.h
AsciiNeutronReader::read_nhits
int read_nhits(std::ifstream &fin, int chamberType)
Definition: AsciiNeutronReader.cc:39
AsciiNeutronReader::resetStreampos
void resetStreampos(std::ifstream &fin, int chamberType)
Definition: AsciiNeutronReader.cc:56
mps_fire.result
result
Definition: mps_fire.py:311
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
NeutronReader
Definition: NeutronReader.h:11