[507] | 1 | Title: Status of the programs and scripts used for Amas@Nancay analysis at CCIN2P3 |
---|
[573] | 2 | Revision: 11/10/11 (JEC) |
---|
[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 |
---|
[539] | 16 | . ON-OFF spectra without calibration |
---|
[507] | 17 | . calibration coefficient determination + monitoring |
---|
| 18 | . ON-OFF spectra determination (no RT calibration included) |
---|
| 19 | - Todo |
---|
[539] | 20 | . include RT calibration, or a RT/BAO calibration using a calibrator source |
---|
[507] | 21 | - comments |
---|
[539] | 22 | . the STANDARD usage since end september 11 is GAIN + ON-OFF wo calibration |
---|
[507] | 23 | |
---|
| 24 | ----------------------------------------------------------- |
---|
| 25 | Collection of Bourne SHELL script for analysis |
---|
| 26 | ------------------------------------------------------------ |
---|
| 27 | |
---|
| 28 | A) Utilitary scripts to follow the DAQ & Analysis progress |
---|
| 29 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
[574] | 30 | o mkarchive.sh |
---|
| 31 | --------------- |
---|
| 32 | - perform the archive of a processing in Irods |
---|
| 33 | . create a <ppTag>Arch<apTag> directory |
---|
| 34 | . move the cabli_*.txt files |
---|
| 35 | . move the *.ppf / *.fits files results of the analysis |
---|
| 36 | . for the gain...fits only a copy is done to keep a version |
---|
| 37 | . move the Off and On directorys |
---|
| 38 | . create new fresh On and Off directory |
---|
| 39 | |
---|
| 40 | |
---|
[507] | 41 | o statusdaq.sh |
---|
| 42 | -------------- |
---|
| 43 | - perform |
---|
| 44 | . scan all the /baoradio/data/AmamNancay to look at the directories and and make |
---|
| 45 | a summary of the Data Acquisition |
---|
| 46 | |
---|
| 47 | o statusheader.sh |
---|
| 48 | ----------------- |
---|
| 49 | - perform |
---|
| 50 | . scan Irods directories to look at header fits files extraction progress |
---|
| 51 | |
---|
| 52 | o statusgain.sh |
---|
| 53 | --------------- |
---|
| 54 | - perform |
---|
| 55 | . scan Irods directories to look at FINAL gain_* files production progress |
---|
| 56 | |
---|
| 57 | o statuscalib.sh |
---|
| 58 | ---------------- |
---|
| 59 | - perform |
---|
| 60 | . scan Irods directories to look at INTERMEDIATE calibcycle files production progress |
---|
| 61 | - Todo |
---|
| 62 | . scan also for FINAL calib_* files progress |
---|
[539] | 63 | o statusonoff.sh |
---|
| 64 | ---------------- |
---|
| 65 | - perform |
---|
| 66 | . scan Irods On and Off directories to look at datacycle<cycle> contents |
---|
[507] | 67 | |
---|
[539] | 68 | o statusCycles.sh |
---|
| 69 | ----------------- |
---|
| 70 | - perform |
---|
| 71 | . scan Irods directories to look at sca<>.sum files to count the number of cycles per run |
---|
| 72 | |
---|
[507] | 73 | B) Utilitary scripts to send to BQS system high level task |
---|
| 74 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 75 | o submit2bqs-hdrfitsextractor.sh |
---|
| 76 | -------------------------------- |
---|
| 77 | - SHOULD BE DONE BEFORE gain/calib/analysis |
---|
| 78 | - send the hdrfitsextractor.sh script to BQS system |
---|
| 79 | - Todo list |
---|
| 80 | - TO MIGRATE TO NEW BATCH |
---|
| 81 | |
---|
| 82 | o submit2bqs-scaextractor.sh |
---|
| 83 | -------------------------------- |
---|
| 84 | - SHOULD BE DONE BEFORE gain/calib/analysis |
---|
| 85 | - send the scaextractor.sh script to BQS system |
---|
| 86 | although this script is called by getscafiles lower level script |
---|
| 87 | - Todo list |
---|
| 88 | - TO MIGRATE TO NEW BATCH |
---|
| 89 | |
---|
[573] | 90 | o submit2bqs-procspecmfib.sh |
---|
| 91 | ----------------------------- |
---|
| 92 | - SHOULD BE DONE for processing signals for FFT/paquet median filtering |
---|
| 93 | - GAIN/CALIB/ON, OFF... |
---|
| 94 | - prepare and send in batch the proc_specmfib.sh to BQS |
---|
| 95 | - exemple |
---|
[507] | 96 | - Todo list |
---|
[573] | 97 | - TO MIGRATE TO NEW BATCH |
---|
| 98 | |
---|
| 99 | o submit2bqs-anagainmaker.sh |
---|
| 100 | ---------------------------- |
---|
| 101 | - done after proc_specmfib |
---|
| 102 | - prepare and send the analyse.cc prg for gain computation |
---|
| 103 | - exemple |
---|
| 104 | - Todo list |
---|
| 105 | - TO MIGRATE TO NEW BATCH |
---|
| 106 | |
---|
| 107 | o submit2bqs-anacalibmaker.sh |
---|
| 108 | ---------------------------- |
---|
| 109 | - done after proc_specmfib |
---|
| 110 | - prepare and send the analyse.cc prg for calibration computation |
---|
| 111 | - exemples: |
---|
| 112 | > $./submit2bqs-anacalibmaker.sh -src Abell85 -date 20110410 |
---|
| 113 | |
---|
[507] | 114 | |
---|
[573] | 115 | - Todo list |
---|
| 116 | - TO MIGRATE TO NEW BATCH |
---|
| 117 | |
---|
| 118 | o submit2qs-onoffmaker.sh (OBSOLETE ???) |
---|
| 119 | -------------------------- |
---|
| 120 | - send the onoffmaker.sh script to BQS system |
---|
| 121 | - Todo list |
---|
| 122 | - TO MIGRATE TO NEW BATCH |
---|
| 123 | |
---|
| 124 | o submit2bqs-rawonoffmaker.sh (OBSOLETE ???) |
---|
[539] | 125 | ----------------------------- |
---|
[573] | 126 | - used after the anagainmaker |
---|
[539] | 127 | - prepare and send in batch the proc_rawonoff.sh to BQS system |
---|
| 128 | - exemple submit2bqs-rawonoffmaker.sh -src Abell85 -date 20110417 -fcycle 8 -lcycle 23 -type ON |
---|
| 129 | - Todo list |
---|
| 130 | - TO MIGRATE TO NEW BATCH |
---|
| 131 | |
---|
[573] | 132 | o submit2qs-gainmaker.sh (OBSOLETE) |
---|
| 133 | ------------------------- |
---|
| 134 | - send the gainmaker.sh script to BQS system |
---|
[507] | 135 | - Todo list |
---|
[573] | 136 | - TO MIGRATE TO NEW BATCH |
---|
[507] | 137 | |
---|
[573] | 138 | o submit2qs-calibmaker.sh (OBSOLETE) |
---|
[519] | 139 | -------------------------- |
---|
[573] | 140 | - send the calibmaker.sh script to BQS system |
---|
[519] | 141 | - Todo list |
---|
| 142 | - TO MIGRATE TO NEW BATCH |
---|
| 143 | |
---|
[507] | 144 | |
---|
| 145 | C) High level scripts |
---|
| 146 | ++++++++++++++++++++++ |
---|
| 147 | o hdrfitsextractor.sh |
---|
| 148 | --------------------- |
---|
| 149 | - SHOULD BE DONE BEFORE ANYTHING |
---|
| 150 | - perform |
---|
| 151 | . extraction of the header part of the signalXYZ.fits files and |
---|
| 152 | . put the results into Irods |
---|
| 153 | - use |
---|
| 154 | . statusdaq.sh |
---|
| 155 | |
---|
[573] | 156 | o anagainmaker.sh |
---|
| 157 | ----------------- |
---|
| 158 | - perform |
---|
| 159 | . the analysis of the above fits files to determine the |
---|
| 160 | gains of each channel: produce gain_* files (monitoring + gain files) |
---|
| 161 | . put the results into Irods |
---|
| 162 | - use |
---|
| 163 | - getscafiles.sh |
---|
| 164 | - analysis.cc |
---|
| 165 | |
---|
| 166 | o anacalibmaker.sh |
---|
| 167 | ------------------ |
---|
| 168 | - perfom |
---|
| 169 | . prepare the analysis of the above fits files |
---|
| 170 | . put calib_* files (monitoring + calibration files) into Irods |
---|
| 171 | - use |
---|
| 172 | - getscafiles.sh |
---|
| 173 | - analysis.cc |
---|
| 174 | |
---|
| 175 | |
---|
| 176 | o gainmaker.sh (OBOLETE) |
---|
[507] | 177 | --------------- |
---|
| 178 | - perform |
---|
| 179 | 1) the extraction of signalXYZ.fits files |
---|
| 180 | concerned by the OFF-calibration time window |
---|
| 181 | of the cycle located at the middle of the run |
---|
| 182 | 2) . the analysis of the above fits files to determine the |
---|
| 183 | gains of each channel: produce gain_* files (monitoring + gain files) |
---|
| 184 | . put the results into Irods |
---|
| 185 | - use |
---|
| 186 | - statusdaq.sh, proc_script.sh, getscafiles.sh |
---|
| 187 | - analysis.cc |
---|
| 188 | |
---|
[573] | 189 | o calibmaker.sh (OBSOLETE) |
---|
[507] | 190 | --------------- |
---|
| 191 | - perfom |
---|
[519] | 192 | 1) several x-checks to see at which stage of the analysis process we are |
---|
| 193 | 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg |
---|
| 194 | 3) . prepare the analysis of the above fits files |
---|
| 195 | . put calib_* files (monitoring + calibration files) into Irods |
---|
[507] | 196 | - use |
---|
| 197 | - statusdaq.sh, proc_script.sh, getscafiles.sh |
---|
| 198 | - analysis.cc |
---|
| 199 | |
---|
[519] | 200 | o onoffmaker.sh (preliminary) |
---|
| 201 | ---------------------------- |
---|
| 202 | - perform |
---|
| 203 | 1) several x-checks to see at which stage of the analysis process we are |
---|
| 204 | 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg |
---|
| 205 | 3) prepare the analysis of the above fits files |
---|
| 206 | 4) put dataRaw_* (raw spectra), |
---|
| 207 | dataBAOCalib_* (after BAO calibration), |
---|
| 208 | dataBAORTCalib_* (after BAO & RT calibration), |
---|
| 209 | diffOnOff_* (ON-OFF spectra) |
---|
| 210 | |
---|
[507] | 211 | D) Lower level scripts |
---|
| 212 | ++++++++++++++++++++++ |
---|
[539] | 213 | |
---|
[573] | 214 | o proc_specmfib.sh |
---|
[539] | 215 | ------------------ |
---|
[573] | 216 | - perform all the preparation work to send in batch the "specmfib" |
---|
| 217 | program which perform the FFT and median/mean spectra |
---|
| 218 | for the GAIN/CALIB/ON-OFF... task |
---|
| 219 | - use |
---|
| 220 | - getscafiles.sh, select.sh, statusdaq.sh, getsignalfiles.sh |
---|
| 221 | - comments |
---|
| 222 | - this is the pre-processing of the data to be used before |
---|
| 223 | anaXYZ script which are post-processing |
---|
| 224 | |
---|
| 225 | |
---|
| 226 | o proc_rawonoff.sh (OBSOLETE) |
---|
| 227 | ------------------ |
---|
[539] | 228 | - this is the script to use to perform the "datacycle" contents |
---|
| 229 | - perform all the preparation work to send in batch the "specmfib" program |
---|
| 230 | which perform the FFT and median/mean spectra for the ON-OFF task |
---|
| 231 | - use |
---|
| 232 | - getscafiles.sh, select.sh, statusdaq.sh, getsignalfiles.sh |
---|
| 233 | - comments |
---|
| 234 | - contrary to proc_script (below) specmfib is activated in the same thread |
---|
| 235 | |
---|
[573] | 236 | o proc_script.sh (OBSOLETE) |
---|
[507] | 237 | ----------------- |
---|
| 238 | - VERY BUSY script |
---|
| 239 | - perform |
---|
| 240 | 1) all the preparation work to send in batch the "specmfib" program |
---|
| 241 | which perform the FFT and median/mean spectra for GAIN, CALIBRATION, ON-OFF task |
---|
| 242 | 2) the script that is sent in batch put the results into Irods |
---|
| 243 | - use |
---|
| 244 | - getscafiles.sh, select.sh, getsignalfiles.sh |
---|
| 245 | - Todo list |
---|
| 246 | - TO MIGRATE TO NEW BATCH |
---|
| 247 | |
---|
| 248 | |
---|
| 249 | o scaextractor.sh |
---|
| 250 | ----------------- |
---|
| 251 | - perform |
---|
| 252 | 1) extraction of the scaXYZ file |
---|
| 253 | 2) if the scaXYZ.sum and the scaXYZ.sum.trans files do not exist |
---|
| 254 | . create and put them into Irods |
---|
| 255 | . scaXYZ.sum = summary of the SCA file |
---|
| 256 | . scaXYZ.sum.trans = transformation of the date format of the scaXYZ.sum file |
---|
| 257 | - use |
---|
| 258 | - sca.sh, transdate.sh |
---|
| 259 | |
---|
| 260 | o sca.sh |
---|
| 261 | -------- |
---|
| 262 | - perform |
---|
| 263 | . produce the scaXYZ.sum (= summary of the SCA file) from a scaXYZ file |
---|
| 264 | |
---|
| 265 | o transdate.sh |
---|
| 266 | -------------- |
---|
| 267 | - perform |
---|
| 268 | . produce the scaXYZ.sum.trans (= transformation of the date format) from the scaXYZ.sum file |
---|
| 269 | |
---|
| 270 | o select.sh |
---|
| 271 | ----------- |
---|
| 272 | -perform |
---|
| 273 | . the selection of the signalXYZ.fits files according to the type of task requested |
---|
| 274 | as ON, OFF, CALIBON, CALIBOFF, GAIN |
---|
| 275 | |
---|
| 276 | o getscafiles.sh |
---|
| 277 | ---------------- |
---|
| 278 | - perform |
---|
| 279 | . download from Irods the scaXYZ, scaXYZ.sum and scaXYZ.sum.trans files |
---|
| 280 | - use |
---|
| 281 | scaextractor.sh |
---|
| 282 | |
---|
| 283 | o getsignals.sh |
---|
| 284 | --------------- |
---|
| 285 | - perform |
---|
| 286 | . download from Irods the signalXYZ.fits files |
---|
| 287 | |
---|
| 288 | |
---|
| 289 | |
---|
| 290 | |
---|