ICP  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
NeXusWriter Class Reference

#include <nexuswriter.h>

Inheritance diagram for NeXusWriter:
Inheritance graph

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
 

Detailed Description

Definition at line 180 of file nexuswriter.h.

Constructor & Destructor Documentation

NeXusWriter::NeXusWriter ( )
inline

Definition at line 183 of file nexuswriter.h.

NeXusWriter::NeXusWriter ( const NeXusWriter )
inlineprivate

Definition at line 192 of file nexuswriter.h.

Member Function Documentation

int NeXusWriter::addMissingMuonLogs ( const char *  filename,
const char *  logs_path,
const char *  new_comment,
const char *  new_sample_name,
DAEstatus dstatus 
)
void NeXusWriter::readExternalFile ( const std::string &  file_name,
std::string &  file_contents 
)
staticprivate

Definition at line 1109 of file nexuswriter.cpp.

void NeXusWriter::setRunNumberDigits ( int  digits)
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

Todo:
update if extra spectra 0 in other TR
Todo:
handle both software and hardware periods

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 
)

Member Data Documentation

int NeXusWriter::m_run_number_digits
private

Definition at line 191 of file nexuswriter.h.

Referenced by setRunNumberDigits().


The documentation for this class was generated from the following files: