Logo coherent WaveBurst  
Library Reference Guide
Logo
ReadAndDrawMDC.C
Go to the documentation of this file.
1 // Draw Waveform from text file
2 // Author : Gabriele Vedovato
3 //
4 
6 
7 void ReadAndDrawMDC() {
8 
9  MDC = new CWB::mdc;
10 
11  TString fName = "../waveforms/ott-burrow/s25WW.h.dat";
13  MDC->SetInjLength(1.5);
14  MDC->ReadWaveform(x, fName);
15  //MDC->Draw(x);
16  //MDC->Draw(x,MDC_FFT);
17  MDC->Draw(x,MDC_TF);
18 
19  //exit(0);
20 }
watplot * Draw(TString name, int id=0, TString polarization="hp", MDC_DRAW type=MDC_TIME, TString options="ALP", Color_t color=kBlack)
Definition: mdc.cc:2317
TString("c")
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
TString mdc[4]
void SetInjLength(double inj_length=MDC_INJ_LENGTH)
Definition: mdc.hh:304
Definition: mdc.hh:204
Definition: mdc.hh:248
CWB::mdc * MDC
Definition: ReadAndDrawMDC.C:5
void ReadAndDrawMDC()
Definition: ReadAndDrawMDC.C:7
void ReadWaveform(wavearray< double > &x, TString fName, double srate)
Definition: mdc.cc:1877
char fName[256]