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