3 #pragma GCC system_header
12 #include "TObjArray.h"
13 #include "TObjString.h"
17 #define L1_PHS_CAL_ERR 10. // 10 degrees in phase uncertainty
18 #define H1_PHS_CAL_ERR 10. // 10 degrees in phase uncertainty
19 #define V1_PHS_CAL_ERR 10. // 10 degrees in phase uncertainty
34 cout <<
"-----> CWB_Plugin_PhaseMisCal.C" << endl;
35 cout <<
"ifo " << ifo.Data() << endl;
36 cout <<
"type " << type << endl;
40 cout <<
"APPLY PHASE MIS-CALIBRATION !!!" << endl;
47 TObjArray*
token = mdcstring.Tokenize(
' ');
48 TObjString* iname = (TObjString*)token->At(11);
49 TString wavename = iname->GetString();
50 TObjString*
itime = (TObjString*)token->At(10);
51 TString wavetime = itime->GetString();
52 double mdctime = wavetime.Atof();
59 if (starti<0) starti=0;
60 if (stopi>(
int)x->
size()) stopi=x->
size();
66 pShift *= (2*gRandom->Integer(2)-1.);
71 for (
int jj=starti; jj<stopi; jj++) X[jj-starti] = x->
data[jj];
74 for (
int jj=starti; jj<stopi; jj++) x->
data[jj] = X[jj-starti];
78 TString gfile=
"CWB_Plugin_PhaseMisCal_Plot_MDC_"+ifo+
".root";
81 cout <<
"CWB_Plugin_PhaseMisCal.C : created plot file name : " << gfile << endl;
virtual size_t size() const
virtual void rate(double r)
static void PhaseShift(wavearray< double > &x, double pShift=0.)
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
string getmdcList(size_t n)
virtual void start(double s)
network ** net
NOISE_MDC_SIMULATION.
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
gwavearray< double > * gx
void Draw(GWAT_DRAW type=GWAT_TIME, TString options="ALP", Color_t color=kBlack)