11 : theFileNameBase(fileNameBase),
13 theStreamPos(11, 0) {}
24 for (
int ihit = 0; ihit <
nhits; ++ihit) {
25 float entryX, entryY, entryZ, exitX, exitY, exitZ;
29 fin >> entryX >> entryY >> entryZ >> exitX >> exitY >> exitZ >>
p >> tof >> eloss >>
type >>
layer >>
track >>
57 LogDebug(
"NeutronReader") <<
"reached EOF, resetting streampos ";
60 fin.seekg(0, ios::beg);
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)
Geom::Theta< T > theta() const