Logo coherent WaveBurst  
Library Reference Guide
Logo
CWB_Plugin_Test.C
Go to the documentation of this file.
1 /*
2 # Copyright (C) 2019 Gabriele Vedovato
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17 
18 
19 #define XIFO 4
20 
21 #pragma GCC system_header
22 
23 #include "cwb.hh"
24 #include "config.hh"
25 #include "network.hh"
26 #include "wavearray.hh"
27 #include "TString.h"
28 #include "TObjArray.h"
29 #include "TObjString.h"
30 #include "TRandom.h"
31 /*
32 #define IMPORT_TST(TYPE,VAR,SIZE1,SIZE2) { \
33  TGlobal* global = gROOT->GetGlobal(#VAR,true); \
34  if(global!=NULL) memcpy(&VAR,global->GetAddress(),SIZE1*SIZE2*sizeof(TYPE)); }
35 */
36 void
38 
39 // Test
40 
41  cout << "CWB PLUGIN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << endl;
42 
43  cout << "ifo " << ifo.Data() << endl;
44  cout << "type " << type << endl;
45 
46 /*
47  int check=0;
48  int check2=0;
49  cfg->configPlugin.Exec();
50  //TGlobal* global = (TGlobal*)gROOT->GetGlobal("check",true);
51  //check = *(int*)global->GetAddress();
52  //check = *(int*)((TGlobal*)gROOT->GetGlobal("check",true))->GetAddress();
53  //check = *(int*)gROOT->GetGlobal("check",true)->GetAddress();
54  IMPORT(int,check,1,1);
55  //memcpy((void*)&check,(void*)&check2,sizeof(check));
56 
57 // TGlobal* global = gROOT->GetGlobal("check",true);
58 // if(global!=NULL) memcpy((void*)&check,global->GetAddress(),sizeof(check));
59 
60  cout << "check " << check << endl;
61 
62  gSystem->Exit(0);
63 */
64  return;
65 }
CWB::config * cfg
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
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:43