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;
23 cout <<
"CWB_Plugin_HEN_BKG_Config.C - Error Opening File : " <<
HEN_LIST << endl;
30 if (!in.good())
break;
31 if(str[0] ==
'#')
continue;
33 if(token->GetEntries()!=16) {
34 cout <<
"CWB_Plugin_HEN_BKG_Config.C - bad line format : " << str << endl;
40 otoken = (TObjString*)token->At(2);
41 stoken = otoken->GetString();
44 otoken = (TObjString*)token->At(3);
45 stoken = otoken->GetString();
48 otoken = (TObjString*)token->At(4);
49 stoken = otoken->GetString();
52 otoken = (TObjString*)token->At(5);
53 stoken = otoken->GetString();
54 RADIUS = stoken.Atof();
57 if(GPS1>xstart && GPS1<=xstop)
break;
60 if(GPS2>xstart && GPS2<=xstop)
break;
67 cout <<
"CWB_Plugin_HEN_BKG_Config.C - no trigger in the range : " << xtart <<
" " << xstop << endl;
70 cout <<
"CWB_Plugin_HEN_BKG_Config.C - trigger found at gps : "
71 << 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)