1 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
---|
2 | // Eric Aubourg
|
---|
3 | // Christophe Magneville
|
---|
4 | // Reza Ansari
|
---|
5 |
|
---|
6 | /* Traitement simple des donnees Archeops KS1-3 - Reza Juin 2002
|
---|
7 |
|
---|
8 | ---------------- Exemple d'appel ---------------------
|
---|
9 | csh> aksj02 -start 104385384 -end 104399964 -range -500,500 \
|
---|
10 | -intoi boloMuV_26 -wtoi 8192 -wclean 512,5 \
|
---|
11 | inputbolo.fits filt.fits xx.ppf
|
---|
12 | */
|
---|
13 |
|
---|
14 |
|
---|
15 |
|
---|
16 | #include "machdefs.h"
|
---|
17 | #include <math.h>
|
---|
18 | #include <unistd.h>
|
---|
19 |
|
---|
20 | #include "toimanager.h"
|
---|
21 | #include "cgt.h"
|
---|
22 | #include "fitstoirdr.h"
|
---|
23 | #include "fitstoiwtr.h"
|
---|
24 | #include "simtoipr.h"
|
---|
25 | #include "simoffset.h"
|
---|
26 | #include "simcleaner.h"
|
---|
27 | #include "nooppr.h"
|
---|
28 | #include "timing.h"
|
---|
29 | #include "histinit.h"
|
---|
30 | #include "psighand.h"
|
---|
31 | #include <stdexcept>
|
---|
32 |
|
---|
33 | void Usage(bool fgerr)
|
---|
34 | {
|
---|
35 | cout << endl;
|
---|
36 | if (fgerr) {
|
---|
37 | cout << " aksj02 : Argument Error ! aksj02 -h for usage " << endl;
|
---|
38 | exit(1);
|
---|
39 | }
|
---|
40 | else {
|
---|
41 | cout << "\n Usage : aksj02 [-intoi toiname] [-start snb] [-end sne] \n"
|
---|
42 | << " [-dbg] [-wtoi sz] [-wclean wsz,nbw] [-range min,max] \n"
|
---|
43 | << " [-soff wsz,nptfit,degpol] [-soffnt PPFName] \n"
|
---|
44 | << " [-soff2 wsz,nptfit,degpol] [-soff2nt PPFName] \n"
|
---|
45 | << " [-bgal toiname] [-bgalfile pointFitsName] [-bgalnf N]\n"
|
---|
46 | << " [-bgal toiname] [-bgalfile pointFitsName] \n"
|
---|
47 | << " [-bgalcut bmin,bmax] [-bgal2cut bmin,bmax] \n"
|
---|
48 | << " [-gfilt wsz,sigma] \n"
|
---|
49 | << " [-nooutflg] [-wrtms] [-wrtifo] [-prstat] [-useseqbuff] \n"
|
---|
50 | << " inFitsName outFitsName \n"
|
---|
51 | << " -dbg : sets TOISeqBuffered debug level to 1 \n"
|
---|
52 | << " -start snb : sets the start sample num \n"
|
---|
53 | << " -end sne : sets the end sample num \n"
|
---|
54 | << " -range min,max : sets the acceptable range for intoi \n"
|
---|
55 | << " default= -16000,16000\n"
|
---|
56 | << " -intoi toiName : select input TOI name (def bolo)\n"
|
---|
57 | << " -wtoi sz : sets TOISeqBuff buffer size (def= 8192)\n"
|
---|
58 | << " -wclean wsz,nbw : sets cleaner window parameters (256,5) \n"
|
---|
59 | << " -soff wsz,nptfit,degpol : set SimpleOffsetEstimator parameters\n"
|
---|
60 | << " -soffnt PPFName : Writes out SimpleOffsetEstimator NTuple \n"
|
---|
61 | << " -bgalcut bmin,bmax: Galactic latitude cut (in degree) for SimpleOffsetEstimator\n"
|
---|
62 | << " -bgal toiname: Galactic latitude toiname \n"
|
---|
63 | << " -bgalfile pointFitsName: Pointing FITS file name (for gal. latitude) \n"
|
---|
64 | << " -bgalnf n: Number of bgalfiles pointFitsName%d.fits \n"
|
---|
65 | << " -soff2 wsz,nptfit,degpol : set SimpleOffsetEstimator_2 parameters\n"
|
---|
66 | << " -soff2nt PPFName : Writes out SimpleOffsetEstimator_2 NTuple \n"
|
---|
67 | << " -bgal2cut bmin,bmax: Galactic latitude cut (in degree) for SimpleOffsetEstimator_2\n"
|
---|
68 | << " -gfilt wsz,sigma : Activate gaussian filter (par= window size, sigma) \n"
|
---|
69 | // << " -wfft sz : Activate Fourier filter and sets its width \n"
|
---|
70 | // << " -keepfft n : Keeps n spectra (if Fourier filter activated) \n"
|
---|
71 | // << " -killfreq bf,nharm,sigf : kills nharm frequency, basefreq=bf \n"
|
---|
72 | // << " with a gaussian with width=sigf \n"
|
---|
73 | << " -nooutflg : Don't write flags to output FITS \n"
|
---|
74 | << " -wrtms : Write mean/sigma TOI's from cleaner \n"
|
---|
75 | << " -wrtifo : Write incopie flagged TOI's from cleaner/ offset from SimpleOffsetEstimator \n"
|
---|
76 | << " -prstat : PrintStat with ProcSampleCounter \n"
|
---|
77 | << " -useseqbuff : Use TOISeqBuffered TOI's (default: TOISegmented) \n"
|
---|
78 | << endl;
|
---|
79 | }
|
---|
80 | if (fgerr) exit(1);
|
---|
81 | }
|
---|
82 |
|
---|
83 | int main(int narg, char** arg) {
|
---|
84 |
|
---|
85 | if ((narg > 1) && (strcmp(arg[1],"-h") == 0) ) Usage(false);
|
---|
86 |
|
---|
87 | cout << "aksj02 starting - Decoding arguments " << " narg=" << narg << endl;
|
---|
88 |
|
---|
89 | bool fgdbg = false;
|
---|
90 | bool fgsetstart = false;
|
---|
91 |
|
---|
92 | bool fgprstat = false;
|
---|
93 | bool fgsegmented = true;
|
---|
94 |
|
---|
95 | int dbglev = 0;
|
---|
96 |
|
---|
97 | int wtoi = 8192;
|
---|
98 | int wdegli = 512;
|
---|
99 |
|
---|
100 | int wfft = 4096;
|
---|
101 | int keepfft = 0;
|
---|
102 | int nmax = 10;
|
---|
103 | int istart = 0;
|
---|
104 | int iend = 0;
|
---|
105 |
|
---|
106 | double range_min = -16000;
|
---|
107 | double range_max = 16000.;
|
---|
108 |
|
---|
109 | // cleaner parameters
|
---|
110 | int clean_wsz = 256;
|
---|
111 | int clean_nbw = 5;
|
---|
112 |
|
---|
113 | // SimpleOffsetEstimator parameters
|
---|
114 | int soff_mwsz = 256;
|
---|
115 | int soff_nptfit = 5;
|
---|
116 | int soff_degpol = 2;
|
---|
117 | bool soff_nt = false;
|
---|
118 | string soff_nt_ppfname = "";
|
---|
119 |
|
---|
120 | // SimpleOffsetEstimator (2) parameters
|
---|
121 | bool soff2_dofg = false;
|
---|
122 | int soff2_mwsz = 256;
|
---|
123 | int soff2_nptfit = 5;
|
---|
124 | int soff2_degpol = 2;
|
---|
125 | bool soff2_nt = false;
|
---|
126 | string soff2_nt_ppfname = "";
|
---|
127 |
|
---|
128 | // Gaussian filter parameters
|
---|
129 | bool gfilt_fg = false;
|
---|
130 | int gfilt_wsz = 16;
|
---|
131 | double gfilt_sigma = 2.;
|
---|
132 |
|
---|
133 | // Coordinate file for galactic cut
|
---|
134 | string pointfile = "pointgal.fits";
|
---|
135 | double bmin = -10;
|
---|
136 | double bmax = 10.;
|
---|
137 | bool bgalcut = false;
|
---|
138 | string bgaltoi = "bgal";
|
---|
139 | bool bgalfile = false;
|
---|
140 | double bmin2 = -10;
|
---|
141 | double bmax2 = 10.;
|
---|
142 | bool bgal2cut = false;
|
---|
143 | int bgalNbFiles = 0;
|
---|
144 |
|
---|
145 | // File names
|
---|
146 | string infile;
|
---|
147 | string outfile;
|
---|
148 | string outppfname;
|
---|
149 | string intoi = "bolo";
|
---|
150 |
|
---|
151 | bool fg_wrtflag = true;
|
---|
152 | bool fg_wrtms = false;
|
---|
153 | bool fg_wrtifo = false;
|
---|
154 |
|
---|
155 |
|
---|
156 | bool fg_f_filt = false;
|
---|
157 | bool fg_killfreq = false;
|
---|
158 | int bf_killfreq = 1;
|
---|
159 | int nharm_killfreq = 1;
|
---|
160 | double sigf_killfreq = 1.;
|
---|
161 |
|
---|
162 | if (narg < 4) Usage(true);
|
---|
163 | int ko=1;
|
---|
164 | // decoding arguments
|
---|
165 | for(int ia=1; ia<narg; ia++) {
|
---|
166 | if (strcmp(arg[ia],"-start") == 0) {
|
---|
167 | if (ia == narg-1) Usage(true); // -start est suivi d'un argument
|
---|
168 | istart = atoi(arg[ia+1]); ia++;
|
---|
169 | fgsetstart = true;
|
---|
170 | }
|
---|
171 | else if (strcmp(arg[ia],"-end") == 0) {
|
---|
172 | if (ia == narg-1) Usage(true);
|
---|
173 | iend = atoi(arg[ia+1]); ia++;
|
---|
174 | }
|
---|
175 | else if (strcmp(arg[ia],"-wtoi") == 0) {
|
---|
176 | if (ia == narg-1) Usage(true);
|
---|
177 | wtoi = atoi(arg[ia+1]); ia++;
|
---|
178 | }
|
---|
179 | else if (strcmp(arg[ia],"-wclean") == 0) {
|
---|
180 | if (ia == narg-1) Usage(true);
|
---|
181 | wdegli = atoi(arg[ia+1]); ia++;
|
---|
182 | sscanf(arg[ia+1],"%d,%d", &clean_wsz, &clean_nbw);
|
---|
183 | }
|
---|
184 | else if (strcmp(arg[ia],"-soff") == 0) {
|
---|
185 | if (ia == narg-1) Usage(true);
|
---|
186 | sscanf(arg[ia+1],"%d,%d,%d", &soff_mwsz, &soff_nptfit, &soff_degpol);
|
---|
187 | ia++;
|
---|
188 | }
|
---|
189 | else if (strcmp(arg[ia],"-soffnt") == 0) {
|
---|
190 | soff_nt = true;
|
---|
191 | soff_nt_ppfname = arg[ia+1]; ia++;
|
---|
192 | }
|
---|
193 | else if (strcmp(arg[ia],"-soff2") == 0) {
|
---|
194 | if (ia == narg-1) Usage(true);
|
---|
195 | soff2_dofg = true;
|
---|
196 | sscanf(arg[ia+1],"%d,%d,%d", &soff2_mwsz, &soff2_nptfit, &soff2_degpol);
|
---|
197 | ia++;
|
---|
198 | }
|
---|
199 | else if (strcmp(arg[ia],"-soff2nt") == 0) {
|
---|
200 | soff2_nt = true;
|
---|
201 | soff2_nt_ppfname = arg[ia+1]; ia++;
|
---|
202 | }
|
---|
203 | else if (strcmp(arg[ia],"-gfilt") == 0) {
|
---|
204 | if (ia == narg-1) Usage(true);
|
---|
205 | sscanf(arg[ia+1],"%d,%lf", &gfilt_wsz, &gfilt_sigma);
|
---|
206 | gfilt_fg = true;
|
---|
207 | ia++;
|
---|
208 | }
|
---|
209 | else if (strcmp(arg[ia],"-bgalcut") == 0) {
|
---|
210 | if (ia == narg-1) Usage(true);
|
---|
211 | sscanf(arg[ia+1],"%lf,%lf", &bmin, &bmax);
|
---|
212 | bgalcut = true;
|
---|
213 | ia++;
|
---|
214 | }
|
---|
215 | else if (strcmp(arg[ia],"-bgal2cut") == 0) {
|
---|
216 | if (ia == narg-1) Usage(true);
|
---|
217 | sscanf(arg[ia+1],"%lf,%lf", &bmin2, &bmax2);
|
---|
218 | bgal2cut = true;
|
---|
219 | ia++;
|
---|
220 | }
|
---|
221 | else if (strcmp(arg[ia],"-bgalfile") == 0) {
|
---|
222 | if (ia == narg-1) Usage(true);
|
---|
223 | pointfile = arg[ia+1];
|
---|
224 | bgalfile = true;
|
---|
225 | ia++;
|
---|
226 | }
|
---|
227 | else if (strcmp(arg[ia],"-bgalnf") == 0) {
|
---|
228 | if (ia == narg-1) Usage(true);
|
---|
229 | bgalNbFiles = atoi(arg[ia+1]);
|
---|
230 | ia++;
|
---|
231 | }
|
---|
232 | else if (strcmp(arg[ia],"-bgal") == 0) {
|
---|
233 | if (ia == narg-1) Usage(true);
|
---|
234 | bgaltoi = arg[ia+1];
|
---|
235 | ia++;
|
---|
236 | }
|
---|
237 | else if (strcmp(arg[ia],"-range") == 0) {
|
---|
238 | if (ia == narg-1) Usage(true);
|
---|
239 | sscanf(arg[ia+1],"%lf,%lf",&range_min, &range_max);
|
---|
240 | ia++;
|
---|
241 | }
|
---|
242 | else if (strcmp(arg[ia],"-intoi") == 0) {
|
---|
243 | if (ia == narg-1) Usage(true);
|
---|
244 | intoi = arg[ia+1]; ia++;
|
---|
245 | }
|
---|
246 | else if (strcmp(arg[ia],"-dbg") == 0) fgdbg = true;
|
---|
247 | else if (strcmp(arg[ia],"-nooutflg") == 0) fg_wrtflag = false;
|
---|
248 | else if (strcmp(arg[ia],"-wrtms") == 0) fg_wrtms = true;
|
---|
249 | else if (strcmp(arg[ia],"-wrtifo") == 0) fg_wrtifo = true;
|
---|
250 |
|
---|
251 | else if (strcmp(arg[ia],"-prstat") == 0) fgprstat = true;
|
---|
252 | else if (strcmp(arg[ia],"-useseqbuff") == 0) fgsegmented = false;
|
---|
253 |
|
---|
254 | else { ko = ia; break; } // Debut des noms
|
---|
255 | }
|
---|
256 |
|
---|
257 | if (iend < istart) iend = istart+wtoi*(nmax+5);
|
---|
258 | if ((narg-ko) < 2) Usage(true);
|
---|
259 | infile = arg[ko];
|
---|
260 | outfile = arg[ko+1];
|
---|
261 | // outppfname = arg[ko+2];
|
---|
262 |
|
---|
263 | cout << " Initializing SOPHYA ... " << endl;
|
---|
264 | SophyaInit();
|
---|
265 | SophyaConfigureSignalhandling(true);
|
---|
266 |
|
---|
267 | InitTim();
|
---|
268 | if ((soff2_dofg == true) && (wtoi < 32768)) wtoi = 32768;
|
---|
269 | if (!bgalfile) bgalcut = bgal2cut = false;
|
---|
270 |
|
---|
271 | cout << ">>>> aksj02: Infile= " << infile << " outFile="
|
---|
272 | << outfile << endl;
|
---|
273 | cout << ">>>> Window Size WTOI= " << wtoi << " WDEGLI= " << wdegli
|
---|
274 | << " iStart= " << istart << " iEnd= " << iend << endl;
|
---|
275 | cout << ">>>> InTOIName= " << intoi << endl;
|
---|
276 |
|
---|
277 | try {
|
---|
278 | TOIManager* mgr = TOIManager::getManager();
|
---|
279 |
|
---|
280 | // mgr->setRequestedSample(11680920,11710584);
|
---|
281 | // mgr->setRequestedSample(104121000, 104946120);
|
---|
282 | if (fgsetstart)
|
---|
283 | mgr->setRequestedSample(istart, iend);
|
---|
284 |
|
---|
285 | cout << "> Creating FITSTOIReader object - InFile=" << infile << endl;
|
---|
286 | FITSTOIReader r(infile);
|
---|
287 |
|
---|
288 | cout << "> Creating SimpleCleaner() " << endl;
|
---|
289 | SimpleCleaner cleaner(clean_wsz, clean_nbw);
|
---|
290 | cout << " Setting Range for cleaner: " << range_min
|
---|
291 | << " - " << range_max << endl;
|
---|
292 | cleaner.SetRange(range_min, range_max);
|
---|
293 |
|
---|
294 | cout << "> Creating SimpleOffsetEstimator(" << soff_mwsz << "," << soff_nptfit
|
---|
295 | << "," << soff_degpol << ")" << endl;
|
---|
296 | SimpleOffsetEstimator offes(soff_mwsz, soff_nptfit, soff_degpol);
|
---|
297 | offes.SavePolyNTuple(soff_nt, soff_nt_ppfname);
|
---|
298 |
|
---|
299 | SimpleOffsetEstimator* offes2 = NULL;
|
---|
300 | if (soff2_dofg) {
|
---|
301 | cout << "> Creating 2nd SimpleOffsetEstimator(" << soff2_mwsz << "," << soff2_nptfit
|
---|
302 | << "," << soff2_degpol << ")" << endl;
|
---|
303 | offes2 = new SimpleOffsetEstimator(soff2_mwsz, soff2_nptfit, soff2_degpol);
|
---|
304 | offes2->SavePolyNTuple(soff2_nt, soff2_nt_ppfname);
|
---|
305 | }
|
---|
306 |
|
---|
307 | SimpleFilter *filt = NULL;
|
---|
308 | if (gfilt_fg) {
|
---|
309 | cout << "> Creating a GaussianFilter SimpleFilter Object " << endl;
|
---|
310 | double G_sigma = gfilt_sigma;
|
---|
311 | double G_a = 1./(G_sigma*sqrt(M_PI*2.));
|
---|
312 | filt = new SimpleFilter(gfilt_wsz, SimpleFilter::GaussFilter, G_a, G_sigma);
|
---|
313 | }
|
---|
314 |
|
---|
315 | FITSTOIReader* rbgal = NULL;
|
---|
316 | if (bgalfile) { // if Galactic cut
|
---|
317 | string pointfileI = pointfile;
|
---|
318 | MuTyV numf=0;
|
---|
319 | if(bgalNbFiles > 0) {
|
---|
320 | pointfileI += (string)numf + ".fits";
|
---|
321 | }
|
---|
322 | cout << "> Creating bgal FITSTOIReader object - InFile=" << pointfileI
|
---|
323 | << " bgaltoiname= " << bgaltoi << endl;
|
---|
324 | rbgal = new FITSTOIReader(pointfileI);
|
---|
325 | if(bgalNbFiles > 0)
|
---|
326 | for(int kff=1; kff<bgalNbFiles; kff++) {
|
---|
327 | numf=kff;
|
---|
328 | pointfileI = pointfile;
|
---|
329 | pointfileI += (string)numf + ".fits";
|
---|
330 | cout << " bgal FITSTOIReader.addFile( " << pointfileI << " )" << endl;
|
---|
331 | rbgal->addFile( pointfileI );
|
---|
332 | }
|
---|
333 |
|
---|
334 | }
|
---|
335 |
|
---|
336 | if (bgalfile && bgalcut) {
|
---|
337 | cout << " offes.SetBGalCut( " << bmin << "," << bmax << ")" << endl;
|
---|
338 | offes.SetBGalCut(bmin, bmax);
|
---|
339 | }
|
---|
340 | if (soff2_dofg && bgalfile && bgal2cut) {
|
---|
341 | cout << " offes2.SetBGalCut( " << bmin2 << "," << bmax2 << ")" << endl;
|
---|
342 | offes2->SetBGalCut(bmin, bmax);
|
---|
343 | }
|
---|
344 |
|
---|
345 | cout << "> Creating FITSTOIWriter OutFitsName= " << outfile << endl;
|
---|
346 | FITSTOIWriter w(outfile);
|
---|
347 |
|
---|
348 | CGT plombier(fgsegmented, wtoi);
|
---|
349 | plombier.SetDebugLevel(dbglev);
|
---|
350 |
|
---|
351 | cout << "> Connecting Processors through plombier ... " << endl;
|
---|
352 | string inname = "in";
|
---|
353 | string outname = "out";
|
---|
354 | plombier.Connect(r, intoi, cleaner, inname);
|
---|
355 | plombier.Connect(cleaner, "out", offes, "in");
|
---|
356 |
|
---|
357 | if (soff2_dofg && bgalcut && bgal2cut ) {
|
---|
358 | inname = "bgal";
|
---|
359 | outname = "bgalcopie";
|
---|
360 | plombier.Connect(*rbgal, bgaltoi, offes, inname);
|
---|
361 | plombier.Connect(offes, outname, *offes2, inname);
|
---|
362 | }
|
---|
363 | else if (soff2_dofg && bgal2cut) {
|
---|
364 | inname = "bgal";
|
---|
365 | plombier.Connect(*rbgal, bgaltoi, *offes2, inname);
|
---|
366 | }
|
---|
367 | else if (bgalcut) {
|
---|
368 | inname = "bgal";
|
---|
369 | plombier.Connect(*rbgal, bgaltoi, offes, inname);
|
---|
370 | }
|
---|
371 |
|
---|
372 | if (soff2_dofg) {
|
---|
373 | inname = "in";
|
---|
374 | outname = "out";
|
---|
375 | plombier.Connect(offes, outname, *offes2, inname);
|
---|
376 | }
|
---|
377 |
|
---|
378 | if (gfilt_fg) {
|
---|
379 | if (soff2_dofg)
|
---|
380 | plombier.Connect(*offes2, "out", *filt, "in");
|
---|
381 | else
|
---|
382 | plombier.Connect(offes, "out", *filt, "in");
|
---|
383 | plombier.Connect(*filt, "out", w, "outfcln", "", 0, fg_wrtflag);
|
---|
384 | }
|
---|
385 | else {
|
---|
386 | if (soff2_dofg)
|
---|
387 | plombier.Connect(*offes2, "out", w, "outcln", "", 0, fg_wrtflag);
|
---|
388 | else
|
---|
389 | plombier.Connect(offes, "out", w, "outcln", "", 0, fg_wrtflag);
|
---|
390 | }
|
---|
391 |
|
---|
392 | if (fg_wrtifo) {
|
---|
393 | plombier.Connect(offes, "incopie", w, "inflg", "", 1.5*wtoi, fg_wrtflag);
|
---|
394 | plombier.Connect(offes, "offset", w, "offset", "", 1.5*wtoi);
|
---|
395 | if (soff2_dofg)
|
---|
396 | plombier.Connect(*offes2, "offset", w, "offset2", "", 2*wtoi);
|
---|
397 | }
|
---|
398 | if (fg_wrtms) {
|
---|
399 | plombier.Connect(cleaner, "mean", w, "mean", "", 3*wtoi);
|
---|
400 | plombier.Connect(cleaner, "sigma", w, "sigma", "", 3*wtoi);
|
---|
401 | }
|
---|
402 |
|
---|
403 | cout << "> Plombier status before start" << endl;
|
---|
404 | cout << plombier ;
|
---|
405 |
|
---|
406 | cout << cleaner;
|
---|
407 | cout << offes;
|
---|
408 | if (soff2_dofg) cout << *offes2;
|
---|
409 | cout << w;
|
---|
410 |
|
---|
411 | PrtTim("starting processors");
|
---|
412 | plombier.Start();
|
---|
413 |
|
---|
414 |
|
---|
415 | // ------------------- Impression continu de stat ------------------------
|
---|
416 | if (fgprstat) {
|
---|
417 | ProcSampleCounter<SimpleOffsetEstimator> stats(offes);
|
---|
418 | stats.InfoMessage() = "aksj02/Info";
|
---|
419 | stats.PrintStats();
|
---|
420 | }
|
---|
421 | // -----------------------------------------------------------------------
|
---|
422 |
|
---|
423 | cout << cleaner;
|
---|
424 | cout << offes;
|
---|
425 | if (soff2_dofg) cout << *offes2;
|
---|
426 | if (gfilt_fg) cout << *filt;
|
---|
427 | cout << w;
|
---|
428 |
|
---|
429 | mgr->joinAll();
|
---|
430 | PrtTim("End threads");
|
---|
431 | if (bgalcut) delete rbgal;
|
---|
432 | if (gfilt_fg) delete filt;
|
---|
433 | if (soff2_dofg) delete offes2;
|
---|
434 | }
|
---|
435 | catch (PThrowable & exc) {
|
---|
436 | cerr << "\n aksj02: Catched Exception \n" << (string)typeid(exc).name()
|
---|
437 | << " - Msg= " << exc.Msg() << endl;
|
---|
438 | }
|
---|
439 | catch (const std::exception & sex) {
|
---|
440 | cerr << "\n aksj02: Catched std::exception \n"
|
---|
441 | << (string)typeid(sex).name() << endl;
|
---|
442 | }
|
---|
443 | catch (...) {
|
---|
444 | cerr << "\n aksj02: some other exception was caught ! " << endl;
|
---|
445 | }
|
---|
446 |
|
---|
447 | return(0);
|
---|
448 | }
|
---|