5 #define HEN_LIST "config/HEN_list_2009_2010.txt" 6 #define ONSOURCE_TIME 1000 // sec 8 cout <<
"-----> CWB_Plugin_HEN_SIM_Config.C" << endl;
29 cout <<
"CWB_Plugin_HEN_SIM_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_SIM_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_SIM_Config.C - no trigger in the range : " << xtart <<
" " << xstop << endl;
76 cout <<
"CWB_Plugin_HEN_SIM_Config.C - trigger found at gps : " 77 << GPS <<
" ra : " << RA <<
" dec : " << DEC <<
" radius : " << RADIUS << endl;
93 par[0].name=
"frequency"; par[0].value=100.;
94 par[1].name=
"Q"; par[1].value=8.9;
97 par[0].
name=
"frequency"; par[0].value=153.;
98 par[1].name=
"Q"; par[1].value=8.9;
101 par[0].
name=
"frequency"; par[0].value=1053.;
102 par[1].name=
"Q"; par[1].value=9;
105 par[0].
name=
"frequency"; par[0].value=1304.;
106 par[1].name=
"Q"; par[1].value=9;
122 par[0].name=
"theta"; par[0].value=
DEC;
123 par[1].name=
"phi"; par[1].value=
RA;
124 par[2].name=
"entries"; par[2].value=1000;
132 sprintf(options,
"--dec %f --ra %f --radius %f",DEC,RA,RADIUS);
134 CWB->SetSkyMaskCC(net,
cfg,options);
void SetInjRate(double inj_rate=MDC_INJ_RATE)
sprintf(options,"--dec %f --ra %f --radius %f", DEC, RA, RADIUS)
CWB_PLUGIN_IMPORT(network **, net)
mdcid AddWaveform(MDC_TYPE mdc_type, vector< mdcpar > par, TString uname="")
void SetSkyDistribution(MDC_DISTRIBUTION sky_distribution, vector< mdcpar > par, int seed=0, bool add=false)
void SetInjJitter(double inj_jitter=MDC_INJ_JITTER)
network ** net
NOISE_MDC_SIMULATION.
void SetInjHrss(double inj_hrss=MDC_INJ_HRSS)