Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CWB_Plugin_Test.C
Go to the documentation of this file.
1 #define XIFO 4
2 
3 #pragma GCC system_header
4 
5 #include "cwb.hh"
6 #include "config.hh"
7 #include "network.hh"
8 #include "wavearray.hh"
9 #include "TString.h"
10 #include "TObjArray.h"
11 #include "TObjString.h"
12 #include "TRandom.h"
13 /*
14 #define IMPORT_TST(TYPE,VAR,SIZE1,SIZE2) { \
15  TGlobal* global = gROOT->GetGlobal(#VAR,true); \
16  if(global!=NULL) memcpy(&VAR,global->GetAddress(),SIZE1*SIZE2*sizeof(TYPE)); }
17 */
18 void
20 
21 // Test
22 
23  cout << "CWB PLUGIN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << endl;
24 
25  cout << "ifo " << ifo.Data() << endl;
26  cout << "type " << type << endl;
27 
28 /*
29  int check=0;
30  int check2=0;
31  cfg->configPlugin.Exec();
32  //TGlobal* global = (TGlobal*)gROOT->GetGlobal("check",true);
33  //check = *(int*)global->GetAddress();
34  //check = *(int*)((TGlobal*)gROOT->GetGlobal("check",true))->GetAddress();
35  //check = *(int*)gROOT->GetGlobal("check",true)->GetAddress();
36  IMPORT(int,check,1,1);
37  //memcpy((void*)&check,(void*)&check2,sizeof(check));
38 
39 // TGlobal* global = gROOT->GetGlobal("check",true);
40 // if(global!=NULL) memcpy((void*)&check,global->GetAddress(),sizeof(check));
41 
42  cout << "check " << check << endl;
43 
44  gSystem->Exit(0);
45 */
46  return;
47 }
CWB::config * cfg
Definition: TestCWB_Plugin.C:5
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<< "\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
char ifo[NIFO_MAX][8]
network ** net
NOISE_MDC_SIMULATION.
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
jfile
Definition: cwb_job_obj.C:25