3 #define ADV_LIGO_PSD "detectors_PSD/LIGO_zero_det_HP.txt" 9 #define OFILE "inspirals.root" 11 #define nWAVEFORM 1000 25 cout <<
"PSD : " <<
" rate : " << psd.
rate() <<
" size : " << psd.
size() << endl;
34 inspOptions =
"--time-step 60.0 --time-interval 3 ";
35 inspOptions+=
"--l-distr random ";
36 inspOptions+=
"--gps-start-time 931072130 --gps-end-time 933491330 ";
37 inspOptions+=
"--d-distr volume --m-distr totalMassRatio --i-distr uniform ";
38 inspOptions+=
"--f-lower 10.000000 ";
39 inspOptions+=
"--min-mass1 25.000000 --max-mass1 225.000000 ";
40 inspOptions+=
"--min-mass2 25.000000 --max-mass2 225.000000 ";
41 inspOptions+=
"--min-mtotal 50.000000 --max-mtotal 250.000000 ";
42 inspOptions+=
"--min-mratio 0.25 --max-mratio 1.000000 ";
43 inspOptions+=
"--min-distance 1000000.0 --max-distance 1500000.0 ";
44 inspOptions+=
"--approximant EOBNRv2pseudoFourPN --disable-spin ";
45 inspOptions+=
"--taper-injection start --seed 123456789 ";
46 inspOptions+=
"--output inspirals.xml ";
49 MDC.SetInspiral(
"EOBNRv2",inspOptions);
53 TString inspOptions=
"--xml inspirals.xml";
54 MDC.SetInspiral(
"EOBNRv2",inspOptions);
56 int gps_start_time = 931072131;
57 int gps_end_time = gps_start_time+100;
68 cout <<
n <<
" gps_start_time " << gps_start_time <<
" gps_end_time " << gps_end_time << endl;
69 hp = MDC.GetInspiral(
"hp",gps_start_time,gps_end_time);
70 cout <<
"size : " << hp.
size() <<
" rate : " << hp.
rate() <<
" start : " << (
int)hp.
start() << endl;
74 gps_end_time = gps_start_time+100;
99 cout << w.
start() <<
" " << bT <<
" " << eT <<
" " << eT-bT << endl;
102 int size = (eT-bT)/dt;
117 gps_start_time += 50;
118 gps_end_time = gps_start_time+100;
127 #define FREQ_RES 0.125 // Hz 134 if (!in.good()) {cout <<
"ReadDetectorPSD - Error Opening File : " << fName.Data() << endl;
exit(1);}
135 cout <<
"ReadDetectorPSD - Read File : " << fName.Data() << endl;
140 in.getline(str,1024);
141 if (!in.good())
break;
142 if(str[0] !=
'#') size++;
145 in.clear(ios::goodbit);
146 in.seekg(0, ios::beg);
154 if (!in.good())
break;
156 {cout <<
"ReadDetectorPSD - input sensitivity file : " << fName.Data()
157 <<
" contains zero at frequency : " << ifr.
data[
cnt] <<
" Hz " << endl;
exit(1);}
186 for(
int i=0;
i<
N;
i++) {avr+=
i*x[
i]*x[
i]; E+=x[
i]*x[
i];}
193 double sum = ((M>=0)&&(M<N)) ? x[M]*x[M] : 0.;
194 for(
int j=1;
j<
N;
j++) {
195 a = ((M-
j>=0)&&(M-j<N)) ? x[M-j] : 0.;
196 b = ((M+j>=0)&&(M+j<N)) ? x[M+j] : 0.;
virtual void rate(double r)
wavearray< double > a(hp.size())
double GetBoundaries(wavearray< double > x, double P, double &bT, double &eT)
cout<< endl;cout<< "ts size = "<< ts.size()<< " ts rate = "<< ts.rate()<< endl;tf.Forward(ts, wdm);int levels=tf.getLevel();cout<< "tf size = "<< tf.size()<< endl;double dF=tf.resolution();double dT=1./(2 *dF);cout<< "rate(hz) : "<< RATE<< "\ layers : "<< nLAYERS<< "\ dF(hz) : "<< dF<< "\ dT(ms) : "<< dT *1000.<< endl;int itime=TIME_PIXEL_INDEX;int ifreq=FREQ_PIXEL_INDEX;int index=(levels+1) *itime+ifreq;double time=itime *dT;double freq=(ifreq >0) ? ifreq *dF :dF/4;cout<< endl;cout<< "PIXEL TIME = "<< time<< " sec "<< endl;cout<< "PIXEL FREQ = "<< freq<< " Hz "<< endl;cout<< endl;wavearray< double > x
wavearray< double > psd(33)
virtual void start(double s)
cout<< "SNR "<< xsnr<< endl;wavearray< double > f
virtual size_t size() const
wavearray< double > ReadDetectorPSD(TString fName)
void CreateWhitenedInspirals()