Logo coherent WaveBurst  
Config Reference Guide
Logo
O3b_cWB_conf.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 
3 import commands, os, sys
4 import getpass
5 
6 run="O3"
7 network="LHV"
8 search_type="BBH"
9 tag="ONLINE"
10 
11 #general setup
12 user=getpass.getuser()
13 if (os.environ['SITE_CLUSTER']=="CASCINA"):
14  cascina_user="cWB"
15 title="%sb %s %s %s Allsky"%(run,network,search_type,tag)
16 accounting_group="ligo.prod.o3.burst.allsky.cwbonline"
17 
18 label="%sb_%s_%s_%s"%(run,network,search_type,tag)
19 online_dir="/home/%s/online/%s"%(user,label)
20 if (os.environ['SITE_CLUSTER']=="CASCINA"):
21  online_dir=online_dir="/data/online/%s/zero_lag/%s"%(cascina_user,label)
22 
23 ifos=["L1","H1","V1"]
24 
25 channelname={}
26 DQ_channel={}
27 DQ_channel_rate={}
28 bitmask={}
29 inj_name=["BURST","CBC"]#,"STOCH","DETCHAR"]
30 inj_bitmask={}
31 veto_channel={}
32 veto_rate={}
33 cat2_rate={}
34 cat2_bitmask={}
35 cat2_channel={}
36 bitmask={}
37 for ifo in ifos[:-1]:
38  channelname[ifo]="%s:GDS-CALIB_STRAIN_CLEAN"%(ifo)
39  #channelname[ifo]="%s:GDS-CALIB_STRAIN_O2Replay"%(ifo) #O2replay
40  DQ_channel[ifo]=["%s:GDS-CALIB_STATE_VECTOR"%(ifo),"%s:DMT-DQ_VECTOR"%(ifo)]
41  DQ_channel_rate[ifo]=[16,16]
42  bitmask[ifo]=[3,22]
43  inj_bitmask[ifo]=[128,64]#,32,256]
44  cat2_channel[ifo]=["%s:DMT-DQ_VECTOR_GATED"%(ifo)]
45  cat2_rate[ifo]=[16]
46  cat2_bitmask[ifo]=[8]
47 channelname["V1"]="V1:Hrec_hoft_16384Hz"
48 #channelname["V1"]="V1:Hrec_hoft_16384Hz_O2Replay" #O2replay
49 DQ_channel["V1"]="V1:DQ_ANALYSIS_STATE_VECTOR"
50 DQ_channel_rate["V1"]=1
51 bitmask["V1"]=1027
52 inj_bitmask["V1"]=[128,64]#,32,256]
53 veto_channel["V1"]=["V1:DQ_VETO_CWB"]
54 veto_rate["V1"]=[50]
55 
56 #Job setup
57 run_offset=0
58 job_offset=10
59 job_timeout=90*60
60 #min_seg_duration=30
61 seg_duration=180
62 moving_step=60
63 look_back=5*60
64 debug=0
65 sleep=3
66 max_jobs=20
67 
68 #General cWB parameters
69 levelR = 3
70 l_high = 10
71 search="r"
72 optim="false"
73 cwb_par="""
74  strcpy(analysis,"2G");
75 
76  nIFO = %i;
77  cfg_search = '%s';
78  optim=%s;
79 
80  //frequency
81  fLow = 16.; // low frequency of the search
82  fHigh = 1024.; // high frequency of the search
83 
84  levelR = %i;
85  l_low = 4; // low frequency resolution level
86  l_high = %i; // high frequency resolution level
87 
88  strcpy(wdmXTalk,"wdmXTalk/OverlapCatalog16-1024.bin");
89 
90  healpix=7;
91  nSky=196608;
92 
93  bpp = 0.001;
94  subnet = 0.5;
95  subcut = 0.0;
96  netRHO = 5.0;
97  netCC = 0.5;
98  Acore = 1.7;
99  Tgap = 0.2;
100  Fgap = 128.0;
101  delta = 0.5;
102  cfg_gamma = -1.0;
103  LOUD = 300;
104 
105  pattern = 5;
106 
107  //simulation
108  nfactor = 1;
109  simulation = 0;"""%(len(ifos),search,optim,levelR,l_high)
110 
111 #Background information
112 bkg_delay=5*60
113 bkg_nlags=500
114 bkg_job_duration=600
115 bkg_job_minimum=600
116 bkg_split=1
117 bkg_njobs=20
118 bkg_framesize=1
119 if (os.environ['SITE_CLUSTER']=="CASCINA"):
120  bkg_framesize=10000
121 bkg_superlaglist="%s/O3/SEARCHES/ONLINE/LAGS/Unique_n21.txt"%os.environ['CWB_CONFIG']
122 bkg_laglist="%s/O3/SEARCHES/ONLINE/LAGS/Unique_n501.lags"%os.environ['CWB_CONFIG']
123 
124 #Directories
125 run_dir=online_dir+"/RUN_cWB"
126 jobs_dir="JOBS"
127 seg_dir="SEGMENTS"
128 summaries_dir="SUMMARIES"
129 config_dir="%s/config"%(online_dir)
130 zerolag_par="%s/user_parameters.C"%(config_dir)
131 bkg_par="%s/user_parameters_bkg.C"%(config_dir)
132 pp_par="%s/user_pparameters.C"%(config_dir)
133 bkg_run_dir="%s/TIME_SHIFTS"%(online_dir.replace("zero_lag","bkg"))
134 postprod_dir="POSTPRODUCTION"
135 considered_segments_file="considered.txt"
136 processed_segments_file="processed.txt"
137 running_segments_file="running.txt"
138 missing_segments_file="missing.txt"
139 run_segments_file="run.txt"
140 job_segments_file="jobs.txt"
141 
142 if (os.environ['SITE_CLUSTER']=="CIT"):
143  frames_dir=["/dev/shm/kafka/L1","/dev/shm/kafka/H1","/dev/shm/kafka/V1"]
144  bkg_dir=["/ifocache/llcache/kafka/L1/L-L1_llhoft-??????/L-L1_llhoft-","/ifocache/llcache/kafka/H1/H-H1_llhoft-??????/H-H1_llhoft-","/ifocache/llcache/kafka/V1/V-V1_llhoft-??????/V-V1_llhoft-"]
145  log_path="/usr1/%s"%(user)
146  web_dir="/home/%s/public_html/online/%s"%(user,label)
147  web_link="https://ldas-jobs.ligo.caltech.edu/~%s/online/%s"%(user,label)
148  accounting_group_user="marek.szczepanczyk"
149  condor_requirements_file="/home/waveburst/online/HTCondor/cwb_template.sub"
150 if (os.environ['SITE_CLUSTER']=="CASCINA"):
151  frames_dir=["/dev/shm/LowLatencyAnalysis/CwbL1In","/dev/shm/LowLatencyAnalysis/CwbH1In","/dev/shm/LowLatencyAnalysis/CwbV1In"]
152  bkg_dir=["/data/prod/hrec/L1Online/L1Online-","/data/prod/hrec/H1Online/H1Online-","/data/prod/hrec/V1CITOnline/V-V1CITOnline-"]
153  log_path="/local/user/%s"%(cascina_user)
154  web_dir="/data/prod/web/%s/online/%s"%(cascina_user,label)
155  web_link="https://scientists.virgo-gw.eu/DataAnalysis/Burst/%s/online/%s"%(cascina_user,label)
156  #accounting_group_user="marco.drago"
157  condor_requirements_file="/virgoData/HTCondor/cwb_template.sub"
158 
159 #Data Quality
160 apply_veto=False
161 
162 #E-mails
163 emails=["marco.drago@ligo.org","marek.szczepanczyk@ligo.org","sergei.klimenko@ligo.org","gabriele.vedovato@ligo.org","claudia.lazzaro@ligo.org","imre.bartos@ligo.org","andrea.miani@ligo.org","giovanni.prodi@ligo.org","shubhanshu.tiwari@ligo.org"]
164 error_emails=["marco.drago@ligo.org","marek.szczepanczyk@ligo.org"]
165 
166 #Library information
167 version="1"
168 version_wat="2G"
169 code_version="wat6.2.6"
170 hoft_version="C00"
171 
172 #gracedb
173 #gracedb_client="https://gracedb-playground.ligo.org/api/" #O2replay
174 gracedb_group="Burst"
175 gracedb_analysis="CWB"
176 gracedb_search="BBH"
177 
178 #pp threshold
179 id_rho=1
180 #th_rho_off=8.
181 th_far_off=3.17e-08
182 th_rho_lum=5
183 th_rho_mail=6.
184 id_cc=0
185 th_cc=0.6
186 
187 #Plugins
188 #pe_par="%s/config/user_parameters_pe.C"%(run_dir)
189 #pe_plugin="%s/tools/online/cWB_Plugin_PE_on.C"%(os.environ['HOME_WAT'])
190 prod_plugins=["%s/%s/SEARCHES/PLUGINS/CWB_Plugin_O3aConditioning_Gating_QLveto.C"%(os.environ['CWB_CONFIG'],run)]
191 
192 #TCuts
193 Cuts_file="%s/%s/SEARCHES/ONLINE/%s/%s/PP_Cuts.hh"%(os.environ['CWB_CONFIG'],run,search_type,network)
194 Cuts_list=["bin1_cut"]
195 #Cuts_trials=3
196 
197 #run_start=1126256840
198 #run_end=1126260736