 May 2017 

 This directory contains the files necessary to extract the nxb for the HXI, SXI and SXS.
 These files are used by the tasks hxinxbgen, sxinxbgen and sxsnxbgen.


=====
GEN
=====
ah_gen_nxbehk_20140101v002.fits  
** This file is a merged of the ehk files for all the observations  
Applicable to all instruments and necessary to run the tasks hxinxbgen, sxinxbgen and sxsnxbgen 
These files were generated with the processing version 03.01.005.005

=======
HXI 
=======
ah_hx1_nxbevtuf_20140101v001.evt
ah_hx1_nxbpseuf_20140101v001.evt
ah_hx2_nxbevtuf_20140101v001.evt
ah_hx2_nxbpseuf_20140101v001.evt
** These files are the merged nxb files derived from the pipeline processing no screening is applied
   NOTE these files are large and if the selection is identical to the standard science event selection 
   is better to start with the *cl* files.


ah_hx1_nxbevtcl_20140101v001.evt 
ah_hx1_nxbpsecl_20140101v001.evt
ah_hx2_nxbevtcl_20140101v001.evt
ah_hx2_nxbpsecl_20140101v001.evt
** These files are the nxb events cleaned as for the science data but for the saa gti. They are generated starting
   from the *nxbevtuf* and *nxbpseuf* and applying the following screeening :
--
EVENTS:
1) Calculate gti using the ah_hxi_nxbmkf_20140101v001.fits and merged with the event GTI 
   HXI1: HKHX1AA001==1&&HKHX1AA002==2&&HKHX1AA003>=200.0&&HKHX1AA004>=200.0&&HKHX1AA005>=200.0&&HKHX1AA006>=200.0
   HXI2: HKHX2AA001==1&&HKHX2AA002==2&&HKHX2AA003>=200.0&&HKHX2AA004>=200.0&&HKHX2AA005>=200.0&&HKHX2AA006>=200.0

2) Cleaned events both for HXI1 and HXI2 using the expression :
          FLAG_HITPAT==b0&&FLAG_FASTBGO==b0&&FLAG_SEU==b0&&FLAG_LCHK==b0&&FLAG_TRIGPAT[6]==b0&&FLAG_TRIGPAT[7]==b0&&
          FLAG_TRIGPAT[8]==b0&&EVTCAT<=5&&PROC_STATUS[1]==b0&&PROC_STATUS[2]==b0&&[(LAYER==0&&(PI<300&&PI>=0))|| 
          (LAYER==1&&(PI<2048&&PI>=120))||(LAYER==2&&(PI<2048&&PI>=120))||(LAYER==3&&(PI<2048&&PI>=120))  
         ||(LAYER==4&&(PI<2048&&PI>=300))]  

PSEUDO:
1) Calculate gti using the ah_hxi_nxbmkf_20140101v001.fits and merged with the psuedo event GTI
   HXI1: HKHX1AA001==1&&HKHX1AA002==2
   HXI2: HKHX2AA001==1&&HKHX2AA002==2

2) Cleaned psuedo events both for HXI1 and HXI2 using the expression :
   FLAG_HITPAT==b0&&FLAG_FASTBGO==b0&&FLAG_SEU==b0&&FLAG_LCHK==b0&&FLAG_TRIGPAT[7]==b1&&PROC_STATUS[1]==b0
   &&PROC_STATUS[2]==b0
--


ah_hx1_nxbsaa_20140101v001.gti
ah_hx2_nxbsaa_20140101v001.gti
**These files contain the SAA time intervals to apply to the  ah_hx*_nxbevtcl_* event files and derived with 
  the following expressions :
      HXI1:  SAA2_HXI1==0&&T_SAA_HXI1>251&&TN_SAA_HXI1>251
      HXI2:  SAA2_HXI2==0&&T_SAA_HXI2>251&&TN_SAA_HXI2>251

ah_hxi_nxbmkf_20140101v001.fits
** This file is a merged of the specific HK columns associated to the HXI1 and HXI2 listed in the mkf file.
This file is used to generate gti intervals based on the mkf to screen the event data.

