ICP
1
|
Go to the source code of this file.
Classes | |
struct | RUNTABLE |
struct | VETO |
struct | TCBRANGE |
struct | PERIOD |
struct | data_dae_t |
struct | beamlogger_t |
struct | nagios_t |
struct | monitoring_par |
struct | SplitItem |
struct | ISISCRPT_STRUCT |
struct | ISISCRPT_STRUCT::Monitoring |
Enumerations | |
enum | VetoNames { SMPVeto =0, FIFOVeto =1, InternalVeto =2, Ext0Veto =3, Ext1Veto =4, Ext2Veto =5, Ext3Veto =6, FermiChopperVeto0 =7, FermiChopperVeto1 =8, FermiChopperVeto2 =9, FermiChopperVeto3 =10, MSModeVeto =11, TS2PulseVeto =12, ISIS50HzVeto =13 } |
enum | PeriodSetupSource { PeriodSourceLabview = 0, PeriodSourceFile = 1 } |
Functions | |
int | spacePadCopy (char *output, const char *input, int output_size) |
int | spacePadCopyVa (char *output, int output_size, const char *format,...) |
int | spaceTrimCopy (char *output, int output_size, const char *input, int input_size) |
static bool | tcbRangesPurelyShifted (const TCBRANGE &t1, const TCBRANGE &t2) |
Variables | |
static const char * | crpt_rcsid = "$Revision: 1675 $" |
static const char * | runstatus_names [] |
static const char * | sestatus_names [] |
static const char * | veto_names [] |
these names will be used in the NeXus data file, so no spaces and lowercase only More... | |
#define ICP_NAME_LEN 80 |
Definition at line 39 of file isiscrpt.h.
#define ISISCRPT_INST_ABRV_LEN 3 |
lenth of abbreviated instrument name
Definition at line 32 of file isiscrpt.h.
#define ISISCRPT_INST_LEN 16 |
lenth of instrument name
Definition at line 31 of file isiscrpt.h.
#define ISISCRPT_INSTITUTE_NAME_LEN 80 |
Definition at line 36 of file isiscrpt.h.
#define ISISCRPT_LOG_LINELEN 80 |
Definition at line 45 of file isiscrpt.h.
#define ISISCRPT_LOG_MAXLINES 20 |
Definition at line 44 of file isiscrpt.h.
#define ISISCRPT_MAX_DATADAE 10 |
Definition at line 41 of file isiscrpt.h.
Referenced by ISISinstrumentControl::readDataDaeTable().
#define ISISCRPT_MAX_DC 35 |
max allowed total number of detector cards in all crates
Definition at line 26 of file isiscrpt.h.
Referenced by ISISinstrumentControl::updateSpecmapsFromDAE().
#define ISISCRPT_MAX_DC_DETECTOR 65536 |
max number of detectors on a detector card in whole DAE
Definition at line 15 of file isiscrpt.h.
Referenced by ISISCRPT_STRUCT::dae1SpecForCardIndex(), and ISISinstrumentControl::updateSpecmapsFromDAE().
#define ISISCRPT_MAX_DETECTOR 810000 |
max number of detectors in whole DAE - also increase DAE2DetCardPolicy::DAESPECMAX
Definition at line 14 of file isiscrpt.h.
Referenced by ISISCRPT_DATA::load(), ISISCRPT_DATA::loadOrCreate(), ISISinstrumentControl::readSpectraTable(), and ISISinstrumentControl::readWiringTable().
#define ISISCRPT_MAX_FNAMELEN 256 |
max length of filename
Definition at line 23 of file isiscrpt.h.
#define ISISCRPT_MAX_LVXML_SIZE 50000 |
Definition at line 233 of file isiscrpt.h.
#define ISISCRPT_MAX_MONITOR 64 |
max number of monitors
Definition at line 16 of file isiscrpt.h.
Referenced by ISISinstrumentControl::readWiringTable().
#define ISISCRPT_MAX_NTRG 6 |
max number of time regimes
Definition at line 20 of file isiscrpt.h.
Referenced by ISISinstrumentControl::getTCBXML(), ISISinstrumentControl::readSpectraTable(), ISISinstrumentControl::setupDAE(), ISISinstrumentControl::updateTCBXML(), and NeXusWriter::writeISISNeXus().
#define ISISCRPT_MAX_NUM_DAE 4 |
max allowed total number of dae crates
Definition at line 27 of file isiscrpt.h.
#define ISISCRPT_MAX_PERIOD 512 |
Definition at line 19 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::changeNumberOfSoftwarePeriods(), ISISinstrumentControl::setupDAE(), and ISISinstrumentControl::updateHardwarePeriodsXML().
#define ISISCRPT_MAX_RCSID 40 |
max length of crpt_rcsid
Definition at line 24 of file isiscrpt.h.
#define ISISCRPT_MAX_TCPAR 4 |
max number of time channel parameters per range
Definition at line 22 of file isiscrpt.h.
#define ISISCRPT_MAX_TCR 5 |
max number of time channel ranges within a regime
Definition at line 21 of file isiscrpt.h.
Referenced by ISISinstrumentControl::setTimeChannelRange().
#define ISISCRPT_MAX_TIMECHANB 100000 |
max number of time channels
Definition at line 17 of file isiscrpt.h.
Referenced by ISISinstrumentControl::tcbcalc().
#define ISISCRPT_MAX_USER 20 |
max number of user tables
Definition at line 18 of file isiscrpt.h.
Referenced by DETECTOR::DETECTOR(), and ISISinstrumentControl::readDetectorTable().
#define ISISCRPT_NUM_FC_VETO 4 |
number of fast/fermi chopper vetos
Definition at line 29 of file isiscrpt.h.
#define ISISCRPT_NUM_VETOS (sizeof(veto_names) / sizeof(const char*)) |
max number of vetos
Definition at line 112 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), NeXusWriter::writeISISNeXus(), and NeXusWriter::writeMuonFile().
#define ISISCRPT_PERIOD_LABEL_LEN 80 |
Definition at line 37 of file isiscrpt.h.
#define ISISCRPT_SHORT_TITLE_LEN 24 |
max length of short title in old raw file format
Definition at line 34 of file isiscrpt.h.
#define ISISCRPT_TITLE_LEN 256 |
max length of title, but only 80 chars will make it into ISIS raw file / journal.txt (NeXus and journal.xml get all)
Definition at line 33 of file isiscrpt.h.
#define ISISCRPT_USER_NAME_LEN 80 |
Definition at line 35 of file isiscrpt.h.
#define ISISCRPT_VERSION 3 |
increment ISISCRPT_VERSION for any ISISCRPT_STRUCT changes that might not be detected by a change of size
Definition at line 5 of file isiscrpt.h.
Referenced by ISISCRPT_STRUCT::ISISCRPT_STRUCT(), and CRPTProxy::loadOrCreateCRPT().
#define MAX_MONITORING_PAR 200 |
Definition at line 448 of file isiscrpt.h.
Referenced by ISISinstrumentControl::updateMonitoringXML().
#define NULL_TERMINATE | ( | __array | ) | __array[sizeof(__array) - 1] = '\0' |
null terminate a char[n] static array
Definition at line 74 of file isiscrpt.h.
Referenced by CRPTProxy::assignLogFiles(), ISISinstrumentControl::changeUpdateSettingsXML(), getInstAbrv(), ISISCRPT_STRUCT::ISISCRPT_STRUCT(), ISISinstrumentControl::ISISinstrumentControl(), ISISinstrumentControl::logEventVaImp(), ISISinstrumentControl::readDataDaeTable(), ISISinstrumentControl::readDetectorTable(), ISISinstrumentControl::readSpectraTable(), ISISinstrumentControl::readWiringTable(), ISISCRPT_STRUCT::setInstName(), ISISinstrumentControl::setUserParameters(), Cdae::snapshotCRPT(), ISISinstrumentControl::spawnCommand(), ISISinstrumentControl::updateDAEsettingsXML(), ISISinstrumentControl::updateHardwarePeriodsXML(), ISISinstrumentControl::updateMonitoringXML(), ISISinstrumentControl::updateSampleXML(), ISISinstrumentControl::updateTCBXML(), and ISISinstrumentControl::updateUserXML().
#define RUNSTATUS_ENDING 6 |
Definition at line 54 of file isiscrpt.h.
#define RUNSTATUS_PAUSED 3 |
Definition at line 51 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::changePeriod(), ISISinstrumentControl::changePeriodWhileRunning(), ISISinstrumentControl::loadDAEWithNeXusData(), ISISinstrumentControl::pauseRunMain(), and ISISinstrumentControl::resumeRun().
#define RUNSTATUS_PROCESSING 0 |
Definition at line 48 of file isiscrpt.h.
#define RUNSTATUS_RUNNING 2 |
Definition at line 50 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::endSEWait(), ISISinstrumentControl::ISISinstrumentControl(), ISISCRPT_STRUCT::isRunning(), and ISISinstrumentControl::resumeRun().
#define RUNSTATUS_SAVING 7 |
Definition at line 55 of file isiscrpt.h.
#define RUNSTATUS_SETUP 1 |
Definition at line 49 of file isiscrpt.h.
Referenced by ISISinstrumentControl::abortRun(), ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::changeNumberOfSoftwarePeriods(), ISISinstrumentControl::changePeriod(), ISISinstrumentControl::changePeriodWhileRunning(), ISISinstrumentControl::endRunMain(), ISISCRPT_STRUCT::ISISCRPT_STRUCT(), ISISinstrumentControl::pauseRunMain(), ISISinstrumentControl::updateDAEsettingsXML(), ISISinstrumentControl::updateFunc(), ISISinstrumentControl::updateHardwarePeriodsXML(), ISISinstrumentControl::updateMonitoringXML(), and ISISinstrumentControl::updateTCBXML().
#define RUNSTATUS_VETOING 5 |
Definition at line 53 of file isiscrpt.h.
#define RUNSTATUS_WAITING 4 |
Definition at line 52 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::isWaiting(), ISISinstrumentControl::resumeRun(), and ISISinstrumentControl::startSEWait().
#define SESTATUS_INRANGE 1 |
Definition at line 62 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::endSEWait(), ISISCRPT_STRUCT::ISISCRPT_STRUCT(), and ISISinstrumentControl::resumeRun().
#define SESTATUS_OUTOFRANGE 0 |
Definition at line 63 of file isiscrpt.h.
Referenced by ISISinstrumentControl::startSEWait().
#define TCBRANGE_CONST_T 1 |
dt=c
Definition at line 121 of file isiscrpt.h.
Referenced by ISISinstrumentControl::setLinearTimeChannelRange(), ISISinstrumentControl::tcbcalc(), and ISISRAW::updateFromCRPT().
#define TCBRANGE_FILE -1 |
read from file
Definition at line 119 of file isiscrpt.h.
Referenced by ISISinstrumentControl::beginRunMainEx(), ISISinstrumentControl::getTCBXML(), ISISinstrumentControl::tcbcalc(), tcbRangesPurelyShifted(), ISISRAW::updateFromCRPT(), and ISISinstrumentControl::updateTCBXML().
#define TCBRANGE_INC_T 2 |
dt/t=c
Definition at line 122 of file isiscrpt.h.
Referenced by ISISinstrumentControl::setLogTimeChannelRange(), ISISinstrumentControl::tcbcalc(), and ISISRAW::updateFromCRPT().
#define TCBRANGE_INC_T_2 3 |
#define TCBRANGE_SHIFTED 4 |
pure shift from an existing range
Definition at line 124 of file isiscrpt.h.
Referenced by ISISinstrumentControl::tcbcalc(), and tcbRangesPurelyShifted().
#define TCBRANGE_UNUSED 0 |
Definition at line 120 of file isiscrpt.h.
#define TR_EVENT_MOD 100 |
used to pull out the event mode specific bit from a time regimne definition
Definition at line 744 of file isiscrpt.h.
Referenced by ISISCRPT_STRUCT::crptTR(), ISISCRPT_STRUCT::daeTR(), ISISCRPT_STRUCT::isEventTR(), and ISISCRPT_STRUCT::makeEventTRValue().
enum PeriodSetupSource |
Enumerator | |
---|---|
PeriodSourceLabview | |
PeriodSourceFile |
Definition at line 100 of file isiscrpt.h.
enum VetoNames |
Enumerator | |
---|---|
SMPVeto | |
FIFOVeto | |
InternalVeto | |
Ext0Veto | |
Ext1Veto | |
Ext2Veto | |
Ext3Veto | |
FermiChopperVeto0 | |
FermiChopperVeto1 | |
FermiChopperVeto2 | |
FermiChopperVeto3 | |
MSModeVeto | |
TS2PulseVeto | |
ISIS50HzVeto |
Definition at line 93 of file isiscrpt.h.
int spacePadCopy | ( | char * | output, |
const char * | input, | ||
int | output_size | ||
) |
Definition at line 127 of file isiscrpt.cpp.
Referenced by ISISCRPT_STRUCT::ISISCRPT_STRUCT(), ISISRAW::updateFromCRPT(), and ISISinstrumentControl::writeJournal().
int spacePadCopyVa | ( | char * | output, |
int | output_size, | ||
const char * | format, | ||
... | |||
) |
Definition at line 142 of file isiscrpt.cpp.
Referenced by ISISinstrumentControl::writeJournal().
int spaceTrimCopy | ( | char * | output, |
int | output_size, | ||
const char * | input, | ||
int | input_size | ||
) |
Definition at line 161 of file isiscrpt.cpp.
Referenced by ISISRAW::sendToCRPT().
Definition at line 137 of file isiscrpt.h.
References TCBRANGE::end, RUNTABLE::fname, TCBRANGE::mode, TCBRANGE::npar, TCBRANGE::start, TCBRANGE::tcb_file, TCBRANGE_FILE, TCBRANGE_SHIFTED, and TCBRANGE::tcpar.
|
static |
Definition at line 7 of file isiscrpt.h.
Referenced by ISISCRPT_STRUCT::ISISCRPT_STRUCT(), and CRPTProxy::loadOrCreateCRPT().
|
static |
Definition at line 57 of file isiscrpt.h.
Referenced by RootHandler::handleRequest(), ISISCRPT_STRUCT::runStatusName(), and ISISinstrumentControl::setRunStatusImp().
|
static |
Definition at line 65 of file isiscrpt.h.
Referenced by RootHandler::handleRequest().
|
static |
these names will be used in the NeXus data file, so no spaces and lowercase only
Definition at line 106 of file isiscrpt.h.
Referenced by NeXusWriter::writeISISNeXus(), and NeXusWriter::writeMuonFile().