PRO eae_roi, run_id_str, det_names, roi_lows, roi_highs ; Procedure returns the array of det names and roi values ; for a given run id string. det_names = ['FPC_X2','FPC_5', $ 'FPC_HN', 'FPC_HS', 'FPC_HB', 'FPC_HT', $ 'SSD_5', 'SSD_X'] ; default large ROIs roi_lows = [ 50, 50, 50,50,50,50, 100, 100] roi_highs = [450, 450, 450,450,450,450, 2000, 2000] ; Set the ROIs based on run_id... run_id = run_id_str ; Phase C - Al measurements if run_id GE '106720' AND run_id LE '106720' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [155,155, 180,180,180,180, 370, 370] end if run_id GE '106730' AND run_id LE '106730' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [155,155, 180,180,180,180, 370, 370] end if run_id GE '106889' AND run_id LE '106923' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [155,155, 180,180,180,180, 370, 370] end if run_id GE '106944' AND run_id LE '106950' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [155,155, 180,180,180,180, 370, 370] end ; Phase D - Al ; HRMA D-IXF-EE-2.001,2,3,4 (by shell) if run_id GE '107314' AND run_id LE '107436' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [160, 160, 160,160,160,160, 370, 370] end if run_id GE '107483' AND run_id LE '107525' then begin roi_lows = [ 50, 50, 40,40,40,40, 170, 170] roi_highs = [160, 160, 130,130,130,130, 370, 370] end if run_id GE '107545' AND run_id LE '107545' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [160, 170, 160,160,160,160, 370, 370] end if run_id GE '107602' AND run_id LE '107615' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [160, 170, 160,160,160,160, 370, 370] end ; Phase D - FeK,Mnx2 ; Include escape peak and SSD tails if run_id GE '108140' AND run_id LE '108144' then begin roi_lows = [ 70, 70, 70,70,70,70, 800, 800] roi_highs = [260, 260, 260,260,260,260, 1400, 1400] end if run_id GE '108218' AND run_id LE '108221' then begin roi_lows = [ 70, 70, 70,70,70,70, 800, 800] roi_highs = [260, 260, 260,260,260,260, 1400, 1400] end ; Phase D - FeL,Fex2 if run_id GE '108157' AND run_id LE '108165' then begin roi_lows = [ 20, 20, 20,20,20,20, 50, 50] roi_highs = [110, 110, 110,110,110,110, 200, 200] end ; Phase D - C-Ka,C8H8x2 ; Include escape peak and SSD tails if run_id GE '108579' AND run_id LE '108582' then begin roi_lows = [ 10, 10, 10,10,10,10, 100, 100] roi_highs = [120, 110, 115,115,115,115, 450, 450] end ; Phase D - Mg-Ka,Mgx2 if run_id GE '108997' AND run_id LE '109050' then begin roi_lows = [ 50, 50, 45,45,45,45, 150, 150] roi_highs = [160, 160, 150,150,150,150, 350, 350] end ; Phase D - Mg-Ka if run_id GE '109051' AND run_id LE '109090' then begin ;;if run_id EQ '109052' then begin roi_lows = [ 50, 60, 60,60,60,60, 150, 150] roi_highs = [160, 150, 140,140,140,140, 350, 350] end ; Phase D - Ti-Ka,TiKx2 ; Include escape peak and SSD tails if run_id GE '109242' AND run_id LE '109247' then begin roi_lows = [ 30, 30, 30,30,30,30, 750, 750] roi_highs = [260, 260, 260,260,260,260, 1100, 1100] end ; Phase D - O-Ka,CrLx2 if run_id GE '109285' AND run_id LE '109289' then begin roi_lows = [ 20, 20, 20,20,20,20, 40, 40] roi_highs = [110, 100, 100,100,100,100, 150, 150] end if run_id GE '109290' AND run_id LE '109293' then begin roi_lows = [ 20, 20, 20,20,20,20, 40, 40] roi_highs = [110, 100, 100,100,100,100, 150, 150] end ; Phase D - Si-Ka,Zrx2 if run_id GE '109305' AND run_id LE '109309' then begin roi_lows = [ 60, 60, 60,60,60,60, 250, 250] roi_highs = [170, 170, 170,170,170,170, 500, 500] end ; Phase D - Cu-La if run_id GE '109446' AND run_id LE '109448' then begin roi_lows = [ 50, 50, 50,50,50,50, 100, 100] roi_highs = [120, 120, 120,120,120,120, 250, 250] end if run_id GE '109523' AND run_id LE '109523' then begin roi_lows = [ 50, 50, 50,50,50,50, 100, 100] roi_highs = [120, 120, 120,120,120,120, 250, 250] end if run_id GE '109579' AND run_id LE '109579' then begin roi_lows = [ 50, 50, 50,50,50,50, 100, 100] roi_highs = [120, 120, 120,120,120,120, 250, 250] end ; Phase D - Cu-Ka(,NiKx2) ; Include escape peak and SSD tails if run_id GE '109354' AND run_id LE '109354' then begin roi_lows = [ 80, 80, 80,80,80,80, 1100, 1100] roi_highs = [300, 300, 300,300,300,300, 1800, 1800] end if run_id GE '109458' AND run_id LE '109513' then begin roi_lows = [ 80, 80, 80,80,80,80, 1100, 1100] roi_highs = [300, 300, 260,260,260,260, 1800, 1800] end if run_id GE '109569' AND run_id LE '109569' then begin roi_lows = [ 80, 80, 80,80,80,80, 1100, 1100] roi_highs = [300, 300, 260,260,260,260, 1800, 1800] end ; Phase D Al-Ka repeat ; FPC_5 low gain if run_id GE '110009' AND run_id LE '110018' then begin roi_lows = [ 50, 9, 50,50,50,50, 170, 170] roi_highs = [160, 35, 160,160,160,160, 370, 370] end ; Phase D Sn-La if run_id GE '110080' AND run_id LE '110085' then begin roi_lows = [ 100, 9, 100,100,100,100, 600, 600] roi_highs = [210, 25, 210,210,210,210, 850, 850] end ; Phase D Zr-La if run_id GE '110127' AND run_id LE '110134' then begin roi_lows = [ 60, 70, 60,60,60,60, 270, 270] roi_highs = [170, 190, 170,170,170,170, 560, 560] end ; Phase D Mo-La if run_id GE '110148' AND run_id LE '110153' then begin roi_lows = [ 70, 80, 70,70,70,70, 300, 300] roi_highs = [180, 190, 180,180,180,180, 600, 600] end ; Phase D Ni-La,NiLx2 if run_id GE '110166' AND run_id LE '110172' then begin roi_lows = [ 40, 40, 40,40,40,40, 80, 80] roi_highs = [120, 140, 120,120,120,120, 230, 230] end ; Phase D Be-K if run_id GE '110186' AND run_id LE '110197' then begin roi_lows = [ 10, 10, 10,10,10,10, 50, 50] roi_highs = [80, 80, 80,80,80,80, 230, 230] end ; Phase D B-K if run_id GE '110211' AND run_id LE '110214' then begin roi_lows = [ 10, 10, 10,10,10,10, 50, 50] roi_highs = [100, 110, 100,100,100,100, 300, 300] end ; Phase E - C-Ka,C8H8x2 if run_id GE '110778' AND run_id LE '110784' then begin roi_lows = [ 10, 10, 10,10,10,10, 100, 100] roi_highs = [120, 120, 115,115,115,115, 450, 450] end ; Phase E - FeK,Mnx2 ; Include escape peak and SSD tails if run_id GE '110928' AND run_id LE '110929' then begin roi_lows = [ 70, 70, 70,70,70,70, 800, 800] roi_highs = [260, 260, 260,260,260,260, 1400, 1400] end ; Phase E - Ti-Ka,TiKx2 ; Include escape peak and SSD tails if run_id GE '111123' AND run_id LE '111126' then begin roi_lows = [ 30, 30, 30,30,30,30, 750, 750] roi_highs = [260, 260, 260,260,260,260, 1100, 1100] end if run_id GE '111140' AND run_id LE '111144' then begin roi_lows = [ 30, 30, 30,30,30,30, 750, 750] roi_highs = [260, 260, 260,260,260,260, 1100, 1100] end ; Phase E - Ti-La,TiLx2 if run_id GE '111159' AND run_id LE '111160' then begin roi_lows = [ 30, 20, 15,15,15,15, 140, 140] roi_highs = [110, 100, 95,95,95,95, 450, 450] end ; Phase E - Ag-La,Agx2 if run_id GE '111196' AND run_id LE '111212' then begin roi_lows = [ 90, 90, 90,90,90,90, 450, 450] roi_highs = [200, 200, 200,200,200,200, 750, 750] end ; Phase E - Cu-La,CuLx2 if run_id GE '111281' AND run_id LE '111293' then begin roi_lows = [ 40, 40, 40,40,40,40, 100, 100] roi_highs = [130, 130, 130,130,130,130, 250, 250] end ; Phase E - Cu-Ka,NiKx4 ; Include escape peak and SSD tails if run_id GE '111256' AND run_id LE '111271' then begin roi_lows = [ 110, 110, 110,110,110,110, 1100, 1100] roi_highs = [290, 290, 290,290,290,290, 1800, 1800] end ; Phase E - HIREF ~1.15 keV (1.12708,1.2398) if run_id GE '111419' AND run_id LE '111420' then begin roi_lows = [ 60, 60, 60,60,60,60, 150, 150] roi_highs = [140, 140, 140,140,140,140, 350, 350] end if run_id GE '111349' AND run_id LE '111350' then begin roi_lows = [ 60, 60, 60,60,60,60, 150, 150] roi_highs = [140, 140, 140,140,140,140, 350, 350] end if run_id GE '111355' AND run_id LE '111356' then begin roi_lows = [ 60, 60, 60,60,60,60, 150, 150] roi_highs = [140, 140, 140,140,140,140, 350, 350] end if run_id GE '111369' AND run_id LE '111370' then begin roi_lows = [ 60, 60, 60,60,60,60, 150, 150] roi_highs = [140, 140, 140,140,140,140, 350, 350] end ; Phase E - HIREF 1.37756 keV if run_id EQ '111368' OR run_id EQ '111348' OR $ run_id EQ '111354' then begin roi_lows = [ 60, 60, 60,60,60,60, 150, 150] roi_highs = [190, 190, 190,190,190,190, 350, 350] end ; Phase E - HIREF ~0.8 keV (0.82653, 0.88557) if run_id GE '111418' AND run_id LE '111418' then begin roi_lows = [ 50, 50, 40,40,40,40, 100, 100] roi_highs = [100, 100, 100,100,100,100, 230, 230] end if run_id GE '111351' AND run_id LE '111352' then begin roi_lows = [ 50, 50, 40,40,40,40, 100, 100] roi_highs = [100, 100, 100,100,100,100, 230, 230] end if run_id GE '111357' AND run_id LE '111358' then begin roi_lows = [ 50, 50, 40,40,40,40, 100, 100] roi_highs = [100, 100, 100,100,100,100, 230, 230] end if run_id GE '111373' AND run_id LE '111374' then begin roi_lows = [ 50, 50, 40,40,40,40, 100, 100] roi_highs = [100, 100, 100,100,100,100, 230, 230] end ; Phase E - HIREF ~0.2 keV if run_id GE '111387' AND run_id LE '111401' then begin roi_lows = [ 15, 20, 25,25,25,25, 50, 50] roi_highs = [180, 180, 180,180,180,180, 230, 230] end ; Phase E - Al-Ka,Alx2 if run_id GE '111505' AND run_id LE '111558' then begin roi_lows = [ 50, 50, 50,50,50,50, 170, 170] roi_highs = [160, 160, 160,160,160,160, 370, 370] end RETURN END