21 #pragma GCC system_header 28 #include "TObjArray.h" 29 #include "TObjString.h" 40 cout <<
"-----> CWB_Plugin_TShiftMisCal.C" << endl;
41 cout <<
"ifo " << ifo.Data() << endl;
42 cout <<
"type " << type << endl;
59 TObjArray*
token = mdcstring.Tokenize(
' ');
60 TObjString* iname = (TObjString*)token->At(11);
61 TString wavename = iname->GetString();
62 TObjString*
itime = (TObjString*)token->At(10);
63 TString wavetime = itime->GetString();
64 double mdctime = wavetime.Atof();
69 int cshift = 2*
int(gRandom->Integer(3)-1);
71 int starti = (mdctime - x->
start()-1.)*x->
rate();
72 int stopi = (mdctime - x->
start()+1.)*x->
rate();
74 if (starti<cshift) starti=cshift;
75 if (stopi>(
int)x->
size()-cshift) stopi=x->
size()-cshift;
77 if (starti<0) starti=0;
78 if (stopi>(
int)x->
size()+cshift) stopi=x->
size()+cshift;
81 cout <<
" Start: " << starti <<
" Stop : " << stopi <<
" cshift : " << cshift << endl;
82 for (
int jj=starti; jj<stopi; jj++) {
virtual void resize(unsigned int)
virtual void rate(double r)
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
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
string getmdcList(size_t n)
virtual void start(double s)
network ** net
NOISE_MDC_SIMULATION.
virtual size_t size() const