gstlal-inspiral  0.4.2
 All Classes Namespaces Files Functions Variables Pages
Makefile.vetoes
1 # USER DEFINED INPUT - CHANGE AS APPROPRIATE
2 START = 966384015
3 STOP = 971568015
4 
5 IFOS = H1 L1 V1
6 vetoes_suffix := _vetoes.xml
7 VETOES_FILES := $(addsuffix $(vetoes_suffix),$(IFOS))
8 SEG_SERVER=https://segdb.ligo.caltech.edu
9 
10 VETODEFREMOTE="https://www.lsc-group.phys.uwm.edu/ligovirgo/cbc/public/segments/S6/H1L1V1-S6_CBC_LOWMASS_D_OFFLINE-961545543-0.xml"
11 VETODEF=$(nodir $VETODEFREMOTE)
12 
13 # GET VETO-DEFINER FILE
14 $(VETODEF):
15  wget $(VETODEFREMOTE) -O $@
16 
17 # GET VETOES PER DETECTOR
18 %_vetoes.xml: $(VETODEF)
19  ligolw_segments_from_cats --segment-url=$(SEG_SERVER) --veto-file=$(VETODEF) --gps-start-time $(START) --gps-end-time $(STOP) --cumulative-categories
20  ligolw_segments_compat $*-VETOTIME_CAT*.xml
21  # cat2 for giant glitches
22  # cat3 for HW injections
23  gstlal_segments_operations --union --segment-file1 $*-VETOTIME_CAT3-*.xml --segment-name1 VETO_CAT3_CUMULATIVE --segment-file2 $*-VETOTIME_CAT3-*.xml --segment-name2 VETO_CAT3_CUMULATIVE --output-file $@ --output-segment-name vetoes
24 
25 # COMBINE ALL VETOES ACROSS DETECTORS
26 vetoes.xml: $(VETOES_FILES)
27  ligolw_add $(VETOES_FILES) -o vetoes.xml
28 
29 clean:
30  rm -rf *_vetoes.xml
31  rm -rf vetoes.xml