21 #pragma GCC system_header 30 #include "TObjArray.h" 31 #include "TObjString.h" 35 #define L1_PHS_CAL_ERR 10. // 10 degrees in phase uncertainty 36 #define H1_PHS_CAL_ERR 10. // 10 degrees in phase uncertainty 37 #define V1_PHS_CAL_ERR 10. // 10 degrees in phase uncertainty 52 cout <<
"-----> CWB_Plugin_PhaseMisCal.C" << endl;
53 cout <<
"ifo " << ifo.Data() << endl;
54 cout <<
"type " << type << endl;
58 cout <<
"APPLY PHASE MIS-CALIBRATION !!!" << endl;
65 TObjArray*
token = mdcstring.Tokenize(
' ');
66 TObjString* iname = (TObjString*)token->At(11);
67 TString wavename = iname->GetString();
68 TObjString*
itime = (TObjString*)token->At(10);
69 TString wavetime = itime->GetString();
70 double mdctime = wavetime.Atof();
77 if (starti<0) starti=0;
78 if (stopi>(
int)x->
size()) stopi=x->
size();
84 pShift *= (2*gRandom->Integer(2)-1.);
89 for (
int jj=starti; jj<stopi; jj++) X[jj-starti] = x->
data[jj];
92 for (
int jj=starti; jj<stopi; jj++) x->
data[jj] = X[jj-starti];
96 TString gfile=
"CWB_Plugin_PhaseMisCal_Plot_MDC_"+ifo+
".root";
99 cout <<
"CWB_Plugin_PhaseMisCal.C : created plot file name : " << gfile << endl;
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<< "\ 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
string getmdcList(size_t n)
virtual void start(double s)
network ** net
NOISE_MDC_SIMULATION.
virtual size_t size() const
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)