5 #define WAVEFORM_GA_DIR "/home/waveburst/WAVEFORMS/GA"
6 #define WAVEFORM_SG_DIR "/home/waveburst/WAVEFORMS/SG"
7 #define WAVEFORM_WNB_DIR "/home/waveburst/WAVEFORMS/WNB"
15 #define DRAW_WF "SG1304Q100"
36 for(
int n=0;
n<fileList.size();
n++) {
46 for(
int n=0;
n<fileList.size();
n++) {
54 cout <<
"read WNB waveform file names ..." << endl;
56 for(
int n=0;
n<fileList.size();
n++) {
61 cout <<
"generate WNB with all possible hp,hx permutations ..." << endl;
63 cout <<
"extract all waveforms belonging to the WNB type " << MDC->
wfList[
i].name <<
" ..." << endl;
64 int N = MDC->
wfList[
i].list.size()+1;
67 for(
int j=0;
j<
N;
j++) {
68 for(
int k=0;
k<
N;
k++) {
79 wf.
par[1].name=
"hp"; wf.
par[1].value=
j;
80 wf.
par[2].name=
"hx"; wf.
par[2].value=
k;
86 for(
int j=0;
j<vWF.size();
j++) {
88 vWF[
j].par[0].name=
"wf"; vWF[
j].par[0].value=
j+1;
106 cout <<
i <<
" " << MDC->
wfList[
i].name.Data()
107 <<
" " << MDC->
wfList[
i].list.size()+1 << endl;
127 vector<mdcpar>
par(3);
131 mdc_name.Remove(0,mdc_name.Last(
'/')+1);
132 if(mdc_name.Contains(
".")) mdc_name.Remove(mdc_name.Last(
'.'));
133 if(mdc_name.Contains(
"~")) mdc_name.Remove(mdc_name.Last(
'~'));
watplot * Draw(TString name, int id=0, TString polarization="hp", MDC_DRAW type=MDC_TIME, TString options="ALP", Color_t color=kBlack)
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<< "\t layers : "<< nLAYERS<< "\t dF(hz) : "<< dF<< "\t 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
void SetInjLength(double inj_length=MDC_INJ_LENGTH)
mdcid AddWaveform(MDC_TYPE mdc_type, vector< mdcpar > par, TString uname="")
vector< waveform > wfList
cout<< "Starting reading output directory ..."<< endl;vector< TString > fileList
void ReadWaveform(wavearray< double > &x, TString fName, double srate)