These files were generated with the processing version 03.01.005.005

=============
SXI
=============

ah_sxi_nxb100uf_20140101v002.evt
ah_sxi_nxb40uf_20140101v002.evt
** These files are the merged nxb files derived from the pipeline processing where the GTI are merged 
   with the GTI obtained using the following expression ah_gen_nxbehk_20140101v002.fits

      SAA_SXI==0 && T_SAA_SXI>277 && ELV<-5 && DYE_ELV>100 

   The file, ah_sxi_nxb100uf_20140101v001.evt,  with the threshold at 40 is for the RXJ observations.
   All other onservations should used the file, ah_sxi_nxb100uf_20140101v001.evt, with the threshold at 100
   NOTE These files are quite large and if the selection is identical to the standard science event selection
   is better to start with the *cl* files.
   These files were generated with the processing version 03.01.006.007

ah_sxi_nxb100cl_20140101v002.evt
ah_sxi_nxb40cl_20140101v002.evt
** These files are the nxb events where the events are cleaned as for the science data. They are generated starting
   from the *nxb100uf* and *nxb40uf* and applying the following screeening :

  (GRADE==0||(GRADE>=2&&GRADE<=4)||GRADE==6)&&
  STATUS==bx00000000000xxx00000xxxx0000x0xxxxxx0xxxxxxxxxxx&&PROC_STATUS[1]==b0&&PROC_STATUS[2]==b0 
  These files were generated with the processing version 03.01.006.007

ah_sxi_nxbhk_20140101v001.fits
** This file is a merged of specific SXI columns of the HK_SXI_USR_USER_HK1 HK extension. This file is used by 
  sxinxbgen to re-run, if necessary, sxipi and recalculate the VT correction
  These files were generated with the processing version 03.01.005.005

======
SXS
=======

ah_sxs_nxbafmar4_20140101v001.evt
ah_sxs_nxbbfmar4_20140101v001.evt
** These files are the merged nxb files derived from the pipeline processing. The files containa the energy columns
   for the standard processing (use column PI energy step per channel of 0.5 eV with 32768 channels) and 
   the extended energy (column PIE). The extended PIE is derived running 'sxsextend' with an energy step per 
   channel of 1eV and 32768 channels.  
   
   The file ah_sxs_nxbbfmar4_20140101v001.evt contains all the nxb observation before March 4 2016, where the PI/PIE
   columns are calculated with sxsperseus. 
   The file ah_sxs_nxbafmar4_20140101v001.evt contains all the nxb observation after March 4 2016.
   These files were generated with the processing version 03.01.005.005


======================
 List of merged files
======================
======
EHK
======
ah000002010.ehk.gz
ah000003010.ehk.gz
ah000004010.ehk.gz
ah000004021.ehk.gz
ah000004022.ehk.gz
ah100040010.ehk.gz
ah100040020.ehk.gz
ah000004023.ehk.gz
ah000004030.ehk.gz
ah000005010.ehk.gz
ah000005020.ehk.gz
ah000006010.ehk.gz
ah000006020.ehk.gz
ah000007010.ehk.gz
ah000007020.ehk.gz
ah000008010.ehk.gz
ah000008020.ehk.gz
ah000008030.ehk.gz
ah000008040.ehk.gz
ah000008050.ehk.gz
ah000008060.ehk.gz
ah100040030.ehk.gz
ah100040040.ehk.gz
ah100040050.ehk.gz
ah100040060.ehk.gz
ah100041010.ehk.gz
ah100041020.ehk.gz
ah100042010.ehk.gz
ah100042020.ehk.gz
ah100042030.ehk.gz
ah100042040.ehk.gz
ah100043010.ehk.gz
ah100043020.ehk.gz
ah100043030.ehk.gz
ah100043040.ehk.gz
ah100043050.ehk.gz
ah100043060.ehk.gz
ah100044010.ehk.gz
ah100050010.ehk.gz
ah100050020.ehk.gz
ah100050030.ehk.gz
ah100050040.ehk.gz

