-
Notifications
You must be signed in to change notification settings - Fork 1
Subtract extra leap second from GCD file #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
This seems wrong. The 2016 leap second was added as 23:59:60. It had
absolutely no affect on 2017 time. DAQ time is relative to the year as
well. We need to discuss this.
…On Sun, Oct 26, 2025 at 12:45 R Snihur ***@***.***> wrote:
Subtract extra leap second from IC86-2016 GCD files in calendar year 2017.
This extra leap second was erroneously added to the original GCD files,
when it was already accounted for in i3Live.
This affects runs 129004 (2017-01-01 first run of calendar year) to 129519
(2017-05-18 last run of IC86-2016).
------------------------------
You can view, comment on, or merge this pull request online at:
#32
Commit Summary
- a2a3c76
<a2a3c76>
Add script to take a step1 GCD file and add IceTop stuff to it for step2.
For now, fills with placeholder values.
- a31d135
<a31d135>
Python script to subtract extra leap second from GCD file
- 579041d
<579041d>
Shell script to execute python script
- 8ce83c0
<8ce83c0>
Condor submit file to execute shell script
File Changes
(7 files <https://github.com/WIPACrepo/pass3/pull/32/files>)
- *A* scripts/icetray/step2gcd/AddSLCCalibration_fromjson.py
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-506ccb2757cc2c23d20940a75d6b72a19896339a44a33d1df9f349a59381ca50>
(96)
- *A*
scripts/icetray/step2gcd/condor_submit/submit_pass3step2gcd_leapfix.condor
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-38f172490f38849bdf16be057d3e1886e9e457e09f4662dca424b4492024c58f>
(29)
- *A* scripts/icetray/step2gcd/icetopify_gcdfile.py
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-c60b19d7e88c3784108aac95b58023f074b6ba6b415c339b5e55ea26974678ee>
(147)
- *A* scripts/icetray/step2gcd/leapfix_gcdfile.py
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-f0ac7e135605ea618165ce00f52d4957b0669c54b5defa63f11fd776b388af65>
(113)
- *A* scripts/icetray/step2gcd/leapfix_gcdfile.sh
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-5ad6e2a56885b5ed2b5f22175fc3685927700a692b872e1e358025626e2d45c9>
(287)
- *A* scripts/icetray/step2gcd/placeholder_IceTopSLCCal_deadOrc.json
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-b3673e2a6a8f3db8b1548c31fc5c051f803deaa700a0e2bcf9aa78c4eee113e2>
(7090)
- *A* scripts/icetray/step2gcd/placeholder_IceTopSLCCal_liveOrc.json
<https://github.com/WIPACrepo/pass3/pull/32/files#diff-b39d95eef01339e06070b911a1859ac74ea2b83389cc4b080fd17c7900664d86>
(7112)
Patch Links:
- https://github.com/WIPACrepo/pass3/pull/32.patch
- https://github.com/WIPACrepo/pass3/pull/32.diff
—
Reply to this email directly, view it on GitHub
<#32>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI3QFQ2D2XINZ4OMIO77KD3ZUCC5AVCNFSM6AAAAACKIEWIF6VHI2DSMVQWIX3LMV43ASLTON2WKOZTGU2TIMRUGYZTGMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
I just learned about the nist leap second file recently from Tim (perhaps @arcor can comment). Whereas those runs in calendar year 2017 (eg. first run 129004) added one second to the latter set of good run start and end time (i.e., the good run start and end time that are written into the GCD files): The leap-second file that was used appears to be the following. |
|
I think the problem may have originated from
which converts a UTC time to daq ticks. looks like it misinterprets to mean a leap second happened on Jan, 1 2017 instead of the intended meaning that the prior second (12/31/2016 24:59:60) was a leap second. This defect was latent (or the script was not in use) for other contemporary leap seconds which were scheduled mid-year. So when this script was in use for good start times landing in 2017 it mistakenly added an extra 1E10 daq ticks to them during the conversion |
GoodRunStartTime and GoodRunEndTime in IC86-2016 GCD files from calendar year 2017 are 1 second greater than i3Live.
The scripts in this PR will subtract the extra leap second from GoodRunStartTime and GoodRunEndTime in IC86-2016 GCD files from calendar year 2017.
This extra leap second was erroneously added in the original GCD files,
when it was already accounted for in i3Live.
This affects runs 129004 (2017-01-01 first run of calendar year) to 129519 (2017-05-18 last run of IC86-2016).
The GoodRunStartTime and GoodRunEndTime in the GCD file are used by offline processing to exclude any events outside their time range.