Print

Print


Thanks Jeremy,


I appreciate your looking into this. It didn't even occur to me to think about the detector.

This is clearly one case where getting the geometry definitions from the conditions database is the right thing to do.


Norman


________________________________
From: McCormick, Jeremy I.
Sent: Wednesday, January 31, 2018 6:08 PM
To: Graf, Norman A.; hps-software; [log in to unmask]
Subject: RE: Error running old jar file


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: [log in to unmask] [mailto:[log in to unmask]] On Behalf Of Graf, Norman A.
Sent: Monday, January 22, 2018 1:11 PM
To: hps-software; [log in to unmask]
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://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1