#include <AsciiNeutronReader.h>
Public Member Functions | |
AsciiNeutronReader (std::string fileNameBase) | |
void | readNextEvent (int chamberType, edm::PSimHitContainer &result) override |
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 39 of file AsciiNeutronReader.cc.
References nano_mu_digi_cff::chamberType, groupFilesInBlocks::fin, LogDebug, nhits, resetStreampos(), and theStreamPos.
Referenced by readNextEvent().
|
overridevirtual |
Implements NeutronReader.
Definition at line 15 of file AsciiNeutronReader.cc.
References nano_mu_digi_cff::chamberType, mps_splice::entry, Exception, beamvalidation::exit(), MillePedeFileConverter_cfg::fileName, groupFilesInBlocks::fin, recoMuon::in, nano_mu_digi_cff::layer, nhits, AlCaHLTBitMon_ParallelJobs::p, phi, read_nhits(), mps_fire::result, theFileNameBase, theStreamPos, theta(), and HLT_2023v12_cff::track.
|
private |
Definition at line 56 of file AsciiNeutronReader.cc.
References nano_mu_digi_cff::chamberType, groupFilesInBlocks::fin, LogDebug, and theStreamPos.
Referenced by read_nhits().
|
private |
Definition at line 27 of file AsciiNeutronReader.h.
Referenced by readNextEvent().
|
private |
Definition at line 28 of file AsciiNeutronReader.h.
Referenced by read_nhits(), readNextEvent(), and resetStreampos().