Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TestFrame3.C
Go to the documentation of this file.
1 //
2 // Test Create FrList
3 // Author : Gabriele Vedovato
4 
5 #define FRLIST_NAME "input/H1_LDAS_C02_L2.frl"
6 #define CHANNEL_NAME "H1:LDAS-STRAIN"
7 
8 using namespace CWB;
9 
10 void TestFrame3() {
11 
13  x.start(942449664);
14  x.stop(x.start()+600);
15 
17  int nfiles=fr.getNfiles();
18  cout << "nfiles : " << nfiles << endl;
19  fr >> x;
20  fr.close();
21 
22  fr.open("TEST.gwf",CHANNEL_NAME,"WRITE");
23  fr << x;
24  fr.close();
25 
26  exit(0);
27 }
int nfiles
Definition: ced.hh:24
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 close()
Definition: frame.cc:278
CWB::frame fr(FRLIST_NAME)
virtual void start(double s)
Definition: wavearray.hh:119
#define CHANNEL_NAME
Definition: TestFrame3.C:6
int getNfiles()
Definition: frame.hh:92
virtual void stop(double s)
Definition: wavearray.hh:121
void TestFrame3()
Definition: TestFrame3.C:10
#define FRLIST_NAME
Definition: TestFrame3.C:5
void open(TString ioFile, TString chName="", Option_t *option="", bool onDisk=false, TString label=".gwf", unsigned int mode=0)
Definition: frame.cc:212
exit(0)