Skip to content
Snippets Groups Projects

Accounting for current DAQ configuration (LLO and LHO) after Jan 17 2023

Merged Timothy O'Hanlon requested to merge timothy.ohanlon/locklost:DAQ-fix into master
3 unresolved threads

This code takes into account the 20-bit daq configuration for LLO as of the writing of this alog https://alog.ligo-la.caltech.edu/aLOG/index.php?callRep=63133 and the changes made here https://alog.ligo-la.caltech.edu/aLOG/index.php?callRep=63808. The code also accounts for the LHO daq configuration in this alog https://alog.ligo-wa.caltech.edu/aLOG/index.php?callRep=66836. This checks saturation thresholds in saturations.py and lpy.py through a function in config.py. This function needs to be updated further so the gps time better accounts for when each DAQ was switched and it needs to be updated in the event of any future daq changes.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
146 #Threshold is divided by two for the counts can be positive or negative
147 SATURATION_THRESHOLD_16 = (2**16) / 2
148 SATURATION_THRESHOLD_18 = (2**18) / 2
149 SATURATION_THRESHOLD_20 = (2**20) / 2
150
151 if IFO == 'L1':
152 # This corresponds to a change from 18 to 20-bit DAC for ETMX L3 channels.
153 # ETMX L3 channels after this date have counts that are four times higher
154 CHANGE_DAC_DATE = 1188518418
155 #This gets the DAC configuration in line with https://alog.ligo-la.caltech.edu/aLOG/index.php?callRep=63133
156 #Exact DAC times should be added later to better analyze old events
157 CHANGE_DAC_DATE2 = 1358033599
158 #https://alog.ligo-la.caltech.edu/aLOG/index.php?callRep=63808
159 CHANGE_DAC_DATE3 = 1361911279
160
161 if IFO == 'H1':
  • 173 'SUS-ZM1_M1',
    174 'SUS-ZM2_M1',
    175 'SUS-OM1_M1',
    176 'SUS-OM2_M1',
    177 'SUS-OM3_M1'
    178 ]
    179 if any(x in chan for x in SIXTEEN_BIT_CHANNELS):
    180 return SATURATION_THRESHOLD_16
    181 return SATURATION_THRESHOLD_18
    182
    183 elif gps >= CHANGE_DAC_DATE and gps < CHANGE_DAC_DATE2:
    184 # ETM's are 20-bit and were changed at a date within our wanted
    185 # lockloss time range
    186 if IFO == 'H1':
    187 ETM_L3_CHANNELS = 'SUS-ETMX_L3'
    188 if IFO == 'L1':
  • 221 EIGHTEEN_BIT_CHANNELS = [
    222 'SUS-SRM_M1',
    223 'SUS-SR3',
    224 'SUS-OMC',
    225 'SUS-IM'
    226 ]
    227 SIXTEEN_BIT_CHANNELS = [
    228 'SUS-ZM',
    229 'SUS-OM1',
    230 'SUS-OM2',
    231 'SUS-OM3',
    232 'SUS-RM'
    233 ]
    234 if gps >= CHANGE_DAC_DATE3:
    235 TWENTY_BIT_CHANNELS = TWENTY_BIT_CHANNELS + EIGHTEEN_BIT_CHANNELS
    236 if IFO == 'H1':
  • @timothy.ohanlon this is a nice change, just a couple of minor comments.

  • added 1 commit

    Compare with previous version

  • Jameson Rollins mentioned in commit 3ccd04f9

    mentioned in commit 3ccd04f9

  • Timothy O'Hanlon mentioned in merge request !123 (closed)

    mentioned in merge request !123 (closed)

  • Timothy O'Hanlon mentioned in merge request !124 (merged)

    mentioned in merge request !124 (merged)

  • mentioned in issue #197 (closed)

  • mentioned in issue #190 (closed)

  • mentioned in issue #167 (closed)

  • mentioned in issue #163 (closed)

  • mentioned in issue #170 (closed)

  • Please register or sign in to reply
    Loading