3 #pragma GCC system_header
10 #include "TObjArray.h"
11 #include "TObjString.h"
22 cout <<
"-----> CWB_Plugin_MakeSpectrogram.C" << endl;
23 cout <<
"ifo " << ifo.Data() << endl;
24 cout <<
"type " << type << endl;
39 bool isWavearray=
false;
55 cout <<
"Input data is a wavearray" << endl;
57 cout <<
"Input data is a wseries" << endl;
62 cout <<
"Decomposition Level : " << level << endl;
75 stft.
Draw(start,stop,flow,fhigh,0,0,1);
78 sprintf(fname,
"%s/spectrogram_%s_%s_%d_%s_job%lu.root",cfg->
dump_dir,data_type.Data(),ifo.Data(),
80 cout << endl <<
"Dump Spectrogram : " << fname << endl << endl;
85 if(
TString(ifo).CompareTo(net->
ifoName[nIFO-1])==0) gSystem->Exit(0);
std::vector< char * > ifoName
virtual size_t size() const
virtual void rate(double r)
void Print(TString pname)
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
virtual void start(double s)
network ** net
NOISE_MDC_SIMULATION.
void Draw(double t1=0.0, double t2=0.0, double f1=0.0, double f2=0.0, double z1=0.0, double z2=0.0, int dpaletteId=DUMMY_PALETTE_ID, Option_t *option="colfz")
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
void Forward(int n=-1)
param: wavelet - n is number of steps (-1 means full decomposition)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void Inverse(int n=-1)
param: n - number of steps (-1 means full reconstruction)