#include <AsciiNeutronReader.h>
Public Member Functions | |
AsciiNeutronReader (std::string fileNameBase) | |
virtual void | readNextEvent (int chamberType, edm::PSimHitContainer &result) |
Public Member Functions inherited from NeutronReader | |
NeutronReader () | |
virtual | ~NeutronReader () |
Private Member Functions | |
int | read_nhits (std::ifstream &fin, int chamberType) |
void | resetStreampos (std::ifstream &fin, int chamberType) |
Private Attributes | |
std::string | theFileNameBase |
std::vector< std::streampos > | theStreamPos |
This reads patterns of neutron hits in muon chambers from an ASCII database, so they can be superimposed onto signal events. It reads the events sequentially, and loops back to the beginning when it reaches EOF
Definition at line 17 of file AsciiNeutronReader.h.
AsciiNeutronReader::AsciiNeutronReader | ( | std::string | fileNameBase | ) |
Definition at line 10 of file AsciiNeutronReader.cc.
|
private |
Definition at line 45 of file AsciiNeutronReader.cc.
References LogDebug, nhits, resetStreampos(), and theStreamPos.
Referenced by readNextEvent().
|
virtual |
Implements NeutronReader.
Definition at line 18 of file AsciiNeutronReader.cc.
References mps_splice::entry, Exception, cmsRelvalreport::exit, MillePedeFileConverter_cfg::fileName, groupFilesInBlocks::fin, recoMuon::in, nhits, AlCaHLTBitMon_ParallelJobs::p, phi, read_nhits(), theFileNameBase, theStreamPos, theta(), and HiIsolationCommonParameters_cff::track.
|
private |
Definition at line 64 of file AsciiNeutronReader.cc.
References LogDebug, and theStreamPos.
Referenced by read_nhits().
|
private |
Definition at line 29 of file AsciiNeutronReader.h.
Referenced by readNextEvent().
|
private |
Definition at line 30 of file AsciiNeutronReader.h.
Referenced by read_nhits(), readNextEvent(), and resetStreampos().