|
musrfit 1.10.0
|
#include <unistd.h>#include <cerrno>#include <cctype>#include <cstring>#include <ctime>#include <cassert>#include <cstddef>#include <iostream>#include <fstream>#include <sstream>#include <string>#include <vector>#include <memory>#include <boost/algorithm/string.hpp>#include <TObject.h>#include <TObjArray.h>#include <TObjString.h>#include <TFile.h>#include <TFolder.h>#include <TString.h>#include <TH1F.h>#include <TKey.h>#include "PFindRun.h"#include "PStartupHandler.h"#include "TMusrRunHeader.h"#include "TLemRunHeader.h"#include "MuSR_td_PSI_bin.h"#include "mud.h"
Go to the source code of this file.
Macros | |
| #define | DH_MUSR_ROOT 0 |
| #define | DH_MUSR_ROOT_DIR 1 |
| #define | DH_LEM_ROOT 2 |
Functions | |
| void | dump_header_syntax () |
| int | dump_header_root (const std::string fileName, const bool summary, const bool counts) |
| int | dump_header_nexus (const std::string fileName, const bool counts) |
| std::vector< std::string > | dump_header_instrument_info (std::string fileName) |
| int | dump_header_psi_bin (const std::string fileName, const std::string fileFormat, const bool counts) |
| int | dump_header_mud (const std::string fileName, const bool counts) |
| int | dump_header_wkm (const std::string fileName) |
| bool | dump_is_number (const char *s) |
| int | dump_current_year () |
| int | main (int argc, char *argv[]) |
| #define DH_LEM_ROOT 2 |
Definition at line 78 of file dump_header.cpp.
Referenced by dump_header_root().
| #define DH_MUSR_ROOT 0 |
Definition at line 76 of file dump_header.cpp.
Referenced by dump_header_root().
| #define DH_MUSR_ROOT_DIR 1 |
Definition at line 77 of file dump_header.cpp.
Referenced by dump_header_root().
| int dump_current_year | ( | ) |
reads the current year from the system and converts it to a string.
Definition at line 854 of file dump_header.cpp.
Referenced by main().
| std::vector< std::string > dump_header_instrument_info | ( | std::string | fileName | ) |
dump the instrument specific info for the PSI-BIN format.
| fileName | file name of the PSI-BIN. |
Definition at line 434 of file dump_header.cpp.
Referenced by dump_header_psi_bin().
| int dump_header_mud | ( | const std::string | fileName, |
| const bool | counts ) |
dump the header information of a MUD file.
| fileName | file name of the MUD file |
| counts | bool, if true dump detector counts |
Definition at line 607 of file dump_header.cpp.
References MUD_closeRead(), MUD_getHistSecondsPerBin(), and MUD_openRead().
Referenced by main().
| int dump_header_nexus | ( | const std::string | fileName, |
| const bool | counts ) |
dumps the header information of a NeXus file.
| fileName | file name of the NeXus file. |
| counts | bool, if true dump detector counts |
Definition at line 382 of file dump_header.cpp.
References nxs::checkHDFType(), nxs::HDF4, nxs::HDF5, and nxs::Unknown.
Referenced by main().
| int dump_header_psi_bin | ( | const std::string | fileName, |
| const std::string | fileFormat, | ||
| const bool | counts ) |
dump the header information of a PSI-BIN file.
| fileName | file name of the PSI-BIN |
| fileFormat | either PSI-BIN or PSI-MDU |
| counts | bool, if true dump detector counts |
Definition at line 499 of file dump_header.cpp.
References dump_header_instrument_info(), MuSR_td_PSI_bin::GetBinWidthNanoSec(), MuSR_td_PSI_bin::GetComment(), MuSR_td_PSI_bin::GetDevTemperaturesVector(), MuSR_td_PSI_bin::GetEventsHistoLong(), MuSR_td_PSI_bin::GetField(), MuSR_td_PSI_bin::GetFirstGoodInt(), MuSR_td_PSI_bin::GetHistoLengthBin(), MuSR_td_PSI_bin::GetLastGoodInt(), MuSR_td_PSI_bin::GetNameHisto(), MuSR_td_PSI_bin::GetNumberHistoInt(), MuSR_td_PSI_bin::GetOrient(), MuSR_td_PSI_bin::GetRunNumberInt(), MuSR_td_PSI_bin::GetSample(), MuSR_td_PSI_bin::GetT0Int(), MuSR_td_PSI_bin::GetTemp(), MuSR_td_PSI_bin::GetTemperaturesVector(), MuSR_td_PSI_bin::GetTimeStartVector(), MuSR_td_PSI_bin::GetTimeStopVector(), MuSR_td_PSI_bin::Read(), and status.
Referenced by main().
| int dump_header_root | ( | const std::string | fileName, |
| const bool | summary, | ||
| const bool | counts ) |
dumps header of a ROOT file.
| fileName | file name of the ROOT file |
| summary | bool, if true dump the summary |
| counts | bool, if true dump detector counts |
Definition at line 123 of file dump_header.cpp.
References DH_LEM_ROOT, DH_MUSR_ROOT, and DH_MUSR_ROOT_DIR.
Referenced by main().
| void dump_header_syntax | ( | ) |
| int dump_header_wkm | ( | const std::string | fileName | ) |
dump the header information of a WKM file.
| fileName | file name of the WKM file. |
Definition at line 801 of file dump_header.cpp.
Referenced by main().
| bool dump_is_number | ( | const char * | s | ) |
checks if a string is a number
| s | number string to be checked |
Definition at line 832 of file dump_header.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
dump_header allows to dump the header (meta) information for various muSR specific file formats.
| argc | argument count |
| argv | argument list |
Definition at line 881 of file dump_header.cpp.
References dump_current_year(), dump_header_mud(), dump_header_nexus(), dump_header_psi_bin(), dump_header_root(), dump_header_syntax(), dump_header_wkm(), dump_is_number(), PFindRun::FoundPathName(), PFindRun::GetPathName(), parseXmlFile(), startup_path_name, and status.