3 #pragma GCC system_header
10 #include "TObjArray.h"
11 #include "TObjString.h"
28 cout <<
"-----> CWB_Plugin_netEvent.C" << endl;
29 cout <<
"ifo " << ifo.Data() << endl;
30 cout <<
"type " << type << endl;
46 TTree*
net_tree = (TTree *) froot->Get(
"waveburst");
50 net_tree->Branch(
"UserParms",UserParms,TString::Format(
"UserParms[%i]/F",cfg->
nIFO));
57 cout <<
"CWB_Plugin_netEvent.C -> "
58 <<
"CWB_PLUGIN_OLIKELIHOOD implemented only for 2G" << endl;
64 cout <<
"-----> CWB_Plugin_netEvent.C -> "
65 <<
" gIFACTOR : " << gIFACTOR << endl;
68 float* gSLAGSHIFT=NULL;
IMPORT(
float*,gSLAGSHIFT)
82 outDump.ReplaceAll(
".root.tmp",
".txt");
84 TTree*
net_tree = (TTree *) froot->Get(
"waveburst");
87 net_tree->SetBranchAddress(
"UserParms",UserParms);
91 net_tree->Branch(
"UserParms",UserParms,TString::Format(
"UserParms[%i]/F",cfg->
nIFO));
95 for(
int k=0;
k<
K;
k++) {
101 int ID = size_t(
id.data[
j]+0.5);
124 if(cfg->
dump) EVT->
dopen(outDump.Data(),
const_cast<char*
>(
"a"),
false);
125 EVT->
output2G(net_tree,NET,ID,
k,ofactor);
147 TList *
files = (TList*)gROOT->GetListOfFiles();
156 while ((file=(TSystemFile*)
next())) {
157 fname = file->GetName();
159 if(fname.Contains(
"wave_")) {
160 froot=(TFile*)file;froot->cd();
162 outDump.ReplaceAll(
".root.tmp",
".txt");
167 cout <<
"CWB_Plugin_netEvent.C : Error - output root file not found" << endl;
171 cout <<
"CWB_Plugin_netEvent.C : Error - output root file not found" << endl;
void setSLags(float *slag)
fprintf(stdout,"start=%f duration=%f rate=%f\n", x.start(), x.size()/x.rate(), x.rate())
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
wavearray< double > get(char *name, size_t index=0, char atype='R', int type=1, bool=true)
param: string with parameter name param: index in the amplitude array, which define detector param: c...
void dopen(const char *fname, char *mode, bool header=true)
void output2G(TTree *, network *, size_t, int, double)
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *NET, WSeries< double > *x, TString ifo, int type)
COHERENCE.
#define IMPORT(TYPE, VAR)
TIter next(twave->GetListOfBranches())
TFile * GetRootFile(network *NET)
FILE * fP
injected reconstructed xcor waveform
netevent EVT(itree, nifo)
netcluster * getwc(size_t n)
param: delay index
double factors[FACTORS_MAX]