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