=============================
 HXI1  and HXI 2
=============================
*** File from the trend HXI archive * indicates that both HXI1 and HXI2 are present 
ah000007010hx1_a0nxbrec_cl.evt.gz ah000007010hx1_a0nxbrecpse_cl.evt.gz
ah000007020hx*_a0nxbrec_cl.evt.gz ah000007020hx*_a0nxbrecpse_cl.evt.gz
ah000008010hx*_a0nxbrec_cl.evt.gz ah000008010hx*_a0nxbrecpse_cl.evt.gz
ah000008020hx*_a0nxbrec_cl.evt.gz ah000008020hx*_a0nxbrecpse_cl.evt.gz 
ah000008050hx*_a0nxbrec_cl.evt.gz ah000008050hx*_a0nxbrecpse_cl.evt.gz
ah000008060hx*_a0nxbrec_cl.evt.gz ah000008060hx*_a0nxbrecpse_cl.evt.gz
ah100043010hx*_a0nxbrec_cl.evt.gz ah100043010hx*_a0nxbrecpse_cl.evt.gz
ah100043020hx*_a0nxbrec_cl.evt.gz ah100043020hx*_a0nxbrecpse_cl.evt.gz
ah100043030hx*_a0nxbrec_cl.evt.gz ah100043030hx*_a0nxbrecpse_cl.evt.gz
ah100043040hx*_a0nxbrec_cl.evt.gz ah100043040hx*_a0nxbrecpse_cl.evt.gz
ah100043050hx*_a0nxbrec_cl.evt.gz ah100043050hx*_a0nxbrecpse_cl.evt.gz
ah100043060hx*_a0nxbrec_cl.evt.gz ah100043060hx*_a0nxbrecpse_cl.evt.gz
ah100044010hx*_a1nxbrec_cl.evt.gz ah100044010hx*_a1nxbrecpse_cl.evt.gz
ah100044010hx*_a2nxbrec_cl.evt.gz ah100044010hx*_a2nxbrecpse_cl.evt.gz
ah100050010hx*_a0nxbrec_cl.evt.gz ah100050010hx*_a0nxbrecpse_cl.evt.gz
ah100050020hx*_a0nxbrec_cl.evt.gz ah100050020hx*_a0nxbrecpse_cl.evt.gz
ah100050030hx*_a0nxbrec_cl.evt.gz ah100050030hx*_a0nxbrecpse_cl.evt.gz
ah100050040hx*_a0nxbrec_cl.evt.gz ah100050040hx*_a0nxbrecpse_cl.evt.gz

==========================
SXI
==========================
*** File from the SXI trend nxb archive 
****Merged event file 100 threshold
ah000007010sxi_a0100003f0_nxb.evt
ah000007020sxi_a1100003f0_nxb.evt 
ah000007020sxi_a2100003f0_nxb.evt 
ah000008010sxi_a0100003f0_nxb.evt 
ah000008020sxi_a0100003f0_nxb.evt 
ah000008060sxi_a0100003f0_nxb.evt 
ah100040060sxi_a110000360_nxb.evt
ah100040060sxi_a210000360_nxb.evt
ah100040060sxi_a310000360_nxb.evt
ah100040060sxi_a410000360_nxb.evt
ah100041010sxi_a1100003f0_nxb.evt 
ah100041010sxi_a2100003f0_nxb.evt 
ah100041010sxi_a3100003f0_nxb.evt 
ah100041020sxi_a1100003f0_nxb.evt 
ah100041020sxi_a2100003f0_nxb.evt 
ah100041020sxi_a3100003f0_nxb.evt 
ah100041020sxi_a4100003f0_nxb.evt 
ah100041020sxi_a5100003f0_nxb.evt 
ah100041020sxi_a6100003f0_nxb.evt 
ah100041020sxi_a7100003f0_nxb.evt 
ah100041020sxi_a8100003f0_nxb.evt 
ah100041020sxi_a9100003f0_nxb.evt 
ah100043010sxi_a110000430_nxb.evt
ah100043010sxi_a210000430_nxb.evt
ah100043020sxi_a110000430_nxb.evt
ah100043020sxi_a210000430_nxb.evt
ah100043020sxi_a310000430_nxb.evt
ah100043020sxi_a410000430_nxb.evt
ah100043030sxi_a0100004f0_nxb.evt
ah100043040sxi_a0100004f0_nxb.evt
ah100043050sxi_a010000530_nxb.evt
ah100043060sxi_a010000530_nxb.evt
ah100050010sxi_a0100004b0_nxb.evt 
ah100050020sxi_a0100004b0_nxb.evt 
ah100050030sxi_a0100004b0_nxb.evt 
ah100050040sxi_a0100004b0_nxb.evt 
ah100050010sxi_a0100004b0_nxb.evt 
ah100050020sxi_a0100004b0_nxb.evt 
ah100050030sxi_a0100004b0_nxb.evt 
ah100050040sxi_a0100004b0_nxb.evt

