| [507] | 1 | Title: Status of the programs and scripts used for Amas@Nancay analysis at CCIN2P3
 | 
|---|
| [519] | 2 | Revision: 14/9/11
 | 
|---|
| [507] | 3 | Author: J.E Campagne 22/7/11
 | 
|---|
 | 4 | ----------------------------
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | Intro:
 | 
|---|
 | 7 | All these tools are located for the while in J.E Campagne private directory, so they are not
 | 
|---|
 | 8 | yet available to public usage and this note is essentially for information and software tracking.
 | 
|---|
 | 9 | 
 | 
|---|
 | 10 | -----------------------------------------------------------
 | 
|---|
 | 11 | Analysis program
 | 
|---|
 | 12 | ------------------------------------------------------------
 | 
|---|
 | 13 | o analysis.cc
 | 
|---|
 | 14 |         - perfom
 | 
|---|
 | 15 |                 . gain spectra determination + monitoring
 | 
|---|
 | 16 |                 . calibration coefficient determination + monitoring
 | 
|---|
 | 17 |                 . ON-OFF spectra determination (no RT calibration included)
 | 
|---|
 | 18 |         - Todo
 | 
|---|
 | 19 |                 . include RT calibration
 | 
|---|
 | 20 |         - comments
 | 
|---|
| [519] | 21 |                 . ON-OFF part only validate for a single Abell85 run and not in batch mode (preliminary stage)
 | 
|---|
| [507] | 22 |                 . GAIN part should be revalidated according to inPath argument
 | 
|---|
 | 23 |                 
 | 
|---|
 | 24 | -----------------------------------------------------------
 | 
|---|
 | 25 | Collection of  Bourne SHELL script for analysis
 | 
|---|
 | 26 | ------------------------------------------------------------
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 | A) Utilitary scripts to follow the DAQ & Analysis progress
 | 
|---|
 | 29 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 | 
|---|
 | 30 | o statusdaq.sh
 | 
|---|
 | 31 | --------------
 | 
|---|
 | 32 |         - perform
 | 
|---|
 | 33 |                 . scan all the /baoradio/data/AmamNancay to look at the directories and and make
 | 
|---|
 | 34 |                         a summary of the Data Acquisition
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 | o statusheader.sh
 | 
|---|
 | 37 | -----------------
 | 
|---|
 | 38 |         - perform
 | 
|---|
 | 39 |                 . scan Irods directories to look at header fits files extraction progress 
 | 
|---|
 | 40 |                 
 | 
|---|
 | 41 | o statusgain.sh
 | 
|---|
 | 42 | ---------------
 | 
|---|
 | 43 |         - perform
 | 
|---|
 | 44 |                 . scan Irods directories to look at FINAL gain_* files production progress 
 | 
|---|
 | 45 | 
 | 
|---|
 | 46 | o statuscalib.sh
 | 
|---|
 | 47 | ----------------
 | 
|---|
 | 48 |         - perform
 | 
|---|
 | 49 |                 . scan Irods directories to look at INTERMEDIATE calibcycle files production progress
 | 
|---|
 | 50 |         - Todo
 | 
|---|
 | 51 |                 . scan also for FINAL calib_* files progress
 | 
|---|
 | 52 | 
 | 
|---|
 | 53 | B) Utilitary scripts to send to BQS system high level task
 | 
|---|
 | 54 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++              
 | 
|---|
 | 55 | o submit2bqs-hdrfitsextractor.sh
 | 
|---|
 | 56 | --------------------------------
 | 
|---|
 | 57 |         - SHOULD BE DONE BEFORE gain/calib/analysis
 | 
|---|
 | 58 |         - send the hdrfitsextractor.sh script to BQS system     
 | 
|---|
 | 59 |         - Todo list
 | 
|---|
 | 60 |                 - TO MIGRATE TO NEW BATCH 
 | 
|---|
 | 61 | 
 | 
|---|
 | 62 | o submit2bqs-scaextractor.sh
 | 
|---|
 | 63 | --------------------------------
 | 
|---|
 | 64 |         - SHOULD BE DONE BEFORE gain/calib/analysis
 | 
|---|
 | 65 |         - send statusdaq if necessary
 | 
|---|
 | 66 |         - send the scaextractor.sh script to BQS system
 | 
