21 #pragma GCC system_header 29 #include "TObjArray.h" 30 #include "TObjString.h" 81 cout <<
"-----> CWB_Plugin_O3aDataConditioning.C ";
82 cout <<
"type " << type << endl;
86 cout <<
"CWB_Plugin_O3aConditioning Error - this plugin works only with 2G" << endl;
95 if(
id<0) {cout <<
"Plugin : Error - bad ifo id" << endl; gSystem->Exit(1);}
97 if(!gOPT.ifo[
id])
return;
105 double edge = net->
Edge;
111 for(
int i=0;
i<u.
size();
i++) {
120 double um = u.
median(edge*R,(T-edge)*R);
121 double vm = v.
median(edge*R,(T-edge)*R);
125 for(
int i=0;
i<u.
size();
i++) {
129 if(vr<0 || aa<0) aa = 0;
139 for(
int i=0;
i<u.
size();
i++) {
143 for(
int i=n+m;
i<u.
size()-n-
m;
i++) {
144 for(
int j=0;
j<
m;
j++) {
153 for(
int i=m+1;
i<u.
size()-m-1;
i++) {
156 for(
int j=8;
j<
m;
j++) {
160 aa = sp<sm ?
sm : sp;
173 *hot =
c; *hot +=
s; *hot *= 0.5;
195 if(options.CompareTo(
"")!=0) {
196 cout << options << endl;
197 if(!options.Contains(
"--")) {
200 for(
int j=0;
j<token->GetEntries();
j++){
202 TObjString* tok = (TObjString*)token->At(
j);
203 TString stok = tok->GetString();
205 if(stok.Contains(
"o3ac_ifo=")) {
207 o3ac_ifo.Remove(0,o3ac_ifo.Last(
'=')+1);
208 if(o3ac_ifo==
"enable") gOPT.ifo[n_ifo]=
true;
209 if(o3ac_ifo==
"disable") gOPT.ifo[n_ifo]=
false;
219 cout <<
"-----------------------------------------" << endl;
220 cout <<
"O3aConditioning config options " << endl;
221 cout <<
"-----------------------------------------" << endl << endl;
223 if(gOPT.ifo[
n]==
true) cout <<
"O3aC_IFO " << cfg->
ifo[
n] <<
" enabled" << endl;
224 if(gOPT.ifo[
n]==
false) cout <<
"O3aC_IFO " << cfg->
ifo[
n] <<
" disabled" << endl;
std::vector< char * > ifoName
detector * getifo(size_t n)
param: detector index
virtual void resize(unsigned int)
void PrintUserOptions(CWB::config *cfg)
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
WDM< double > wdm(nLAYERS, nLAYERS, 6, 10)
virtual void start(double s)
network ** net
NOISE_MDC_SIMULATION.
virtual size_t size() const
wavearray< double > hot[2]
wavearray< double > * getHoT()
param: no parameters
int getLayer(wavearray< DataType_t > &w, double n)
param: n - layer number
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
virtual void lprFilter(wavearray< double > &)
virtual void stop(double s)
void Forward(int n=-1)
param: wavelet - n is number of steps (-1 means full decomposition)
void ReadUserOptions(TString options)
virtual double median(size_t=0, size_t=0) const
void Inverse(int n=-1)
param: n - number of steps (-1 means full reconstruction)
void putLayer(wavearray< DataType_t > &, double n)
param: n - layer number
void ResetUserOptions(network *net, CWB::config *cfg)