Skip to content

Add TI time offset to conditions system#70

Merged
mholtrop merged 3 commits intomasterfrom
iss69
May 15, 2017
Merged

Add TI time offset to conditions system#70
mholtrop merged 3 commits intomasterfrom
iss69

Conversation

@JeremyMcCormick
Copy link
Copy Markdown
Contributor

  • Added ti_time_offsets table to conditions database

  • Added TiTimeOffset conditions class and converter

  • Created a simple test to read the TI time offset for a run

  • Removed dependence of evio module on run database

  • Read TI time offset from conditions system instead of run db in LCSimEngRunEventBuilder

  • Removed now unnecessary setting of run db connection parameters from properties file (instead there is an existing constructor which can be used which takes a Connection object)

This was done primarily to remove the dependence of the EVIO to LCIO conversion on the run database and make this information easily accessible to reconstruction Driver classes.

…se the constructor that takes a connection object instead
…API and database for backward compatibility)
@JeremyMcCormick JeremyMcCormick requested a review from mholtrop May 13, 2017 02:13
@mholtrop
Copy link
Copy Markdown
Collaborator

Basic code changes look fine, but there are almost no comments!
Has this been tested on some actual data?

@JeremyMcCormick
Copy link
Copy Markdown
Contributor Author

Has this been tested on some actual data?

I ran the test to make sure that the TI time offset for a test run was available but I did not run on any EVIO files (I'll test this when I get a chance).

there are almost no comments!

Changes to the EVIO converter seemed self-explanatory. I didn't add comments to the new conditions class but will do so.

Copy link
Copy Markdown
Collaborator

@mholtrop mholtrop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears to be OK.
Some limited comments were added. Much of the code is fairly clear.

@mholtrop mholtrop merged commit e0992c2 into master May 15, 2017
@omar-moreno
Copy link
Copy Markdown
Collaborator

It would have been good for @mrsolt to have checked that the correct latency was being read from the db. These are the type of subtle changes that may seem small, but can really mess up the reconstruction.

@JeremyMcCormick
Copy link
Copy Markdown
Contributor Author

JeremyMcCormick commented May 17, 2017

I've just checked run 5772 and it looks fine.

2017-05-16 18:50:39 [INFO] org.lcsim.job.EventMarkerDriver process :: Event 11 with sequence 0
2017-05-16 18:50:39 [INFO] org.hps.evio.LCSimEngRunEventBuilder getTime :: calculated TI data time = 1431853731987067816
2017-05-16 18:50:39 [INFO] org.lcsim.job.EventMarkerDriver process :: Event 12 with sequence 1
2017-05-16 18:50:39 [INFO] org.hps.evio.LCSimEngRunEventBuilder getTime :: calculated TI data time = 1431853731987094080
2017-05-16 18:50:39 [INFO] org.lcsim.job.EventMarkerDriver process :: Event 13 with sequence 2
2017-05-16 18:50:39 [INFO] org.hps.evio.LCSimEngRunEventBuilder getTime :: calculated TI data time = 1431853731987110736
2017-05-16 18:50:39 [INFO] org.lcsim.job.EventMarkerDriver process :: Event 14 with sequence 3
...

If you want to verify yourself then run something like this:

java -cp ~/.m2/repository/org/hps/hps-distribution/3.11-SNAPSHOT/hps-distribution-3.11-SNAPSHOT-bin.jar org.hps.evio.EvioToLcio \
    -dHPS-EngRun2015-Nominal-v5-0 \
    -DoutputFile=hps_5772_data ./hps_005772.evio.0

The changes from this PR don't actually do very much. The same numbers are being read as before, just from a different database.

@omar-moreno
Copy link
Copy Markdown
Collaborator

omar-moreno commented May 17, 2017 via email

@mholtrop
Copy link
Copy Markdown
Collaborator

mholtrop commented May 17, 2017 via email

@omar-moreno omar-moreno deleted the iss69 branch June 14, 2017 21:38
alspellm pushed a commit to alspellm/hps-java that referenced this pull request Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants