11 theFileNameBase(fileNameBase),
24 <<
"Muon neutron noise file missing " << fileName.str();
28 for(
int ihit = 0; ihit < nhits; ++ihit) {
29 float entryX, entryY, entryZ, exitX, exitY, exitZ;
31 int type, layer, track;
33 fin >> entryX >> entryY >> entryZ
34 >> exitX >> exitY >> exitZ
35 >> p >> tof >> eloss >> type >> layer >> track >> theta >>
phi;
38 PSimHit phit(entry, exit, p, tof, eloss, type, layer, track, theta, phi);
39 result.push_back(phit);
53 <<
" EOF " << fin.eof();
59 LogDebug(
"NeutronReader") <<
"returning nhits " << nhits;
65 LogDebug(
"NeutronReader") <<
"reached EOF, resetting streampos ";
68 fin.seekg(0, ios::beg);
Geom::Theta< T > theta() const
virtual void readNextEvent(int chamberType, edm::PSimHitContainer &result)
std::pair< std::string, MonitorElement * > entry
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)