Logo coherent WaveBurst  
Library Reference Guide
Logo
cWB_conf.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 
3 import commands, os, sys
4 from glue.segments import *
5 from glue.segmentsUtils import *
6 import getpass
7 
8 #general setup
9 user=getpass.getuser()
10 title="TITLE"
11 accounting_group="ligo.prod.o2.burst.allsky.cwbonline"
12 
13 label="LABEL"
14 online_dir="/home/%s/online/%s"%(user,label)
15 
16 ifos=["L1","H1"]
17 
18 channelname={}
19 DQ_channel={}
20 DQ_channel_rate={}
21 bitmask={}
22 for ifo in ifos:
23  channelname[ifo]="%s:GDS-CALIB_STRAIN"%(ifo)
24  DQ_channel[ifo]=["%s:GDS-CALIB_STATE_VECTOR"%(ifo),"%s:DMT-DQ_VECTOR"%(ifo)]
25  DQ_channel_rate[ifo]=[16,16]
26  bitmask[ifo]=[3,1]
27 
28 inj_name=["BURST","CBC","STOCH","DETCHAR"]
29 inj_bitmask=[128,64,32,256]
30 
31 #Job setup
32 run_offset=0
33 job_offset=8
34 job_timeout=90*60
35 #min_seg_duration=30
36 seg_duration=180
37 moving_step=60
38 look_back=5*60
39 debug=0
40 sleep=3
41 max_jobs=20
42 #science_segment_offset=[30]
43 
44 #run_start=1126256840
45 #run_end=1126260736
46 
47 #General cWB parameters
48 levelR = 3
49 l_high = 10
50 
51 #Background information
52 
53 bkg_delay=5*60
54 bkg_nlags=500
55 bkg_job_duration=600
56 bkg_job_minimum=600
57 bkg_split=1
58 bkg_njobs=20
59 bkg_framesize=4
60 
61 #Directories
62 
63 run_dir=online_dir+"/RUN_cWB"
64 jobs_dir="JOBS"
65 seg_dir="SEGMENTS"
66 summaries_dir="SUMMARIES"
67 zerolag_par="%s/config/user_parameters.C"%(run_dir)
68 bkg_par="%s/config/user_parameters_bkg.C"%(run_dir)
69 pp_par="%s/config/user_pparameters.C"%(run_dir)
70 #pe_par="%s/config/user_parameters_pe.C"%(run_dir)
71 #pe_plugin="%s/tools/online/cWB_Plugin_PE_on.C"%(os.environ['HOME_WAT'])
72 prod_plugins=["%s/tools/cwb/plugins/CWB_Plugin_QLWveto.C"%(os.environ['HOME_WAT'])]
73 
74 bkg_run_dir="%s/TIME_SHIFTS"%(online_dir)
75 postprod_dir="POSTPRODUCTION"
76 considered_segments_file="considered.txt"
77 processed_segments_file="processed.txt"
78 running_segments_file="running.txt"
79 missing_segments_file="missing.txt"
80 run_segments_file="run.txt"
81 job_segments_file="jobs.txt"
82 
83 if (os.environ['SITE_CLUSTER']=="CIT"):
84  frames_dir=["/dev/shm/llhoft/L1_O2","/dev/shm/llhoft/H1_O2"]
85  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-"]
86  log_path="/usr1/%s"%(user)
87  web_dir="/home/%s/public_html/online/%s"%(user,label)
88  web_link="https://ldas-jobs.ligo.caltech.edu/~%s/online/%s"%(user,label)
89  accounting_group_user="marco.drago"
90  condor_requirements="""Requirements = (TARGET.Online_Burst_cWB =?= True)
91 +Online_Burst_cWB=True"""
92 if (os.environ['SITE_CLUSTER']=="ATLAS"):
93  frames_dir=["/dev/shm/llhoft/O2L1","/dev/shm/llhoft/O2H1"]
94  bkg_dir=["/atlas/data/llcache/O2L1/L1-llhoft-?????/L1-llhoft-","/atlas/data/llcache/O2H1/H1-llhoft-?????/H1-llhoft-"]
95  log_path="/local/user/%s"%(user)
96  web_dir="/home/%s/WWW/LSC/online/%s"%(user,label)
97  web_link="https://atlas3.atlas.aei.uni-hannover.de/~%s/LSC/online/%s"%(user,label)
98  log_dir="/atlas/user/atlas5/%s/%s"%(user,label)
99  accounting_group_user="marco.drago"
100 
101 #Data Quality
102 apply_veto=False
103 
104 #E-mails
105 emails=["marco.drago@aei.mpg.de","klimenko@phys.ufl.edu","gabriele.vedovato@lnl.infn.it","francesco.salemi@aei.mpg.de","shubhanshu.tiwari@gssi.infn.it","clazzaro@pd.infn.it","maria.tringali@unitn.it","filipe.dasilva@ufl.edu"]
106 
107 #Library information
108 version="1"
109 version_wat="2G"
110 search="r"
111 optim="false"
112 code_version="wat6.2.6"
113 hoft_version="C00"
114 
115 #gracedb
116 gracedb_group="Burst"
117 gracedb_analysis="CWB"
118 gracedb_search="AllSky"
119 
120 #pp threshold
121 id_rho=0
122 #th_rho_off=8.
123 th_far_off=3.17e-08
124 th_rho_lum=6.
125 id_cc=0
126 th_cc=0.6
127 
128 #TCuts
129 #Cuts_file=""
130 #Cuts_list=["",""]
131 #Cuts_name=["",""]
132 
133 #string of cwb parameters
134 cwb_par="""
135  strcpy(analysis,"%s");
136 
137  nIFO = %i;
138  cfg_search = '%s';
139  optim=%s;
140 
141 
142  // frequency
143  fLow = 16.; // low frequency of the search
144  fHigh = 2048.; // high frequency of the search
145 
146  levelR = %i;
147  l_low = 4; // low frequency resolution level
148  l_high = %i; // high frequency resolution level
149 
150  strcpy(wdmXTalk,"wdmXTalk/OverlapCatalog16-1024.bin");
151 
152  healpix=7;
153  nSky=196608;
154 
155  bpp = 0.001;
156  subnet = 0.5;
157  subcut = 0.0;
158  netRHO = 5.0;
159  netCC = 0.5;
160  Acore = 1.7;
161  Tgap = 0.2;
162  Fgap = 128.0;
163  delta = 0.5;
164  cfg_gamma = -1.0;
165  LOUD = 300;
166 
167  pattern = 5;
168 
169  //simulation
170  nfactor = 1;
171  simulation = 0;
172 
173  """%(version_wat,len(ifos),search,optim,levelR,l_high)