****Merged event file threshold 40 
ah100043010sxi_a110000430_nxb.evt
ah100043010sxi_a210000430_nxb.evt
ah100043020sxi_a110000430_nxb.evt
ah100043020sxi_a210000430_nxb.evt
ah100043020sxi_a310000430_nxb.evt
ah100043020sxi_a410000430_nxb.evt
ah100043030sxi_a0100004f0_nxb.evt
ah100043040sxi_a0100004f0_nxb.evt
ah100043050sxi_a010000530_nxb.evt
ah100043060sxi_a010000530_nxb.evt

==========================
SXS
==========================
*** File from the SXS trend nxb archive
****Merged event file before March 4 2016
ah000002010sxs_a0px1010_nxb.evt.gz
ah000003010sxs_a0px1010_nxb.evt.gz
ah100040010sxs_a0px1010_nxb.evt.gz
ah100040020sxs_a0px1010_nxb.evt.gz
ah000004010sxs_a0px1010_nxb.evt.gz
ah000004021sxs_a0px1010_nxb.evt.gz
ah000004022sxs_a0px1010_nxb.evt.gz
ah000004023sxs_a0px1010_nxb.evt.gz
ah000004030sxs_a0px1010_nxb.evt.gz
ah000005010sxs_a0px1010_nxb.evt.gz
ah000005020sxs_a0px1010_nxb.evt.gz

****Merged event file after March 4
ah000006010sxs_a0px1010_nxb.evt.gz
ah000007010sxs_a0px1010_nxb.evt.gz
ah000007020sxs_a0px1010_nxb.evt.gz
ah000008010sxs_a0px1010_nxb.evt.gz
ah000008020sxs_a0px1010_nxb.evt.gz
ah000008050sxs_a0px1010_nxb.evt.gz
ah000008060sxs_a0px1010_nxb.evt.gz
ah100040030sxs_a0px1010_nxb.evt.gz
ah100040040sxs_a0px1010_nxb.evt.gz
ah100040050sxs_a0px1010_nxb.evt.gz
ah100040060sxs_a0px1010_nxb.evt.gz
ah100041010sxs_a0px1010_nxb.evt.gz
ah100041020sxs_a0px1010_nxb.evt.gz
ah100042010sxs_a0px1010_nxb.evt.gz
ah100043010sxs_a0px1010_nxb.evt.gz
ah100043020sxs_a0px1010_nxb.evt.gz
ah100043040sxs_a0px1010_nxb.evt.gz
ah100043050sxs_a0px1010_nxb.evt.gz
ah100043060sxs_a0px1010_nxb.evt.gz
ah100044010sxs_a0px1010_nxb.evt.gz
ah100050010sxs_a0px1010_nxb.evt.gz
ah100050020sxs_a0px1010_nxb.evt.gz
ah100050030sxs_a0px1010_nxb.evt.gz
ah100050040sxs_a0px1010_nxb.evt.gz
