Logo coherent WaveBurst  
Library Reference Guide
Logo
test_config1.C
Go to the documentation of this file.
1 {
2 #ifndef CWB_PARAMETER_FILE_TEST
3 #define CWB_PARAMETER_FILE_TEST
4 
5  #include "xroot.hh" // defines macro to manage ROOT5 vs ROOT6
6 
7 
8  char analysis[8] = "1G"; // 1G or 2G analysis
9 
10  int nIFO = 0; // size of network starting with first detector ifo[]
11  SEARCH(char) = 'r'; // see description below
12 
13  char ifo[NIFO_MAX][8];
14  char refIFO[4]; // reference IFO
15  // user define detectors list : is selected if detectorParams[n].name!=""
16  // {name, latitude, longitude, elevation, AltX, AzX, AltY, AzY}
18 
19  // cWB settings
20 
21  size_t rateANA = 4096; // analysis data rate
22  double bpp = 0.000100; // probability for pixel selection
23  double Tgap = 0.050000; // time gap between clusters (sec)
24  double Fgap = 128.000000; // frequency gap between clusters (Hz)
25  double fLow = 64.000000; // low frequency of the search
26  double fHigh = 2048.000000; // high frequency of the search
27  double fResample = 0.000000; // if zero resampling is not applied
28  double Acore = 1.414214; // threshold for selection of core pixels
29  double Tlpr = 120.000000; // training time for LPR filter
30 
31  double x2or = 1.500000; // 2 OR threshold
32  double netRHO = 3.500000; // threshold on rho
33  double netCC = 0.500000; // threshold on network correlation
34 
35  // wavelet transformation settings
36 
37  int levelR = 2; // resampling level
38  int levelF = 6; // level where second LPR filter is applied
39  int levelD = 8; // decomposition level
40  int l_low = 3; // low frequency resolution level
41  int l_high = 8; // high frequency resolution level
42 
43  // time shift analysis settings
44 
45  // segments
46  double segLen = 600.000000; // Segment length [sec]
47  double segMLS = 300.000000; // Minimum Segment Length after DQ_CAT1 [sec]
48  double segTHR = 30.000000; // Minimum Segment Length after DQ_CAT2 [sec]
49  double segEdge = 8.000000; // wavelet boundary offset [sec]
50 
51  // lags
52  size_t lagSize = 1; // number of lags (simulation=1)
53  double lagStep = 1.000000; // time interval between lags [sec]
54  size_t lagOff = 0; // first lag id (lagOff=0 - include zero lag )
55  size_t lagMax = 150; // 0/>0 - standard/extended lags
56  char* lagFile = NULL; // lag file list
57  char lagMode[2] = "w"; // w/r - write/read lag list
58  size_t* lagSite = NULL; // site index starting with 0
59  double shift[NIFO_MAX] = {0,0,0,0,0,0,0,0 }; // use for standard shifts
60 
61  // multi lags
62  int mlagStep = 0; // if mlagStep=0 then 'standard lag mode' else cicle over lags with step mlagStep
63 
64  // super lags
65  int slagSize = 0; // number of super lags (simulation=1) - if slagSize=0 -> Igor Segments
66  int slagMin = 0; // if slagMax=0 -> slagMin must be < slagMax
67  int slagMax = 0; // if slagMax=0
68  int slagOff = 0; // first slag id (slagOff=0 - include zero slag )
69  size_t* slagSite = NULL; // site index starting with 0
70 
71  // whitening parameters
72  double whiteWindow = 60.000000; // time window dT. if = 0 - dT=T, where T is wavearray duration
73  double whiteStride = 20.000000; // noise sampling interval (window stride)
74 
75  int Psave = 0; // Skymap probability pixels to be saved in the final output root file
76 
77  // DC corrections
78  double dcCal[NIFO_MAX] = {0,0,0,0,0,0,0,0 }; // use for standard dcCals
79 
80  // simulation parameters
81  int simulation = 0; // 1 for simulation, 0 for production
82  double gap = 5.000000; // analysis time window for injections
83  int nfactor = 0; // number of strain factors
84  double factors[100]; // array of strain factors
85 
86  // noise shift data
87  double dataShift[NIFO_MAX] = {0,0,0,0,0,0,0,0 }; // use for standard dataShifts
88 
89  // use this parameter to shift in time the injections (sec)
90  // use {0,0,0} to set mdc_shift to 0
91  // if {-1,0,0} the shift is automaticaly selected
92  // {startMDC, stopMDC}
93  mdcshift mdc_shift = {0.000000, 0.000000, 0.000000};
94 
95  // delay filter
96 
97  double TDRate = 16384.000000; // time-delay filter rate
98  char filter[1024] = "up2"; // delay filter suffix: "", or "up1", or "up2"
99 
100  // regulator
101 
102  double delta = 1.000000; // [0/1] -> [weak/soft]
103  GAMMA(double) = 0.200000; // set params in net5, [0/1]->net5=[nIFO/0],
104  // if net5>[threshold=(nIFO-1)] weak/soft[according to delta] else hard
105  bool eDisbalance = 1;
106 
107  // sky settings
108 
109  bool EFEC = 1; // Earth Fixed / Selestial coordinates
110  size_t mode = 0; // sky search mode
111  double angle = 0.400000; // angular resolution
112  double Theta1 = 0.000000; // start theta
113  double Theta2 = 180.000000; // end theta
114  double Phi1 = 0.000000; // start theta
115  double Phi2 = 360.000000; // end theta
116  double mask = 0.000000; // sky mask fraction
117  size_t healpix = 0; // if not 0 use healpix sky map (healpix order)
118 
119  // error regions settings
120 
121  double precision = 0.001000; // No = nIFO*(K+KZero)+precision*E
122 
123  // file dump mode
124 
125  bool saveTemp = 0; // save temporary root data file
126  bool dumpHistory = 1; // dump history into output root file
127  bool dump = 1; // dump triggers into ascii file
128  bool savemode = 1; // temporary save clusters on disc
129  bool cedDump = 0; // dump ced plots with rho>cedRHO
130  double cedRHO = 4.000000;
131  double nSky = 0.000000; // # of skymap prob pixels dumped to ascii : (nSky=0 -> (#pixels==1000 || cum prob > 0.99))
132 
133  // directories, file names
134 
135  char filter_dir[1024] = "/home/waveburst/soft/filters/data64_wat-4.8.2";
136  char injectionList[1024] = "";
137  char skyMaskFile[1024] = "";
138  char skyMaskCCFile[1024] = "";
141 
142  // working dir
143  char work_dir[512] = "/home/vedovato/Y2/coherent/SVN/watrepo/wat/trunk/tools/cwb/tutorials";
144  char config_dir[512] = "config";
145  char input_dir[512] = "input";
146  char output_dir[512] = "output";
147  char merge_dir[512] = "merge";
148  char condor_dir[512] = "condor";
149  char report_dir[512] = "report";
150  char macro_dir[512] = "macro";
151  char log_dir[512] = "log";
152  char data_dir[512] = "data";
153  char tmp_dir[512] = "tmp";
154  char ced_dir[512] = "report/ced";
155  char pp_dir[512] = "report/postprod";
156  char dump_dir[512] = "report/dump";
157  char www_dir[512] = "/home/vedovato/WWW/LSC/reports";
158 
159  // data label
160  char data_label[512] = "tutorials";
161 
162  // condor declarations
163  char condor_log[512] = "/local/user/vedovato";
164 
165  // frame files list (MDC must be declared in the nIFO+1 position)
166  char frFiles[NIFO_MAX+1][256];
167 
168  // dq file list
169  // {ifo, dqcat_file, dqcat[0/1/2], shift[sec], inverse[false/true], 4columns[true/false]}
170  int nDQF = 12;
171  dqfile DQF[12] = {
172  {"L1", "input/S6A_OFFLINE_L1SCIENCE.txt", (CWB_CAT)0, 0.000000, 0, 0},
173  {"L1", "input/S6A_OFFLINE_L1_DQCAT1SEGMENTS.txt", (CWB_CAT)1, 0.000000, 1, 0},
174  {"L1", "input/S6A_OFFLINE_L1_DQCAT2SEGMENTS.txt", (CWB_CAT)2, 0.000000, 1, 0},
175  {"L1", "input/S6A_OFFLINE_L1_DQCAT4SEGMENTS.txt", (CWB_CAT)1, 0.000000, 1, 0},
176  {"H1", "input/S6A_OFFLINE_H1SCIENCE.txt", (CWB_CAT)0, 0.000000, 0, 0},
177  {"H1", "input/S6A_OFFLINE_H1_DQCAT1SEGMENTS.txt", (CWB_CAT)1, 0.000000, 1, 0},
178  {"H1", "input/S6A_OFFLINE_H1_DQCAT2SEGMENTS.txt", (CWB_CAT)2, 0.000000, 1, 0},
179  {"H1", "input/S6A_OFFLINE_H1_DQCAT4SEGMENTS.txt", (CWB_CAT)1, 0.000000, 1, 0},
180  {"V1", "input/S6A_OFFLINE_V1SCIENCE.txt", (CWB_CAT)0, 0.000000, 0, 0},
181  {"V1", "input/S6A_OFFLINE_V1_DQCAT1SEGMENTS.txt", (CWB_CAT)1, 0.000000, 1, 0},
182  {"V1", "input/S6A_OFFLINE_V1_DQCAT2SEGMENTS.txt", (CWB_CAT)2, 0.000000, 1, 0},
183  {"V1", "input/S6A_OFFLINE_V1_DQCAT4SEGMENTS.txt", (CWB_CAT)1, 0.000000, 1, 0},
184  };
185 
186  // read and dump data on local disk (nodedir)
187  char nodedir[1024] = "/atlas/node/www.atlas.aei.uni-hannover.de/user/vedovato";
188 
189  // plugin name
190  TMacro plugin;
191  TMacro configPlugin;
192  bool dataPlugin = 0; // if dataPlugin=true disable read data from frames
193  bool mdcPlugin = 0; // if dataPlugin=true disable read data from frames
194 
195  // statistics
196  // L - likelihood
197  // c - network correlation coefficient
198  // A - energy disbalance asymmetry
199  // P - penalty factor based on correlation coefficients <x,s>/sqrt(<x,x>*<s,s>)
200  // E - total energy in the data streams
201 
202  // search modes
203  // 'c' - un-modeled search, fast S5 cWB version, requires constraint settings
204  // 'h' - un-modeled search, S5 cWB version, requires constraint settings
205  // 'B' - un-modeled search, max(P*L*c/E)
206  // 'b' - un-modeled search, max(P*L*c*A/E)
207  // 'I' - elliptical plarisation, max(P*L*c/E)
208  // 'S' - linear plarisation, max(P*L*c/E)
209  // 'G' - circular plarisation, max(P*L*c/E)
210  // 'i' - elliptical plarisation, max(P*L*c*A/E)
211  // 's' - linear plarisation, max(P*L*c*A/E)
212  // 'g' - circular plarisation, max(P*L*c*A/E)
213 
214 #endif
215 }
double angle
Definition: test_config1.C:111
double segMLS
Definition: test_config1.C:47
double nSky
Definition: test_config1.C:131
int slagSize
Definition: test_config1.C:65
double lagStep
Definition: test_config1.C:53
size_t * slagSite
Definition: test_config1.C:69
int slagOff
Definition: test_config1.C:68
double delta
Definition: test_config1.C:102
double Tlpr
Definition: test_config1.C:29
mdcshift mdc_shift
Definition: test_config1.C:93
char filter[1024]
Definition: test_config1.C:98
double gap
Definition: test_config1.C:82
bool savemode
Definition: test_config1.C:128
double fHigh
Definition: test_config1.C:26
int mlagStep
Definition: test_config1.C:62
double Theta1
Definition: test_config1.C:112
size_t * lagSite
Definition: test_config1.C:58
bool dump
Definition: test_config1.C:127
char ifo[NIFO_MAX][8]
Definition: test_config1.C:13
SEARCH(char)
double Theta2
Definition: test_config1.C:113
char www_dir[512]
Definition: test_config1.C:157
double bpp
Definition: test_config1.C:22
double precision
Definition: test_config1.C:121
char frFiles[NIFO_MAX+1][256]
Definition: test_config1.C:166
int slagMax
Definition: test_config1.C:67
char channelNamesRaw[NIFO_MAX][50]
Definition: test_config1.C:139
CWB_CAT
Definition: Toolbox.hh:72
bool eDisbalance
Definition: test_config1.C:105
size_t lagOff
Definition: test_config1.C:54
double x2or
Definition: test_config1.C:31
char refIFO[4]
Definition: test_config1.C:14
GAMMA(double)=0.200000
char macro_dir[512]
Definition: test_config1.C:150
int nIFO
Definition: test_config1.C:10
double segEdge
Definition: test_config1.C:49
char report_dir[512]
Definition: test_config1.C:149
int l_low
Definition: test_config1.C:40
double whiteWindow
Definition: test_config1.C:72
double cedRHO
Definition: test_config1.C:130
double netCC
Definition: test_config1.C:33
double Tgap
Definition: test_config1.C:23
double fResample
Definition: test_config1.C:27
char ced_dir[512]
Definition: test_config1.C:154
double mask
Definition: test_config1.C:116
int Psave
Definition: test_config1.C:75
double Acore
Definition: test_config1.C:28
double segTHR
Definition: test_config1.C:48
char skyMaskFile[1024]
Definition: test_config1.C:137
size_t healpix
Definition: test_config1.C:117
char data_label[512]
Definition: test_config1.C:160
size_t mode
Definition: test_config1.C:110
char input_dir[512]
Definition: test_config1.C:145
char tmp_dir[512]
Definition: test_config1.C:153
char lagMode[2]
Definition: test_config1.C:57
const int NIFO_MAX
Definition: wat.hh:22
dqfile DQF[12]
Definition: test_config1.C:171
double dataShift[NIFO_MAX]
Definition: test_config1.C:87
detectorParams detParms[NIFO_MAX]
Definition: test_config1.C:17
bool mdcPlugin
Definition: test_config1.C:193
char merge_dir[512]
Definition: test_config1.C:147
char data_dir[512]
Definition: test_config1.C:152
double Phi2
Definition: test_config1.C:115
char log_dir[512]
Definition: test_config1.C:151
int levelF
Definition: test_config1.C:38
char config_dir[512]
Definition: test_config1.C:144
char channelNamesMDC[NIFO_MAX][50]
Definition: test_config1.C:140
size_t rateANA
Definition: test_config1.C:21
char injectionList[1024]
Definition: test_config1.C:136
double factors[100]
Definition: test_config1.C:84
bool EFEC
Definition: test_config1.C:109
double dcCal[NIFO_MAX]
Definition: test_config1.C:78
bool dataPlugin
Definition: test_config1.C:192
bool saveTemp
Definition: test_config1.C:125
double Fgap
Definition: test_config1.C:24
char skyMaskCCFile[1024]
Definition: test_config1.C:138
double whiteStride
Definition: test_config1.C:73
double segLen
Definition: test_config1.C:46
char dump_dir[512]
Definition: test_config1.C:156
char pp_dir[512]
Definition: test_config1.C:155
TMacro configPlugin
Definition: test_config1.C:191
double shift[NIFO_MAX]
Definition: test_config1.C:59
TMacro plugin
Definition: test_config1.C:190
bool cedDump
Definition: test_config1.C:129
char * lagFile
Definition: test_config1.C:56
int nfactor
Definition: test_config1.C:83
double TDRate
Definition: test_config1.C:97
double Phi1
Definition: test_config1.C:114
double netRHO
Definition: test_config1.C:32
bool dumpHistory
Definition: test_config1.C:126
char condor_log[512]
Definition: test_config1.C:163
int nDQF
Definition: test_config1.C:170
int l_high
Definition: test_config1.C:41
char nodedir[1024]
Definition: test_config1.C:187
char condor_dir[512]
Definition: test_config1.C:148
char work_dir[512]
Definition: test_config1.C:143
int levelR
Definition: test_config1.C:37
int slagMin
Definition: test_config1.C:66
int simulation
Definition: test_config1.C:81
int levelD
Definition: test_config1.C:39
double fLow
Definition: test_config1.C:25
char output_dir[512]
Definition: test_config1.C:146
char filter_dir[1024]
Definition: test_config1.C:135
size_t lagMax
Definition: test_config1.C:55
size_t lagSize
Definition: test_config1.C:52