|---|
 | 67 |                 although this script is called by getscafiles lower level script
 | 
|---|
 | 68 |         - Todo list
 | 
|---|
 | 69 |                 - TO MIGRATE TO NEW BATCH 
 | 
|---|
 | 70 | 
 | 
|---|
 | 71 | o submit2qs-gainmaker.sh
 | 
|---|
 | 72 | -------------------------
 | 
|---|
 | 73 |         - send the gainmaker.sh script to BQS system 
 | 
|---|
 | 74 |         - Todo list
 | 
|---|
 | 75 |                 - TO MIGRATE TO NEW BATCH
 | 
|---|
 | 76 |         
 | 
|---|
 | 77 | o submit2qs-calibmaker.sh
 | 
|---|
 | 78 | --------------------------
 | 
|---|
 | 79 |         - send the calibmaker.sh script to BQS system
 | 
|---|
 | 80 |         - Todo list
 | 
|---|
 | 81 |                 - TO MIGRATE TO NEW BATCH 
 | 
|---|
 | 82 | 
 | 
|---|
| [519] | 83 | o submit2qs-onoffmaker.sh
 | 
|---|
 | 84 | --------------------------
 | 
|---|
 | 85 |         - send the onoffmaker.sh script to BQS system
 | 
|---|
 | 86 |         - Todo list
 | 
|---|
 | 87 |                 - TO MIGRATE TO NEW BATCH 
 | 
|---|
 | 88 | 
 | 
|---|
| [507] | 89 |                 
 | 
|---|
 | 90 | C) High level scripts 
 | 
|---|
 | 91 | ++++++++++++++++++++++          
 | 
|---|
 | 92 | o hdrfitsextractor.sh
 | 
|---|
 | 93 | ---------------------
 | 
|---|
 | 94 |         - SHOULD BE DONE BEFORE ANYTHING
 | 
|---|
 | 95 |         - perform
 | 
|---|
 | 96 |                 . extraction of the header part of the signalXYZ.fits files and
 | 
|---|
 | 97 |                 . put the results into Irods    
 | 
|---|
 | 98 |         - use 
 | 
|---|
 | 99 |                 . statusdaq.sh  
 | 
|---|
 | 100 | 
 | 
|---|
 | 101 | o gainmaker.sh
 | 
|---|
 | 102 | ---------------
 | 
|---|
 | 103 |         - perform 
 | 
|---|
 | 104 |                 1) the extraction of signalXYZ.fits files 
 | 
|---|
 | 105 |                         concerned by the OFF-calibration time window
 | 
|---|
 | 106 |                         of the cycle located at the middle of the run
 | 
|---|
 | 107 |                 2) . the analysis of the above fits files to determine the 
 | 
|---|
 | 108 |                         gains of each channel: produce gain_* files (monitoring + gain files)
 | 
|---|
 | 109 |                         . put the results into Irods
 | 
|---|
 | 110 |         - use 
 | 
|---|
 | 111 |                 - statusdaq.sh, proc_script.sh, getscafiles.sh
 | 
|---|
 | 112 |                 - analysis.cc   
 | 
|---|
 | 113 |         
 | 
|---|
 | 114 | o calibmaker.sh
 | 
|---|
 | 115 | ---------------
 | 
|---|
 | 116 |         - perfom
 | 
|---|
| [519] | 117 |                 1) several x-checks to see at which stage of the analysis process we are
 | 
|---|
 | 118 |                 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg 
 | 
|---|
 | 119 |                 3) . prepare the analysis of the above fits files
 | 
|---|
 | 120 |                    . put calib_* files (monitoring +  calibration files) into Irods
 | 
|---|
| [507] | 121 |         - use 
 | 
|---|
 | 122 |                 - statusdaq.sh, proc_script.sh, getscafiles.sh
 | 
|---|
 | 123 |                 - analysis.cc   
 | 
|---|
 | 124 | 
 | 
|---|
| [519] | 125 | o onoffmaker.sh (preliminary)
 | 
|---|
 | 126 | ----------------------------
 | 
|---|
 | 127 |         - perform
 | 
|---|
 | 128 |                 1) several x-checks to see at which stage of the analysis process we are
 | 
|---|
 | 129 |                 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg 
 | 
|---|
 | 130 |                 3) prepare the analysis of the above fits files
 | 
