5 #define HEN_LIST "config/HEN_list_2009_2010.txt" 6 #define ONSOURCE_TIME 1000 // sec 8 cout <<
"-----> CWB_Plugin_HEN_BKG_Config.C" << endl;
29 cout <<
"CWB_Plugin_HEN_BKG_Config.C - Error Opening File : " <<
HEN_LIST << endl;
36 if (!in.good())
break;
37 if(str[0] ==
'#')
continue;
39 if(token->GetEntries()!=16) {
40 cout <<
"CWB_Plugin_HEN_BKG_Config.C - bad line format : " << str << endl;
46 otoken = (TObjString*)token->At(2);
47 stoken = otoken->GetString();
50 otoken = (TObjString*)token->At(3);
51 stoken = otoken->GetString();
54 otoken = (TObjString*)token->At(4);
55 stoken = otoken->GetString();
58 otoken = (TObjString*)token->At(5);
59 stoken = otoken->GetString();
60 RADIUS = stoken.Atof();
63 if(GPS1>xstart && GPS1<=xstop)
break;
66 if(GPS2>xstart && GPS2<=xstop)
break;
73 cout <<
"CWB_Plugin_HEN_BKG_Config.C - no trigger in the range : " << xtart <<
" " << xstop << endl;
76 cout <<
"CWB_Plugin_HEN_BKG_Config.C - trigger found at gps : " 77 << GPS <<
" ra : " << RA <<
" dec : " << DEC <<
" radius : " << RADIUS << endl;
CWB_PLUGIN_IMPORT(network **, net)
sprintf(cfg->skyMaskCCFile,"--theta %f --phi %f --radius %f", DEC, RA, RADIUS)
network ** net
NOISE_MDC_SIMULATION.
int SetSkyMask(network *net, CWB::config *cfg, char *options, char skycoord, double skyres=-1)