21 #pragma GCC system_header 28 #include "TObjArray.h" 29 #include "TObjString.h" 53 #define SN_STRAIN_FILE_NAME "" 54 #define SN_SEED 150914 86 cout <<
"-----> CWB_Plugin_SimNoise.C" << endl;
87 cout <<
"ifo " << ifo.Data() << endl;
88 cout <<
"type " << type << endl;
104 if(gOPT.seed[
n]==gOPT.seed[
m]) {
105 cout <<
"CWB_Plugin_SimNoise Error : seed must me unique !!!!" << endl;
122 cout <<
"CWB_Plugin_SimNoise " << net->
getifo(ifoID)->
Name <<
" -> seed " << seed <<
" - " << fName << endl;
135 cout <<
"-----------------------------------------" << endl;
136 cout <<
"SN config options " << endl;
137 cout <<
"-----------------------------------------" << endl << endl;
140 cout <<
"SN_STRAIN_FILE_NAME " << cfg->
ifo[
n] <<
" " << gOPT.strain_file_name[
n] << endl;
141 cout <<
"SN_SEED " << cfg->
ifo[
n] <<
" " << gOPT.seed[
n] << endl;
150 int n_strain_file_name=0;
152 if(options.CompareTo(
"")!=0) {
153 cout << options << endl;
154 if(!options.Contains(
"--")) {
157 for(
int j=0;
j<token->GetEntries();
j++){
159 TObjString* tok = (TObjString*)token->At(
j);
160 TString stok = tok->GetString();
162 if(stok.Contains(
"sn_strain_file_name=")) {
163 TString sn_strain_file_name=stok;
164 sn_strain_file_name.Remove(0,sn_strain_file_name.Last(
'=')+1);
165 gOPT.strain_file_name[n_strain_file_name]=sn_strain_file_name;
166 if(n_strain_file_name<(
NIFO_MAX-1)) n_strain_file_name++;
169 if(stok.Contains(
"sn_seed=")) {
171 sn_seed.Remove(0,sn_seed.Last(
'=')+1);
172 if(sn_seed.IsDigit()) gOPT.seed[n_seed]=sn_seed.Atoi();
detector * getifo(size_t n)
param: detector index
virtual void resize(unsigned int)
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
virtual void start(double s)
void PrintUserOptions(CWB::config *cfg)
network ** net
NOISE_MDC_SIMULATION.
virtual size_t size() const
void ReadUserOptions(TString options)
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
#define SN_STRAIN_FILE_NAME