62 #define N_SCALER_MODULE 32
64 #define N_TDC_CHANNELS 64
66 #define DATA_N_HITS 64
67 #define NEW_EVENT_MASK (0x7f<<24)
68 #define EXTON1_FLAG (1<<21)
69 #define EXTOFF1_FLAG (1<<20)
70 #define TDC_BIT_RANGE 524288
71 #define N_DECAY_HISTS 8
72 #define N_OFFSET_PPC_HISTOGRAMS 20
73 #define N_OFFSET_ONOFF_HISTOGRAMS 40
75 #define EVENT_0_TYPE (1<<0)
76 #define EVENT_1_TYPE (1<<1)
77 #define EVENT_2_TYPE (1<<2)
78 // -- scaling for rates / mA of proton current
79 #define IpSCALE 100000
82 #define SIS3820_USER_INPUT_2 0x20000000
83 #define SIS3820_USER_INPUT_3 0x40000000
84 #define SIS3820_CH_NUMBER 0x1F000000
85 #define MASK24 0x00FFFFFF
112 #define VME_STATS_STR(_name) const char *_name[] = {\
114 "RunTime = DOUBLE : 0",\
115 "LastTDCTime = INT32 : 0",\
116 "SlowMuonEvents = DOUBLE : 0",\
117 "FastMuonEvents = DOUBLE : 0",\
118 "BeamCounter Clean = DOUBLE : 0",\
119 "MCP1 Clean = DOUBLE : 0",\
120 "MCP2 Clean = DOUBLE : 0",\
121 "TD clean = DOUBLE : 0",\
122 "MCP1 Good = DOUBLE : 0",\
123 "MCP2 Good = DOUBLE : 0",\
124 "TD Good = DOUBLE : 0",\
125 "channelCounts = DOUBLE[64] :",\
190 "Frontend_Loop_Counts = DOUBLE : 0",\
191 "Frontend_Loop_TDC = DOUBLE : 0",\
192 "Poll_Counts = DOUBLE : 0",\
193 "ReadCounts = DOUBLE : 0",\
194 "TDCErrorCounts = DOUBLE : 0",\
298 char sample_name[128];
310 } energy_loss_parameter;
321 } lem_setup_parameter;
380 char recipients[256];
381 } alarm_notification;
384 char main_proposer[80];
389 char ahpos_date[132];
391 } controlroom_scaler_info;
397 #define INFO_STR(_name) const char *_name[] = {\
399 "Moderator = STRING : [80] 14nm N2, 150nm Ar, 12nm N2",\
400 "ModeratorDATE = STRING : [80] 01-Nov-2001, 20:00",\
401 "LEM_Setup = STRING : [80] MCP2, WEW",\
402 "Sample Name = STRING : [128] none",\
403 "Sample Cryo = STRING : [32] Konti-2",\
404 "Scaler Update time = STRING : [32] Thu Mar 7 16:00:00 2002",\
405 "Energy Loss (C-foil) = FLOAT : 0.3",\
406 "Implantation Energy (keV) = FLOAT : 0.1",\
407 "Magnetic Field (G) = FLOAT : 0.01",\
408 "Beamline Settings = STRING : [132] /mnt/home/nemu/beam/new_mue4/mue4_settings/WSXon_null_F500.set",\
409 "[EnergyLoss_Parameter]",\
410 "p0 = FLOAT : 1.438",\
411 "p1 = FLOAT : -0.07252",\
412 "p2 = FLOAT : 0.00493",\
413 "p3 = FLOAT : -0.0001672",\
415 "[Magnet_Parameter]",\
419 "Bpar = FLOAT[2] :",\
422 "Field Setpoint (G)",\
424 "[LEM_Setup_Parameter]",\
426 "Sample = BOOL : n",\
440 "t0Hist = INT32[8] :",\
449 "Leff RAon (mm) = FLOAT : 1300",\
450 "Leff RAoff (mm) = FLOAT : 1222",\
452 "[SpinRot_Parameter]",\
453 "a0 = FLOAT : 41.28",\
454 "a1 = FLOAT : 1.909",\
455 "a2 = FLOAT : 4.037",\
456 "a3 = FLOAT : 0.155",\
457 "a4 = FLOAT : -0.302",\
458 "RotationAngle = FLOAT : 10",\
459 "Enable spin rotator calibration = BOOL : y",\
462 "BcL1 = FLOAT : -43",\
463 "BcL2 = FLOAT : -20",\
464 "BcL3 = FLOAT : -30",\
465 "BcL4 = FLOAT : -36",\
466 "BcR1 = FLOAT : -33",\
467 "BcR2 = FLOAT : -40",\
468 "BcR3 = FLOAT : -42",\
469 "BcR4 = FLOAT : -42",\
470 "MCP1 = FLOAT : -5",\
471 "MCP2F = FLOAT : -76",\
472 "MCP2R = FLOAT : -76",\
473 "MCP2Anode = FLOAT : -35",\
475 "PosMCP1I = FLOAT : -20",\
476 "PosMCP1O = FLOAT : -20",\
477 "PosLDI = FLOAT : -20",\
478 "PosLDO = FLOAT : -20",\
479 "PosLUI = FLOAT : -20",\
480 "PosLUO = FLOAT : -20",\
481 "PosTDI = FLOAT : -20",\
482 "PosTDO = FLOAT : -20",\
483 "PosTUI = FLOAT : -20",\
484 "PosTUO = FLOAT : -20",\
485 "PosRDI = FLOAT : -20",\
486 "PosRDO = FLOAT : -20",\
487 "PosRUI = FLOAT : -20",\
488 "PosRUO = FLOAT : -20",\
489 "PosBDI = FLOAT : -20",\
490 "PosBDO = FLOAT : -20",\
491 "PosBUI = FLOAT : -20",\
492 "PosBUO = FLOAT : -20",\
495 "Angle horizontal = FLOAT : 295.0",\
496 "Angle vertical = FLOAT : 17.50",\
499 "Angle = FLOAT : 85.0",\
500 "Height = FLOAT : 29.0",\
502 "[Alarm Notification]",\
503 "Enabled = BOOL : n",\
504 "Recipients = STRING : [256] thomas.prokscha@psi.ch",\
506 "[File_Header_Info]",\
507 "Proposal Number = INT32 : 20200001",\
508 "Main Proposer = STRING : [80] LEM Group",\
509 "P-Group = STRING : [80] PXXXXX",\
511 "[Controlroom_Scaler_Info]",\
512 "Nominal Value = INT32 : 116000",\
513 "AHPOS Date = STRING : [132] (AHPOS 21-Sep-18, 16:00, Strahl auf SINQ)",\
514 "Target = STRING : [132] (4cm target E)",\
517 "CPU1 Temp = FLOAT : 0",\
518 "CPU2 Temp = FLOAT : 0",\
519 "System Temp = FLOAT : 0",\
520 "Peripherial Temp = FLOAT : 0",\
521 "PCH Temp = FLOAT : 0",\
522 "P1-DIMMA1 Temp = FLOAT : 0",\
523 "P1-DIMMB1 Temp = FLOAT : 0",\
524 "P2-DIMME1 Temp = FLOAT : 0",\
525 "P2-DIMMF1 Temp = FLOAT : 0",\
526 "FAN1 RPM = INT32 : 0",\
527 "FAN2 RPM = INT32 : 0",\
528 "FAN3 RPM = INT32 : 0",\
529 "FAN5 RPM = INT32 : 0",\
530 "FAN6 RPM = INT32 : 0",\
532 "CPU1 Vcore = FLOAT : 0",\
533 "CPU2 Vcore = FLOAT : 0",\
534 "VDIMM AB = FLOAT : 0",\
535 "VDIMM CD = FLOAT : 0",\
536 "VDIMM EF = FLOAT : 0",\
537 "VDIMM GH = FLOAT : 0",\
538 "+1.1V = FLOAT : 0",\
539 "+1.5V = FLOAT : 0",\
541 "+3.3VSB = FLOAT : 0",\
543 "+5VSB = FLOAT : 0",\
546 "Chassis Intru = INT32 : 0",\
547 "PS1 Status = INT32 : 0",\
548 "PS2 Status = INT32 : 0",\
551 "CPU1 Temp = FLOAT : 0",\
552 "CPU2 Temp = FLOAT : 0",\
553 "PCH Temp = FLOAT : 0",\
554 "System Temp = FLOAT : 0",\
555 "Peripherial Temp = FLOAT : 0",\
556 "VRMCpu1 Temp = FLOAT :0",\
557 "VRMCpu2 Temp = FLOAT :0",\
558 "VRMP1ABC Temp = FLOAT :0",\
559 "VRMP1DEF Temp = FLOAT :0",\
560 "VRMP2ABC Temp = FLOAT :0",\
561 "VRMP2DEF Temp = FLOAT :0",\
562 "P1-DIMMA1 Temp = FLOAT : 0",\
563 "P1-DIMMD1 Temp = FLOAT : 0",\
564 "P2-DIMMA1 Temp = FLOAT : 0",\
565 "P2-DIMMD1 Temp = FLOAT : 0",\
573 "3.3VCC = FLOAT :0",\
575 "VCPU1 = FLOAT : 0",\
576 "VCPU2 = FLOAT : 0",\
577 "VDIMMP1ABC = FLOAT : 0",\
578 "VDIMMP1DEF = FLOAT : 0",\
579 "VDIMMP2ABC = FLOAT : 0",\
580 "VDIMMP2DEF = FLOAT : 0",\
582 "3.3VSB = FLOAT : 0",\
583 "1.8V PCH = FLOAT : 0",\
584 "PVNN PCH = FLOAT : 0",\
585 "1.05V PCH = FLOAT : 0",\
586 "Chassis Intru = INT32 : 0",\
587 "PS1 Status = INT32 : 0",\
588 "PS2 Status = INT32 : 0",\
589 "AOC_SAS TEMP = FLOAT : 0",\
590 "HDD TEMP = FLOAT : 0",\
591 "HSS Status = INT32 : 0",\
594 "tektronix_timestamp = DOUBLE : 0",\
595 "tektronix_set_power = DOUBLE : 0",\
596 "tektronix_set_frequency = DOUBLE : 0",\
597 "ana_pico_timestamp = DOUBLE : 0",\
598 "ana_pico_set_power = DOUBLE : 0",\
599 "ana_pico_set_frequency = DOUBLE : 0",\
600 "keysight_u2002a_timestamp = DOUBLE : 0",\
601 "keysight_u2002a_measured_power = DOUBLE : 0",\
602 "keysight_u8481a_timestamp = DOUBLE : 0",\
603 "keysight_u8481a_measured_power = DOUBLE : 0",\
604 "pressure_1 = DOUBLE : 0",\
605 "pressure_2 = DOUBLE : 0",\
606 "pressure_3 = DOUBLE : 0",\
610 #define HV_VACCLEANER_DEFINED
621 #define HV_VACCLEANER_STR(_name) const char *_name[] = {\
624 "DeltaTime(msec) = DWORD : 2000",\
625 "Period(msec) = DWORD : 10000",\
626 "channel-1 = INT : 11",\
627 "channel-2 = INT : 12",\
628 "DeltaU-1(kV) = FLOAT : 1",\
629 "DeltaU-2(kV) = FLOAT : -3",\
double frontend_loop_counts
double keysight_u8481a_timestamp
float implantation_energy
double tektronix_set_power
double tektronix_timestamp
double keysight_u2002a_timestamp
double ana_pico_timestamp
char sample_cryo[NAME_LENGTH]
sample cryo name
BEAMLINE_SETTINGS beamline_settings
double keysight_u2002a_measured_power
unsigned long long U_LONG
GNU C-Compiler 64bit integer.
LEM00_IPMI_LOG lem00_ipmi_log
double tektronix_set_frequency
double frontend_loop_readtdc
MICROWAVE_LOG microwave_log
#define N_TDC_CHANNELS
number of TDC channels
LEM03_IPMI_LOG lem03_ipmi_log
#define N_DECAY_HISTS
number of LE-uSR npp decay histograms
double ana_pico_set_frequency
double ana_pico_set_power
double keysight_u8481a_measured_power