I think we just need to suppress this error message after it prints once.  Probably it is slowing down the job massively to send this many print outs to stderr.

Can you put a sample calibration file for me someplace where I can get it on ifarm?  I'll try to take a look at it.
From: [log in to unmask] <[log in to unmask]> on behalf of Andrea Celentano <[log in to unmask]>
Sent: Monday, May 6, 2019 9:16:41 AM
To: hps-software
Subject: Analysis of 2019 LED data with hps-java: errors with conditions system
 
Dear all,
I'd like to use HPS-java to analyze LED data just taken. The two run numbers are: 81 and 82.

 In the past (2016 run), the command I used to perform this task was:

java -cp /path/to/hps-distribution-VERSION-SNAPSHOT-bin.jar org.hps.evio.EvioToLcio -d DETECTOR_NAME -r -x /org/hps/steering/monitoring/EcalLedSequenceStandalone.lcsim led_data/hpsecal_000081.evio.00000 -b -DoutputFile=000081.histo

* As DETECTOR_NAME, I always used HPS-ECalCommissioning.

I get the following condition-system related errors.

1) If I use hps-distribution-4.1-SNAPSHOT-bin.jar, the error is:

[...]
2019-05-06 18:12:36 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager setDetector :: Initializing conditions system with detector 'HPS-ECalCommissioning' and run 81
2019-05-06 18:12:36 [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
[...]
2019-05-06 18:12:44 [INFO] org.hps.detector.svt.SvtDetectorSetup loadTestRun :: loading Test Run SVT conditions onto subdetector Tracker
2019-05-06 18:12:44 [INFO] org.hps.detector.svt.SvtDetectorSetup loadTestRun :: setting up 36 SVT sensors
2019-05-06 18:12:44 [INFO] org.hps.detector.svt.SvtDetectorSetup loadTestRun :: channel map has 12800 entries
Exception in thread "main" java.lang.ClassCastException: org.lcsim.detector.tracker.silicon.HpsSiSensor cannot be cast to org.lcsim.detector.tracker.silicon.HpsTestRunSiSensor
    at org.hps.detector.svt.SvtDetectorSetup.loadTestRun(SvtDetectorSetup.java:233)
    at org.hps.detector.svt.SvtDetectorSetup.conditionsChanged(SvtDetectorSetup.java:95)
    at org.lcsim.conditions.ConditionsManagerImplementation.fireConditionsChanged(ConditionsManagerImplementation.java:122)
    at org.lcsim.conditions.ConditionsManagerImplementation.setConditionsReader(ConditionsManagerImplementation.java:69)
    at org.lcsim.conditions.ConditionsManagerImplementation.setDetector(ConditionsManagerImplementation.java:53)
    at org.hps.conditions.database.DatabaseConditionsManager.setDetector(DatabaseConditionsManager.java:712)
    at org.hps.evio.EvioToLcio.checkConditions(EvioToLcio.java:229)
    at org.hps.evio.EvioToLcio.bufferEvents(EvioToLcio.java:202)
    at org.hps.evio.EvioToLcio.run(EvioToLcio.java:514)
    at org.hps.evio.EvioToLcio.main(EvioToLcio.java:92)


2) If I use hps-distribution-4.4-SNAPSHOT-bin.jar, the error is:

[...]
2019-05-06 18:03:29 [CONFIG] org.hps.conditions.database.DatabaseConditionsManager setDetector :: Initializing conditions system with detector 'HPS-ECalCommissioning' and run 81
Exception in thread "main" java.lang.NullPointerException
    at org.lcsim.conditions.ConditionsManagerImplementation.registerConditionsConverter(ConditionsManagerImplementation.java:78)
    at org.hps.conditions.database.DatabaseConditionsManager.registerConverters(DatabaseConditionsManager.java:748)
    at org.hps.conditions.database.DatabaseConditionsManager.setDetector(DatabaseConditionsManager.java:791)
    at org.hps.evio.EvioToLcio.checkConditions(EvioToLcio.java:229)
    at org.hps.evio.EvioToLcio.bufferEvents(EvioToLcio.java:202)
    at org.hps.evio.EvioToLcio.run(EvioToLcio.java:514)
    at org.hps.evio.EvioToLcio.main(EvioToLcio.java:92)

I also tried to change the detector to the one used in 2016 pass-0 (HPS-PhysicsRun2016-Nominal-v4-4-fieldmap), I get same errors as before.

Thanks in advance,
Bests,
Andrea


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