state_values_h

/*
**	Copyright 2001, Universities Research Association.  All rights reserved.
*/
/******************************************************************************/
/* state_values.h
**
**	This header file contains named constants for state values.
**
*/
/******************************************************************************/

#ifndef STATE_VALUES_DEFINED			/* do this only once */
#define	STATE_VALUES_DEFINED

/* V:VOID - null virtual machine */

#define	V_VOID				93690

/* V:ALIVE - state alive count */

#define	V_ALIVE				134679

/* V:PING - ping state */

#define	V_PING				122561

/* V:TSHOOT - Tevatron transfer state */

#define	V_TSHOOT			154948

#define	STATE_TSHOOT_NO_PBARS		1	/* don't want pbars */
#define	STATE_TSHOOT_NOT_READY		2	/* not ready for pbars */
#define	STATE_TSHOOT_READY		3	/* ready for pbars */
#define	STATE_TSHOOT_WAITING		4	/* waiting for transfer */
#define	STATE_TSHOOT_READY_FOR_RR	5	/* ready for pbars from the Recycler */

/* V:PSHOOT - Pbar transfer state */

#define	V_PSHOOT			154949

#define	STATE_PSHOOT_NOT_READY		1	/* not ready for transfer */
#define	STATE_PSHOOT_READY		2	/* ready for transfer */
#define	STATE_PSHOOT_UNSTACKING		3	/* unstacking pbars */
#define	STATE_PSHOOT_MI_TUNEUP_READY	4	/* ready for Main Injector tuneup */
#define	STATE_PSHOOT_SHOT_SETUP_COMPLETE	5	/* pbar shot setup complete */
#define	STATE_PSHOOT_UNSTACKING_SOON	6	/* unstacking imminent */
#define	STATE_PSHOOT_BL_TUNEUP_COMPLETE	7	/* pbar beamline tuneup complete */
#define	STATE_PSHOOT_UNSTACK_FOR_RR	8	/* unstacking pbars for the Recycler */

/* V:RSHOOT - Recycler transfer state */

#define	V_RSHOOT			159879

#define	STATE_RSHOOT_MI_TUNEUP_READY	1	/* ready for Main Injector tune up */
#define	STATE_RSHOOT_STACKING_PBARS	2	/* stacking pbars */
#define	STATE_RSHOOT_UNSTACKING_PBARS	3	/* unstacking pbars */
#define	STATE_RSHOOT_READY		4	/* ready for transfers */
#define	STATE_RSHOOT_NOT_READY		5	/* not ready for transfers */
#define	STATE_RSHOOT_STACKING_PROTONS	6	/* stacking protons */
#define	STATE_RSHOOT_UNSTACKING_PROTONS	7	/* unstacking protons */
#define	STATE_RSHOOT_PREPARE_TO_UNSTASH	8	/* preparing to unstash */

/* V:NOOP - SDA no operation */

#define	V_NOOP				168972

#define	STATE_NOOP_PROT_INJ_NO_QUALIFY	1	/* proton injection did not qualify */
#define	STATE_NOOP_PBAR_INJ_NO_QUALIFY	2	/* pbar injection did not qualify */

/* V:CLDRST - Collider state */

#define	V_CLDRST			146764

#define	STATE_CLDRST_PROTON_INJ_PORCH	1
#define	STATE_CLDRST_PROTON_INJ_TUNEUP	2
#define	STATE_CLDRST_REV_INJECT		3
#define	STATE_CLDRST_INJ_PROTONS	4
#define	STATE_CLDRST_PBAR_INJ_PORCH	5
#define	STATE_CLDRST_INJ_PBARS		6
#define	STATE_CLDRST_COGGING		7
#define	STATE_CLDRST_BEFORE_RAMP	8
#define	STATE_CLDRST_ACCELERATION	9
#define	STATE_CLDRST_FLATTOP		10
#define	STATE_CLDRST_SQUEEZE		11
#define	STATE_CLDRST_INIT_COLLISIONS	12
#define	STATE_CLDRST_REMOVE_HALO	13
#define	STATE_CLDRST_HEP		14
#define	STATE_CLDRST_PAUSE_HEP		15
#define	STATE_CLDRST_PROTON_REMOVAL	16
#define	STATE_CLDRST_UNSQUEEZE		17
#define	STATE_CLDRST_FLATTOP2		18
#define	STATE_CLDRST_DECELERATION	19
#define	STATE_CLDRST_EXT_PORCH		20
#define	STATE_CLDRST_EXT_PBARS		21
#define	STATE_CLDRST_RESET		22
#define	STATE_CLDRST_RECOVERY		23
#define	STATE_CLDRST_RAMPING		24
#define	STATE_CLDRST_LOW_BETA		25

/* V:TEVMOD - Tevatron mode */

#define	V_TEVMOD			138929

#define	STATE_TEVMOD_COLLIDING_BEAMS	1
#define	STATE_TEVMOD_PROTON_ONLY	2
#define	STATE_TEVMOD_DRY_SQUEEZE	3
#define	STATE_TEVMOD_RAMPING	4
#define	STATE_TEVMOD_RECOVERY	5
#define	STATE_TEVMOD_OFF	6

/* V:SDAENB - SDA Collider enable flag */

#define	V_SDAENB			147190

#define	STATE_SDAENB_ENABLE_SDA	1
#define	STATE_SDAENB_DISABLE_SDA	2
#define	STATE_SDAENB_REINITIALIZE_SDA	3

/* V:SDAEND - SDA shutdown case n */

#define	V_SDAEND			140255

/* V:BOOINT - Booster intensity update */

#define	V_BOOINT			167865

#define	STATE_BOOINT_KICKER_TIMING_UPDATE	1

/* V:SLDATA - shot log data entry */

#define	V_SLDATA			181051

#define	STATE_SLDATA_CHAPTER_OPEN	1
#define	STATE_SLDATA_EMIT_TABLE_READY	2

/* V:ACNET - ACNET node information changed */

#define	V_ACNET				167432

#define	STATE_ACNET_INFO_CHANGED	1
#define	STATE_ACNET_ADDRESSES_CHANGED	2
#define	STATE_ACNET_TEST_INFO_CHANGED	3
#define	STATE_ACNET_TEST_ADDRESSES_CHANGED	4
#define	STATE_ACNET_CONS_CHANGED	5
#define	STATE_ACNET_TET_CONS_CHANGED	6
#define	STATE_ACNET_FORCE_IP_LOOKUP	7
#define	STATE_ACNET_TEST_FORCE_IP_LOOKUP	8

/* V:PBSRC - Source of pbars for TeV */

#define	V_PBSRC				182386

#define	STATE_PBSRC_ACCUM_PBARS		1
#define	STATE_PBSRC_RECYCLER_PBARS	2

/* V:NPBSRC - Next source of pbars for TeV */

#define	V_NPBSRC			186925

#define	STATE_NPBSRC_ACCUM_PBARS	1
#define	STATE_NPBSRC_RECYCLER_PBARS	2

/* V:SQMD12 - Recycler mode Sequencer state */

#define	V_SQMD12			172426

/* V:SQMD17 - Pbar Annex mode Sequencer state */

#define	V_SQMD17			172427

/* V:DAEUP - Node is up */

#define	V_DAEUP				140214

/* V:DAEDN - Node is down */

#define	V_DAEDN				140215

/* V:FEUP - Node is up */

#define	V_FEUP				140218

/* V:FEDN - Node is down */

#define	V_FEDN				140219

/* V:MSBOOT - MISCBOOT operation state */

#define	V_MSBOOT			189926

#define	STATE_MSBOOT_START		1
#define	STATE_MSBOOT_END		2

/* V:MBNODE - MISCBOOT download node */

#define	V_MBNODE			189927

/* V:TEVBPM - Tevatron BPM state */

#define	V_TEVBPM			192589

#define	STATE_TEVBPM_INJECTION_MODE	1
#define	STATE_TEVBPM_CLOSED_ORBIT_MODE	2


/* V:TLGMI - TLG Main Injector state */

#define	V_TLGMI				125606

#define	STATE_TLGMI_SAFE_DEFAULT	1
#define	STATE_TLGMI_STUDY_MI_TO_RR_FAST_STACKING	2
#define	STATE_TLGMI_1_BATCH_120_PBAR_PROD	3
#define	STATE_TLGMI_150_PROTONS_TO_TEVATRON	4
#define	STATE_TLGMI_PBAR_STACKING_NUMI_MULTIBATCH	5
#define	STATE_TLGMI_2_5_MHZ_PROTONS_TO_150	6
#define	STATE_TLGMI_PBAR_STACKING_NUMI_TARGET	7
#define	STATE_TLGMI_11_BATCH_SLIP_STACKING_NUMI_ONLY	8
#define	STATE_TLGMI_MI_RF_UPGRADE	9
#define	STATE_TLGMI_2_5_MHZ_RR_PBARS_TO_150	10
#define	STATE_TLGMI_PBARS_RR_TO_MI_TO_TEV	11
#define	STATE_TLGMI_REV_INJ_TEV_PROTON_TUNEUP	12
#define	STATE_TLGMI_2_5_MHZ_ACCUM_PBARS_TO_150	13
#define	STATE_TLGMI_11_BATCH_SLIP_STACKING_MIXED_MODE	14
#define	STATE_TLGMI_8_GEV_PROTONS_TO_ABORT	15
#define	STATE_TLGMI_PROTONS_BSTR_TO_MI_TO_ACCUM	16
#define	STATE_TLGMI_120_GEV_TO_SY_PBAR_STACKING	17
#define	STATE_TLGMI_SLIP_STACKING_5_BATCH_TO_NUMI	18
#define	STATE_TLGMI_PBARS_RR_TO_MI_TO_RR	19
#define	STATE_TLGMI_ACCUM_PBARS_TO_MI_TO_RR	20
#define	STATE_TLGMI_NUMI_6_BATCHES		21
#define	STATE_TLGMI_BARRIER_STACKING_IN_MI	22
#define	STATE_TLGMI_ACCUM_PBARS_TO_TEV_CBHEP	23
#define	STATE_TLGMI_120_GEV_TO_SY	24
#define	STATE_TLGMI_2_5_MHZ_BSTR_TO_MI_TO_RR	25
#define	STATE_TLGMI_120_GEV_SLIP_STACKING_STUDY	26
#define	STATE_TLGMI_MI_STUDIES		27
#define	STATE_TLGMI_SLIP_STACK_BSTR_PROTONS	28
#define	STATE_TLGMI_PROTONS_BSTR_TO_RR_1_BATCH	29
#define	STATE_TLGMI_2A_TUNING_WITH_PROTONS	30
#define	STATE_TLGMI_SLIP_STACKING_STUDY	31

#endif