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;
23 cout <<
"CWB_Plugin_HEN_SIM_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_SIM_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_SIM_Config.C - no trigger in the range : " << xtart <<
" " << xstop << endl;
70 cout <<
"CWB_Plugin_HEN_SIM_Config.C - trigger found at gps : "
71 << GPS <<
" ra : " << RA <<
" dec : " << DEC <<
" radius : " << RADIUS << endl;
87 par[0].name=
"frequency"; par[0].value=100.;
88 par[1].name=
"Q"; par[1].value=8.9;
91 par[0].
name=
"frequency"; par[0].value=153.;
92 par[1].name=
"Q"; par[1].value=8.9;
95 par[0].
name=
"frequency"; par[0].value=1053.;
96 par[1].name=
"Q"; par[1].value=9;
99 par[0].
name=
"frequency"; par[0].value=1304.;
100 par[1].name=
"Q"; par[1].value=9;
116 par[0].name=
"theta"; par[0].value=
DEC;
117 par[1].name=
"phi"; par[1].value=
RA;
118 par[2].name=
"entries"; par[2].value=1000;
126 sprintf(options,
"--dec %f --ra %f --radius %f",DEC,RA,RADIUS);
128 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)