3 #pragma GCC system_header
10 #include "TObjArray.h"
11 #include "TObjString.h"
23 #define SGW_MDC_POLARIZATION "SCALAR"
24 #define SGW_SEARCH_POLARIZATION "SCALAR"
53 cout <<
"-----> macro/CWB_Plugin_SGW.C" << endl;
54 cout <<
"ifo " << ifo.Data() << endl;
55 cout <<
"type " << type << endl;
63 if(gOPT.search_polarization==
"SCALAR") cfg->
gamma = -1.0;
106 for(
int j=0;
j<token->GetEntries();
j++) {
108 TObjString* tok = (TObjString*)token->At(
j);
109 TString stok = tok->GetString();
111 if(stok.Contains(
"--sgw_mdc_polarization=")) {
112 gOPT.mdc_polarization=stok;
113 gOPT.mdc_polarization.Remove(0,gOPT.mdc_polarization.Last(
'=')+1);
114 gOPT.mdc_polarization.ToUpper();;
116 if(gOPT.mdc_polarization!=
"TENSOR" && gOPT.mdc_polarization!=
"SCALAR") {
117 cout <<
"CWB_Plugin_SGW Error : parameter sgw_mdc_polarization must be : SCALAR/TENSOR" << endl;
121 if(stok.Contains(
"--sgw_search_polarization=")) {
122 gOPT.search_polarization=stok;
123 gOPT.search_polarization.Remove(0,gOPT.search_polarization.Last(
'=')+1);
124 gOPT.search_polarization.ToUpper();;
126 if(gOPT.search_polarization!=
"TENSOR" && gOPT.search_polarization!=
"SCALAR") {
127 cout <<
"CWB_Plugin_SGW Error : parameter sgw_search_polarization must be : SCALAR/TENSOR" << endl;
144 cout <<
"-----------------------------------------" << endl;
145 cout <<
"SGW config options " << endl;
146 cout <<
"-----------------------------------------" << endl << endl;
147 cout <<
"SGW_MDC_POLARIZATION " << gOPT.mdc_polarization << endl;
148 cout <<
"SGW_SEARCH_POLARIZATION " << gOPT.search_polarization << endl;
detector * getifo(size_t n)
param: detector index
void setAntenna(detector *)
param: detector (use theta, phi index array)
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 PrintUserOptions(CWB::config *cfg)
void setPolarization(POLARIZATION polarization=TENSOR)
network ** net
NOISE_MDC_SIMULATION.
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
#define SGW_SEARCH_POLARIZATION
void setDelay(const char *="L1")
void ReadUserOptions(TString options)
void setSkyMaps(double, double=0., double=180., double=0., double=360.)
param: sky map granularity step, degrees param: theta begin, degrees param: theta end...
#define SGW_MDC_POLARIZATION