3 #pragma GCC system_header
10 #include "TObjArray.h"
11 #include "TObjString.h"
25 cout <<
"-----> CWB_Plugin_SNR.C" << endl;
26 cout <<
"ifo " << ifo.Data() << endl;
27 cout <<
"type " << type << endl;
40 cout <<
"CWB_Plugin_SNR.C - Error : this pluging is implemented only in simulation mode = 2" << endl;
47 TFile*
froot =
new TFile(snrFile,
"RECREATE");
49 cout <<
"CWB_Plugin_SNR.C - Error opening root file : " << snrFile << endl;
57 TTree* mdc_tree = mdc.
setTree();
59 char ciSNR[16];
sprintf(ciSNR,
"iSNR[%1d]/F",nIFO);
61 mdc_tree->Branch(
"iSNR", iSNR, ciSNR);
68 std::vector<size_t> mdc__ID = NET->
mdc__ID;
71 for (
int k=0;
k<
N;
k++) {
79 mdc.
output(mdc_tree,NET,1);
detector * getifo(size_t n)
param: detector index
void output(TTree *, network *, double, bool=true)
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
std::vector< size_t > mdc__ID
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *NET, WSeries< double > *x, TString ifo, int type)
COHERENCE.
double setVeto(double=5.)
param: time window around injections
std::vector< double > iSNR[NIFO_MAX]
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
double factors[FACTORS_MAX]