Hi,

I am trying to run a steering to reconstruct monte carlo particles generated in slic using the v3 fieldmap geometry. 

After making a directory: fieldmap that contains the *.dat file with the magnetic field, I think I am getting an error with the conditions database, but I'm not sure (perhaps I am entering somthing incorrectly??). 

I've highlighted the errors in the last seciton. Please let me know if anyone has had success running recon/analysis using these fieldmaps.

-Holly

-----------------------------------------------------
I run the following command:
-----------------------------------------------------
java -jar hps-distribution-3.2-SNAPSHOT-bin.jar /Users/hollyvance/Documents/workspace/steering/src/main/resources/org/hps/steering/users/holly/ECalSimReadout.lcsim -i ~/Desktop/CSE_Calib/electron_1pt9GeV_00.slcio -DoutputFile=readout

-----------------------------------------------------------------------

It seems to read the fieldmap and connect to the db:

-----------------------------------------------------------------------

No input files in XML file.

Fri Mar 13 15:56:40 EDT 2015 org.hps.conditions.database.DatabaseConditionsManager setDetector

INFO: new detector HPS-ECalCommissioning-v3-fieldmap and run #0

Fri Mar 13 15:56:40 EDT 2015 org.hps.conditions.database.DatabaseConditionsManager openConnection

INFO: opening connection ... 

connection: jdbc:mysql://hpsdb.jlab.org:3306/

host: hpsdb.jlab.org

port: 3306

user: hpsuser

database: hps_conditions

Fri Mar 13 15:56:40 EDT 2015 org.hps.conditions.database.DatabaseConditionsManager openConnection

INFO: connection opened successfully

-----------------------------------------------------------

FieldMap3D 

-----------------------------------------------------------

Reading the field grid from fieldmap/HPS_125acm2_3kg_unfolded_scaled_1.1.dat ... 

 1 X(mm) 

 2 Y(mm) 

 3 Z(mm) 

 4 BX(T) 

 5 BY(T) 

 6 BZ(T) 

 0 End of Header. Data follows in above format 

-------------------------------------------------------------------

The error is below:

-------------------------------------------------------------------

org.lcsim.conditions.ConditionsManager$ConditionsSetNotFoundException: Error reading detector condition item 'compact.xml' for detector 'HPS-ECalCommissioning-v3-fieldmap'

at org.lcsim.util.loop.DetectorConditionsConverter.getData(DetectorConditionsConverter.java:32)

at org.lcsim.util.loop.DetectorConditionsConverter.getData(DetectorConditionsConverter.java:17)

at org.lcsim.conditions.CachedConditionsImplementation.getCachedData(CachedConditionsImplementation.java:20)

at org.hps.conditions.database.DatabaseConditionsManager.getDetectorObject(DatabaseConditionsManager.java:312)

at org.hps.conditions.svt.SvtDetectorSetup.conditionsChanged(SvtDetectorSetup.java:59)

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.initialize(DatabaseConditionsManager.java:783)

at org.hps.conditions.database.DatabaseConditionsManager.setDetector(DatabaseConditionsManager.java:283)

at org.lcsim.event.base.BaseLCSimEvent.<init>(BaseLCSimEvent.java:52)

at org.lcsim.lcio.LCIOEvent.<init>(LCIOEvent.java:62)

at org.lcsim.lcio.LCIOEvent.<init>(LCIOEvent.java:25)

at org.lcsim.lcio.LCIOReader.read(LCIOReader.java:59)

at org.lcsim.util.loop.LCIOEventSource.next(LCIOEventSource.java:129)

at org.freehep.record.loop.DefaultRecordLoop.fetchRecord(DefaultRecordLoop.java:809)

at org.freehep.record.loop.DefaultRecordLoop.loop(DefaultRecordLoop.java:648)

at org.freehep.record.loop.DefaultRecordLoop.execute(DefaultRecordLoop.java:566)

at org.lcsim.util.loop.LCSimLoop.loop(LCSimLoop.java:151)

at org.lcsim.job.JobControlManager.run(JobControlManager.java:427)

at org.hps.job.JobManager.run(JobManager.java:34)

at org.lcsim.job.JobControlManager.run(JobControlManager.java:185)

at org.hps.job.JobManager.main(JobManager.java:19)

Caused by: org.lcsim.util.xml.ElementFactory$ElementCreationException: Could not create element: class org.lcsim.geometry.field.FieldMap3D

at org.lcsim.util.xml.DefaultElementFactory.create(DefaultElementFactory.java:70)

at org.lcsim.util.xml.DefaultElementFactory.createElement(DefaultElementFactory.java:33)

at org.lcsim.geometry.compact.CompactReader.readFields(CompactReader.java:243)

at org.lcsim.geometry.compact.CompactReader.read(CompactReader.java:103)

at org.lcsim.geometry.GeometryReader.read(GeometryReader.java:45)

at org.lcsim.util.loop.DetectorConditionsConverter.getData(DetectorConditionsConverter.java:26)

... 22 more

Caused by: java.util.NoSuchElementException

at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)

at org.lcsim.geometry.field.FieldMap3D.setup(FieldMap3D.java:112)

at org.lcsim.geometry.field.FieldMap3D.<init>(FieldMap3D.java:51)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

at org.lcsim.util.xml.DefaultElementFactory.create(DefaultElementFactory.java:62)

... 27 more





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