#include <Event.h>
Public Types | |
enum | ExtraSection { ES_SimTrackStates = 0x1, ES_Seeds = 0x2, ES_CmsswTracks = 0x4, ES_HitIterMasks = 0x8, ES_BeamSpot = 0x10 } |
Public Member Functions | |
int | advancePosToNextEvent (FILE *fp) |
void | close () |
void | CloseWrite (int n_written) |
bool | hasBeamSpot () const |
bool | hasCmsswTracks () const |
bool | hasHitIterMasks () const |
bool | hasSeeds () const |
bool | hasSimTrackStates () const |
int | openRead (const std::string &fname, int expected_n_layers) |
void | openWrite (const std::string &fname, int n_layers, int n_ev, int extra_sections=0) |
void | rewind () |
void | skipNEvents (int n_to_skip) |
Public Attributes | |
FILE * | f_fp = 0 |
DataFileHeader | f_header |
std::mutex | f_next_ev_mutex |
long | f_pos = sizeof(DataFileHeader) |
Enumerator | |
---|---|
ES_SimTrackStates | |
ES_Seeds | |
ES_CmsswTracks | |
ES_HitIterMasks | |
ES_BeamSpot |
Definition at line 101 of file Event.h.
int mkfit::DataFile::advancePosToNextEvent | ( | FILE * | fp | ) |
Definition at line 1013 of file Event.cc.
References f_next_ev_mutex, f_pos, personalPlayback::fp, and mkfit::Config::loopOverFile.
Referenced by mkfit::Event::read_in().
void mkfit::DataFile::close | ( | void | ) |
Definition at line 1046 of file Event.cc.
References f_fp, and f_header.
Referenced by CloseWrite(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), and test_standard().
void mkfit::DataFile::CloseWrite | ( | int | n_written | ) |
|
inline |
Definition at line 122 of file Event.h.
References ES_BeamSpot, mkfit::DataFileHeader::f_extra_sections, and f_header.
Referenced by mkfit::Event::read_in(), and mkfit::Event::write_out().
|
inline |
Definition at line 120 of file Event.h.
References ES_CmsswTracks, mkfit::DataFileHeader::f_extra_sections, and f_header.
Referenced by openRead(), mkfit::Event::read_in(), and mkfit::Event::write_out().
|
inline |
Definition at line 121 of file Event.h.
References ES_HitIterMasks, mkfit::DataFileHeader::f_extra_sections, and f_header.
Referenced by mkfit::Event::read_in(), and mkfit::Event::write_out().
|
inline |
Definition at line 119 of file Event.h.
References ES_Seeds, mkfit::DataFileHeader::f_extra_sections, and f_header.
Referenced by openRead(), mkfit::Event::read_in(), and mkfit::Event::write_out().
|
inline |
Definition at line 118 of file Event.h.
References ES_SimTrackStates, mkfit::DataFileHeader::f_extra_sections, and f_header.
Referenced by mkfit::Event::read_in(), and mkfit::Event::write_out().
int mkfit::DataFile::openRead | ( | const std::string & | fname, |
int | expected_n_layers | ||
) |
Definition at line 919 of file Event.cc.
References cms::cuda::assert(), mkfit::cmsswSeeds, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), ES_CmsswTracks, ES_Seeds, ES_SimTrackStates, beamvalidation::exit(), mkfit::DataFileHeader::f_extra_sections, mkfit::DataFileHeader::f_format_version, f_fp, f_header, mkfit::DataFileHeader::f_magic, mkfit::DataFileHeader::f_n_events, mkfit::DataFileHeader::f_n_layers, mkfit::DataFileHeader::f_sizeof_hit, mkfit::DataFileHeader::f_sizeof_hot, mkfit::DataFileHeader::f_sizeof_track, alignmentValidation::fname, hasCmsswTracks(), hasSeeds(), mkfit::Config::readCmsswTracks, mkfit::Config::seedInput, and submitPVResolutionJobs::stderr.
Referenced by mkfit::Shell::Shell(), and test_standard().
void mkfit::DataFile::openWrite | ( | const std::string & | fname, |
int | n_layers, | ||
int | n_ev, | ||
int | extra_sections = 0 |
||
) |
Definition at line 998 of file Event.cc.
References mkfit::DataFileHeader::f_extra_sections, f_fp, f_header, mkfit::DataFileHeader::f_n_events, mkfit::DataFileHeader::f_n_layers, and alignmentValidation::fname.
Referenced by main().
void mkfit::DataFile::rewind | ( | ) |
Definition at line 1007 of file Event.cc.
References f_fp, f_next_ev_mutex, and f_pos.
Referenced by mkfit::Shell::GoToEvent().
void mkfit::DataFile::skipNEvents | ( | int | n_to_skip | ) |
Definition at line 1034 of file Event.cc.
References f_fp, f_next_ev_mutex, and f_pos.
Referenced by mkfit::Shell::GoToEvent(), and test_standard().
FILE* mkfit::DataFile::f_fp = 0 |
Definition at line 109 of file Event.h.
Referenced by close(), CloseWrite(), openRead(), openWrite(), mkfit::Event::read_in(), rewind(), skipNEvents(), and mkfit::Event::write_out().
DataFileHeader mkfit::DataFile::f_header |
Definition at line 112 of file Event.h.
Referenced by close(), CloseWrite(), hasBeamSpot(), hasCmsswTracks(), hasHitIterMasks(), hasSeeds(), hasSimTrackStates(), openRead(), and openWrite().
std::mutex mkfit::DataFile::f_next_ev_mutex |
Definition at line 114 of file Event.h.
Referenced by advancePosToNextEvent(), rewind(), and skipNEvents().
long mkfit::DataFile::f_pos = sizeof(DataFileHeader) |
Definition at line 110 of file Event.h.
Referenced by advancePosToNextEvent(), rewind(), and skipNEvents().