|---|
 | 131 |                 4) put dataRaw_*        (raw spectra), 
 | 
|---|
 | 132 |                        dataBAOCalib_*   (after BAO calibration), 
 | 
|---|
 | 133 |                        dataBAORTCalib_* (after BAO & RT calibration), 
 | 
|---|
 | 134 |                        diffOnOff_*      (ON-OFF spectra) 
 | 
|---|
 | 135 | 
 | 
|---|
| [507] | 136 | D) Lower level scripts
 | 
|---|
 | 137 | ++++++++++++++++++++++
 | 
|---|
 | 138 |                 
 | 
|---|
 | 139 | o proc_script.sh
 | 
|---|
 | 140 | -----------------
 | 
|---|
 | 141 |         - VERY BUSY script
 | 
|---|
 | 142 |         - perform 
 | 
|---|
 | 143 |                 1) all the preparation work to send in batch the "specmfib" program 
 | 
|---|
 | 144 |                         which perform the FFT and median/mean spectra for GAIN, CALIBRATION, ON-OFF task
 | 
|---|
 | 145 |                 2) the script that is sent in batch put the results into Irods  
 | 
|---|
 | 146 |         - use
 | 
|---|
 | 147 |                 - getscafiles.sh, select.sh, getsignalfiles.sh
 | 
|---|
 | 148 |         - Todo list
 | 
|---|
 | 149 |                 - TO MIGRATE TO NEW BATCH 
 | 
|---|
 | 150 |                 
 | 
|---|
 | 151 | 
 | 
|---|
 | 152 | o scaextractor.sh
 | 
|---|
 | 153 | -----------------
 | 
|---|
 | 154 |         - perform
 | 
|---|
 | 155 |                 1) extraction of the scaXYZ file
 | 
|---|
 | 156 |                 2) if the scaXYZ.sum and the scaXYZ.sum.trans files do not exist
 | 
|---|
 | 157 |                         . create and put them into Irods
 | 
|---|
 | 158 |                         . scaXYZ.sum = summary of the SCA file
 | 
|---|
 | 159 |                         . scaXYZ.sum.trans = transformation of the date format of the scaXYZ.sum file   
 | 
|---|
 | 160 |         - use
 | 
|---|
 | 161 |                 - sca.sh, transdate.sh
 | 
|---|
 | 162 |                 
 | 
|---|
 | 163 | o sca.sh
 | 
|---|
 | 164 | --------
 | 
|---|
 | 165 |         - perform
 | 
|---|
 | 166 |                 . produce the scaXYZ.sum (= summary of the SCA file) from a scaXYZ file
 | 
|---|
 | 167 |                 
 | 
|---|
 | 168 | o transdate.sh
 | 
|---|
 | 169 | --------------
 | 
|---|
 | 170 |         - perform
 | 
|---|
 | 171 |                 . produce the scaXYZ.sum.trans (= transformation of the date format) from the scaXYZ.sum file   
 | 
|---|
 | 172 | 
 | 
|---|
 | 173 | o select.sh
 | 
|---|
 | 174 | -----------
 | 
|---|
 | 175 |         -perform 
 | 
|---|
 | 176 |                 . the selection of the signalXYZ.fits files according to the type of task requested
 | 
|---|
 | 177 |                         as ON, OFF, CALIBON, CALIBOFF, GAIN
 | 
|---|
 | 178 |                 
 | 
|---|
 | 179 | o getscafiles.sh
 | 
|---|
 | 180 | ----------------
 | 
|---|
 | 181 |         - perform
 | 
|---|
 | 182 |                 . download from Irods the scaXYZ, scaXYZ.sum and scaXYZ.sum.trans files 
 | 
|---|
 | 183 |         - use
 | 
|---|
 | 184 |                 scaextractor.sh
 | 
|---|
 | 185 |                 
 | 
|---|
 | 186 | o getsignals.sh
 | 
|---|
 | 187 | ---------------
 | 
|---|
 | 188 |         - perform
 | 
|---|
 | 189 |                 . download from Irods the signalXYZ.fits files
 | 
|---|
 | 190 |                 
 | 
|---|
 | 191 |                 
 | 
|---|
 | 192 |                 
 | 
|---|
 | 193 | 
 | 
|---|