3 #pragma GCC system_header
10 #include "TObjArray.h"
11 #include "TObjString.h"
22 cout <<
"-----> CWB_Plugin_MakeScalogram.C" << endl;
23 cout <<
"ifo " << ifo.Data() << endl;
24 cout <<
"type " << type << endl;
39 bool isWavearray=
false;
56 cout <<
"Input data is a wavearray" << endl;
61 cout <<
"Input data is a wseries" << endl;
65 cout <<
"Decomposition Level : " << w->
getLevel() << endl;
74 WTS.
hist2D->GetYaxis()->SetRangeUser(flow, fhigh);
77 sprintf(fname,
"%s/scalogram_%s_%s_%d_%s_lev%d_job%lu.root",cfg->
dump_dir,data_type.Data(),ifo.Data(),
79 cout << endl <<
"Dump Scalogram : " << fname << endl << endl;
82 if(isWavearray)
delete w;
83 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)
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
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)
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
network ** net
NOISE_MDC_SIMULATION.
void Forward(int n=-1)
param: wavelet - n is number of steps (-1 means full decomposition)
Meyer< double > S(1024, 2)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.