[Hps-analysis] Error running old jar file
McCormick, Jeremy I.
jeremym at slac.stanford.edu
Wed Jan 31 21:08:31 EST 2018
Hello,
There is no 'HPS-EngRun2015-Nominal-v5-0-fieldmap` detector in the hps-java 3.9 release, which is why the conditions error occurs.
To fix, you can checkout the `HPS-EngRun2015-Nominal-v5-0-fieldmap` files into the old tag and then rebuild your distribution...
e.g.
$ cd hps-java
$ git checkout hps-modules-3.9
$ git checkout master -- detector-data/detectors/HPS-EngRun2015-Nominal-v5-0-fieldmap
$ mvn clean install
Now you should be able to run the 3.9 distribution with the new detector.
I confirmed that this at least allows me to run your job locally.
--Jeremy
From: hps-software at slac.stanford.edu [mailto:hps-software at slac.stanford.edu] On Behalf Of Graf, Norman A.
Sent: Monday, January 22, 2018 1:11 PM
To: hps-software; hps-analysis at jlab.org
Subject: Error running old jar file
Hello All,
In trying to reproduce some interesting differences in track reconstruction efficiencies over time pointed out by Alessandra this morning, I downloaded some earlier production jar files from nexus and tried to run the reconstruction. I encountered the following error when running the 3.9 jar file:
> java -cp hps-distribution-3.9-bin.jar org.hps.evio.EvioToLcio -x EngineeringRun2015FullRecon.lcsim -d HPS-EngRun2015-Nominal-v5-0-fieldmap -D outputFile=tst hps_005772.evio.0
...
2018-01-22 13:05:58 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager initialize :: initializing with detector HPS-EngRun2015-Nominal-v5-0-fieldmap and run 5772
2018-01-22 13:05:58 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager setXmlConfig :: setting XML config from resource /org/hps/conditions/config/conditions_database_engrun.xml
2018-01-22 13:05:58 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager loadConfiguration :: setupSvtDetector = true
2018-01-22 13:05:58 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager loadConfiguration :: freezeAfterInitialize = false
2018-01-22 13:05:58 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager registerConverters :: registering default conditions converters
2018-01-22 13:05:58 [INFO] org.hps.conditions.database.DatabaseConditionsManager openConnection :: opening connection ...
connection: jdbc:mysql://hpsdb.jlab.org:3306/
host: hpsdb.jlab.org
port: 3306
user: hpsuser
database: hps_conditions
Exception in thread "main" java.lang.RuntimeException: Error initializing conditions system.
at org.hps.evio.EvioToLcio.checkConditions(EvioToLcio.java:235)
at org.hps.evio.EvioToLcio.bufferEvents(EvioToLcio.java:205)
at org.hps.evio.EvioToLcio.run(EvioToLcio.java:501)
at org.hps.evio.EvioToLcio.main(EvioToLcio.java:98)
Caused by: org.lcsim.conditions.ConditionsManager$ConditionsNotFoundException: Conditions not found for detector HPS-EngRun2015-Nominal-v5-0-fieldmap
at org.lcsim.conditions.ConditionsReader.create(ConditionsReader.java:197)
at org.lcsim.conditions.ConditionsReader.create(ConditionsReader.java:214)
at org.lcsim.conditions.ConditionsManagerImplementation.setDetector(ConditionsManagerImplementation.java:40)
at org.hps.conditions.database.DatabaseConditionsManager.initialize(DatabaseConditionsManager.java:714)
at org.hps.conditions.database.DatabaseConditionsManager.setDetector(DatabaseConditionsManager.java:1021)
at org.hps.evio.EvioToLcio.checkConditions(EvioToLcio.java:233)
... 3 more
Running the same command using the hps-distribution-4.0-bin.jar file (also fetched from nexus) runs to completion.
Any suggestions on what I might have done wrong or forgotten to do would be appreciated.
Thanks,
Norman
________________________________
Use REPLY-ALL to reply to list
To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__listserv.slac.stanford.edu_cgi-2Dbin_wa-3FSUBED1-3DHPS-2DSOFTWARE-26A-3D1&d=DwIFAg&c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&r=J4PP6Zl8IyGHpsqWaKegORCYw8hoCHePTw5O95a5lqQ&m=f88skGOAkHdQUbM-z4S_L-hWSjqMChwiz7U6jzV_mZY&s=tlh_btIA4qX3nZDWu1Or5BDxFFPn-A2VbggXmEdj498&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/hps-analysis/attachments/20180201/a4802212/attachment.html>
More information about the Hps-analysis
mailing list