/* * Measurement structures for each measurement system */ /* BUNCH TRAINS BCT - Mike Lamont 13/2/95 */ typedef struct { float total_current; /* single beam current 0.5s average */ float total_current2; /* single beam current 64s average */ float bunch_train_current[NOBUNCHTRAINS]; /* current of bunch train 1 */ float bunch_train_lifetime[NOBUNCHTRAINS]; /* lifetime of bunch train 1 */ float lifetime_9; /* single beam lifetime variable interval integration */ float lifetime_10; /* single beam lifetime 128s interval integration */ float bunchlet_lifetime[NOBUNCHTRAINS]; /* average lifetime of bunch A */ float bunchlet_current[NOBUNCHTRAINS][NOFAMILIES]; /* [1-4][A-D] bunch curents */ } BCTBEAM; typedef struct { BCTBEAM positron; BCTBEAM electron; float dc; unsigned long timestamp; } BCTMEASUREMENT; /* * Power Convertor Measurement structures - Mike */ typedef struct { char ActHWName[20]; char TimeStamp[20]; short Status; double Value; double Deviation; /* filled for pc_reading only */ char Err_Msg[80]; } PCDATAENTRY; struct PCDATA { int No; PCDATAENTRY *PCEntries; }; typedef struct { char ActHWName[20]; char TimeStamp[20]; short Status; char State[80]; char Err_Msg[80]; } PCSTATE; struct PCSTATES { int No; PCSTATE *PCStates; }; /* * Beuv Setting Measurement structures - Eugenia */ #define BEUV_TOTAL (int)4 typedef struct { int telescope_id; char timestamp[20]; long timesec; char measure_mode[10]; char camera_mode[10]; short density_filter; short chromatic_filter; short slit_size; short slit_center; short lep_turns; short bunch_sequence; } BEUV_SET_t; typedef struct { int No; BEUV_SET_t *entries; } BEUV_ALLSET_t; /* * Beuv Data Measurement structures */ typedef struct { int telescope_id; char timestamp[20]; long timesec; short mean_h; short mean_v; short dev_h; short dev_v; } BEUV_MEAS_t; typedef struct { int No; BEUV_MEAS_t *entries; } BEUV_ALLMEAS_t; /* streak camera - Mike Lamont Nov 93 */ typedef struct { float iAvgNegX; /* Average of horizontal bunch size (e-) */ float iDevNegX; /* Std.dev. of horizontal bunch size (e-) */ float iAvgPosX; /* Average of horizontal bunch size (e+) */ float iDevPosX; /* Std.dev. of horizontal bunch size (e+) */ float iAvgNegY; /* Average of vertical bunch size (e-) */ float iDevNegY; /* Std.dev. of vertical bunch size (e-) */ float iAvgPosY; /* Average of vertical bunch size (e+) */ float iDevPosY; /* Std.dev. of vertical bunch size (e+) */ float iAvgNegS; /* Average of bunch length (e-) */ float iDevNegS; /* Std.dev. of bunch length (e-) */ float iAvgPosS; /* Average of bunch length (e+) */ float iDevPosS; /* Std.dev. of bunch length (e+) */ float jAvgNegX; /* Position of horizontal bunch (e-) */ float jDevNegX; /* Std.dev. of horizontal bunch position (e-) */ float jAvgPosX; /* Position of horizontal bunch (e+) */ float jDevPosX; /* Std.dev. of horizontal bunch position (e+) */ float jAvgNegY; /* Position of vertical bunch (e-) */ float jDevNegY; /* Std.dev. of vertical bunch position(e-) */ float jAvgPosY; /* Position of vertical bunch (e+) */ float jDevPosY; /* Std.dev. of vertical bunch position(e+) */ float jAvgNegS; /* Longitudinal position of bunch (e-) */ float jDevNegS; /* Std.dev. of longitudinal bunch position (e-) */ float jAvgPosS; /* Longitudinal position of bunch length (e+) */ float jDevPosS; /* Std.dev. of longitudinal bunch position (e+) */ } STREAK_DATA; /* RF - Mike 7/4/94 */ typedef struct { char UnitName[20]; char Timestamp[20]; long UnixTimestamp; char htr1[20]; char htr2[20]; char mcb[20]; char ps[20]; /* hereafter we have a split for scs */ char CavityType; /* C - Copper S - SuperConducting */ union { struct { char vcl[20]; char dcl[20]; float k1for; float k2for; float kref; float mv; float dsum; float cavf; float cavr; } Copper; struct { char vcl1[20]; char vcl2[20]; float k1for; float k1ref; float k2for; float k2ref; float mv1; float dum1; float mv2; float dsum2; float cav1f; float cav1r; float cav2f; float cav2r; } Super; }u; } RFUNITDATA; typedef struct { char Timestamp[20]; long UnixTimestamp; float RFFrequency; float QsPositron; float QsElectron; } RFMEASDATA;