ICP
1
|
#include <nexuswriter.h>
Public Member Functions | |
NeXusWriter () | |
void | setRunNumberDigits (int digits) |
int | writeMuonFile (const char *filename, const ISISCRPT_STRUCT *crpt, const isisU32_t *raw_data, isisU32_t raw_data_size, const seblock_map_t &blocks, const Poco::Path &inst_settings_dir, const std::string &inst_xml_file, const std::string &inst_parameter_map_file, DAEstatus &dstatus) |
int | writeISISNeXus (const char *filename, bool logs_only, const ISISCRPT_STRUCT *crpt, const isisU32_t *raw_data, isisU32_t raw_data_size, const ISISRAW *iraw, const seblock_map_t &blocks, const std::string &inst_xml_file, const std::string &inst_parameter_map_file, DAEstatus &dstatus, bool update=false) |
int | writeISISNeXus (const char *filename, bool logs_only, const ISISCRPT_STRUCT *crpt, const isisU32_t *raw_data, isisU32_t raw_data_size, const ISISRAW *iraw, const seblock_map_t &blocks, const std::string &events_nxfile, const std::string &inst_xml_file, const std::string &inst_parameter_map_file, DAEstatus &dstatus) |
int | addMissingMuonLogs (const char *filename, const char *logs_path, const char *new_comment, const char *new_sample_name, DAEstatus &dstatus) |
Private Member Functions | |
NeXusWriter (const NeXusWriter &) | |
Static Private Member Functions | |
static void | readExternalFile (const std::string &file_name, std::string &file_contents) |
Private Attributes | |
int | m_run_number_digits |
Additional Inherited Members | |
Protected Member Functions inherited from ISIS::Base | |
Base (const std::string &logger_name="UNKNOWN") | |
void | setLoggerName (const std::string &logger_name) |
virtual | ~Base () |
virtual std::string | loggingPrefix () const |
void | setThisLoggerLevel (int level) |
Static Protected Member Functions inherited from ISIS::Base | |
static void | setAllLoggerLevel (int level) |
Protected Attributes inherited from ISIS::Base | |
Poco::Logger * | m_logger |
Poco::LogStream * | m_logstr |
Poco::Mutex | m_logger_lock |
Definition at line 180 of file nexuswriter.h.
|
inline |
Definition at line 183 of file nexuswriter.h.
|
inlineprivate |
Definition at line 192 of file nexuswriter.h.
int NeXusWriter::addMissingMuonLogs | ( | const char * | filename, |
const char * | logs_path, | ||
const char * | new_comment, | ||
const char * | new_sample_name, | ||
DAEstatus & | dstatus | ||
) |
Definition at line 2206 of file nexuswriter.cpp.
References IXNeXusFile::addLog(), IXNeXusFile::close(), IXNeXusFile::closeGroup(), IXNeXusFile::enableCompression(), IXNeXusFile::enableOptions(), findFiles(), ICPTimer::info(), nxErrorFunc(), IXNeXusFile::open(), IXNeXusFile::openGroup(), IXNeXusFile::readData(), IXNeXusFile::unixTime(), IXNeXusFile::Update, IXNeXusFile::writeData(), and IXNeXusFile::WriteDummyOnNULL.
|
staticprivate |
Definition at line 1109 of file nexuswriter.cpp.
|
inline |
Definition at line 184 of file nexuswriter.h.
References m_run_number_digits.
Referenced by ISISinstrumentControl::ISISinstrumentControl().
int NeXusWriter::writeISISNeXus | ( | const char * | filename, |
bool | logs_only, | ||
const ISISCRPT_STRUCT * | crpt, | ||
const isisU32_t * | raw_data, | ||
isisU32_t | raw_data_size, | ||
const ISISRAW * | iraw, | ||
const seblock_map_t & | blocks, | ||
const std::string & | inst_xml_file, | ||
const std::string & | inst_parameter_map_file, | ||
DAEstatus & | dstatus, | ||
bool | update = false |
||
) |
< ignore spectrum 0, which is in first time regime
Definition at line 1120 of file nexuswriter.cpp.
References ISISRAW::add, DAEstatus::addInfoVa(), IXNeXusFile::addLog(), addMonitors(), IXNeXusFile::addSlabList(), IXNeXusFile::close(), IXNeXusFile::closeGroup(), ISISCRPT_STRUCT::code, ISISCRPT_STRUCT::comment, ISISCRPT_STRUCT::compression_block_size, ISISCRPT_STRUCT::compression_level, computeDetectorAverage(), RUNBLOCK::count_rate, ISISCRPT_STRUCT::crat, RUNBLOCK::dae_beam_current, ISISCRPT_STRUCT::dae_type, ISISRAW::daep, ISISRAW::data_format, ISISCRPT_STRUCT::delt, ISISCRPT_STRUCT::det_group, detector_base, detector_format, ISISCRPT_STRUCT::detector_table, ISISCRPT_STRUCT::duration, IXNeXusFile::enableCompression(), FAC_DAE, RUNTABLE::fname, ISISRAW::frmt_ver_no, IXNeXusFile::getLink(), ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::getPeriodSize(), RUNBLOCK::good_frames, ISISCRPT_STRUCT::good_frames, ISISCRPT_STRUCT::good_uamph, RUNBLOCK::good_uamps, IXNeXusFile::HDF5, ISISRAW::hdr, ISISRAW::i_det, ISISRAW::i_inst, ISISCRPT_STRUCT::i_l1, ISISRAW::i_mon, ISISRAW::i_use, ISISCRPT_STRUCT::icp_version, ICPTimer::info(), ISISCRPT_STRUCT::inst_abrv, ISISCRPT_STRUCT::inst_name, ISISCRPT_STRUCT::institute, ISISCRPT_STRUCT::instrument_xml_file, RUNBLOCK::is_running, RUNBLOCK::is_waiting, ISISCRPT_STRUCT::isis_cycle, ISISCRPT_MAX_NTRG, ISISCRPT_NUM_VETOS, ISISCRPT_STRUCT::isMonitorSpectrum(), IXNeXusFile::ISOtime(), ISISRAW::ivpb, LOG_LINE::len, ISISCRPT_STRUCT::len2, LOG_STRUCT::lines, ISISRAW::logsect, LOGSTR_ERROR, LOGSTR_INFORMATION, ISISCRPT_STRUCT::long_title, IXNeXusFile::makeDataSlab(), IXNeXusFile::makeLink(), IXNeXusFile::makeNewGroup(), ISISRAW::mdet, ISISCRPT_STRUCT::measurement_id, ISISCRPT_STRUCT::measurement_subid, ISISCRPT_STRUCT::measurement_type, ISISCRPT_STRUCT::modn, RUNBLOCK::monitor1_sum, ISISRAW::monp, ISISCRPT_STRUCT::mpos, ISISDAE::MuonDAE2, ISISCRPT_STRUCT::ndet, LOG_STRUCT::nlines, RUNBLOCK::np_ratio, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::nperseq, ISISCRPT_STRUCT::ntc, ISISCRPT_STRUCT::ntrg, ISISCRPT_STRUCT::nuse, nxErrorFunc(), IXNeXusFile::open(), IXNeXusFile::openGroup(), RUNBLOCK::period, ISISCRPT_STRUCT::period, ISISRAW::r_number, ISISRAW::r_title, RUNBLOCK::raw_frames, RUNBLOCK::raw_uamps, ISISCRPT_STRUCT::rb_number, remove_invalid_chars(), ISISRAW::rpb, ISISCRPT_STRUCT::rtcb, ISISCRPT_STRUCT::run_number, RUNBLOCK::run_status, ISISCRPT_STRUCT::sample_geometry, ISISCRPT_STRUCT::sample_height, ISISCRPT_STRUCT::sample_id, ISISCRPT_STRUCT::sample_name, ISISCRPT_STRUCT::sample_thickness, ISISCRPT_STRUCT::sample_type, ISISCRPT_STRUCT::sample_width, ISISCRPT_STRUCT::script_name, ISISCRPT_STRUCT::sdd, se_get_errmsg(), se_get_measurement_first_run(), se_get_measurement_label(), se_get_run_status(), se_get_seci_config(), se_wait_for_async(), IXNeXusFile::setErrorReporter(), IXNeXusFile::setSpectraChunkSize(), ISISRAW::spb, ISISCRPT_STRUCT::spec, ISISCRPT_STRUCT::spec_min, ISISCRPT_STRUCT::spectra_table, ISISCRPT_STRUCT::spectrumCRPTOffsetImpl(), ISISCRPT_STRUCT::spectrumGroup(), NeXusEventWriter::start(), ISISCRPT_STRUCT::start_time, ISISCRPT_STRUCT::stop_time, ISISRAW::t_nfpp, ISISRAW::t_nper, ISISRAW::t_nsp1, ISISRAW::t_ntc1, ISISRAW::t_ntrg, ISISRAW::t_pmap, ISISRAW::t_pre1, ISISRAW::t_tcm1, ISISRAW::t_tcp1, ISISCRPT_STRUCT::tcb, RUNBLOCK::time, ISISCRPT_STRUCT::timr_crpt, RUNBLOCK::total_counts, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::total_uamph, ISISCRPT_STRUCT::tthe, ISISCRPT_STRUCT::udet, IXNeXusFile::Update, ISISRAW::user, ISISCRPT_STRUCT::user_name, ISISCRPT_STRUCT::ut, LOG_STRUCT::ver, ISISRAW::ver2, ISISRAW::ver3, ISISRAW::ver5, ISISRAW::ver6, ISISRAW::ver7, ISISRAW::ver8, veto_names, ISISCRPT_STRUCT::vetos, NeXusEventWriter::wait(), ISISCRPT_STRUCT::wiring_table, IXNeXusFile::Write, IXNeXusFile::writeAttribute(), IXNeXusFile::writeData(), and writeSummaryNeXus().
Referenced by ISISinstrumentControl::writeISISNeXus().
int NeXusWriter::writeISISNeXus | ( | const char * | filename, |
bool | logs_only, | ||
const ISISCRPT_STRUCT * | crpt, | ||
const isisU32_t * | raw_data, | ||
isisU32_t | raw_data_size, | ||
const ISISRAW * | iraw, | ||
const seblock_map_t & | blocks, | ||
const std::string & | events_nxfile, | ||
const std::string & | inst_xml_file, | ||
const std::string & | inst_parameter_map_file, | ||
DAEstatus & | dstatus | ||
) |
Definition at line 1102 of file nexuswriter.cpp.
int NeXusWriter::writeMuonFile | ( | const char * | filename, |
const ISISCRPT_STRUCT * | crpt, | ||
const isisU32_t * | raw_data, | ||
isisU32_t | raw_data_size, | ||
const seblock_map_t & | blocks, | ||
const Poco::Path & | inst_settings_dir, | ||
const std::string & | inst_xml_file, | ||
const std::string & | inst_parameter_map_file, | ||
DAEstatus & | dstatus | ||
) |
Definition at line 1815 of file nexuswriter.cpp.
References DAEstatus::addInfoVa(), IXNeXusFile::addLog(), IXNeXusFile::close(), IXNeXusFile::closeGroup(), ISISCRPT_STRUCT::comment, ISISCRPT_STRUCT::duration, IXNeXusFile::enableCompression(), IXNeXusFile::enableOptions(), FAC_DAE, ISISCRPT_STRUCT::field_label, findFiles(), ISISCRPT_STRUCT::getPeriodSize(), ISISCRPT_STRUCT::good_frames, IXNeXusFile::HDF4, ICPTimer::info(), ISISCRPT_STRUCT::inst_name, ISISCRPT_STRUCT::instrument_geometry, ISISCRPT_NUM_VETOS, IXNeXusFile::ISOtime(), ISISCRPT_STRUCT::long_title, IXNeXusFile::makeNewGroup(), makeNewRawData(), ISISCRPT_STRUCT::muon_cerenkov_pulse, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::nperseq, ISISCRPT_STRUCT::nsp, ISISCRPT_STRUCT::ntc, nxErrorFunc(), IXNeXusFile::open(), ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::rb_number, readDeadTimes(), readGrouping(), readTZero(), ISISCRPT_STRUCT::rtcb, ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::sample_name, ISISCRPT_STRUCT::sample_orientation, se_wait_for_async(), ISISCRPT_STRUCT::start_time, ISISCRPT_STRUCT::stop_time, ISISCRPT_STRUCT::temperature_label, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::user_name, veto_names, ISISCRPT_STRUCT::vetos, IXNeXusFile::Write, IXNeXusFile::writeAttribute(), IXNeXusFile::writeData(), and IXNeXusFile::WriteDummyOnNULL.
Referenced by ISISinstrumentControl::saveCRPTToFile().
|
private |
Definition at line 191 of file nexuswriter.h.
Referenced by setRunNumberDigits().