Print

Print


Hello Nathan,

It shouldn't be. Composite does something different, and you can see by
looking at "vacuum" that it's designed the same way.

Thanks,

Kyle

On Mar 31, 2017 6:26 PM, "Nathan Baltzell" <[log in to unmask]> wrote:

> maybe you need to use "composite" instead of "fraction" for EJ204 (see
> LeadTungstate)?
>
>
> On Mar 31, 2017, at 6:18 PM, Kyle McCarty <[log in to unmask]> wrote:
>
> > Hello Nathan,
> >
> > That seems to have corrected that error. I guess it was just a
> coincidence it crashed after that SVT module (though this makes more
> sense!).
> >
> > I now get a new error:
> >
> > Exception in thread "main" org.jdom.input.JDOMParseException: Error on
> line 560: cvc-complex-type.4: Attribute 'ref' must appear on element
> 'volumeref'.
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:504)
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
> >         at org.lcsim.geometry.compact.converter.lcdd.Main.convert(
> Main.java:77)
> >         at org.hps.detector.DetectorConverter.run(
> DetectorConverter.java:118)
> >         at org.hps.detector.DetectorConverter.main(
> DetectorConverter.java:53)
> > Caused by: org.xml.sax.SAXParseException; lineNumber: 560; columnNumber:
> 336; cvc-complex-type.4: Attribute 'ref' must appear on element 'volumeref'.
> >         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
> createSAXParseException(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.util.
> ErrorHandlerWrapper.error(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.reportSchemaError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.addDefaultAttributes(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.handleStartElement(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.emptyElement(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentScannerImpl.next(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.next(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> >         at com.sun.org.apache.xerces.internal.parsers.
> AbstractSAXParser.parse(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
> >         ... 4 more
> > Caused by: org.xml.sax.SAXParseException; lineNumber: 560; columnNumber:
> 336; cvc-complex-type.4: Attribute 'ref' must appear on element 'volumeref'.
> >         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
> createSAXParseException(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.util.
> ErrorHandlerWrapper.error(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.reportSchemaError(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.addDefaultAttributes(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.handleStartElement(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.emptyElement(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentScannerImpl.next(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.next(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> >         at com.sun.org.apache.xerces.internal.parsers.
> AbstractSAXParser.parse(Unknown Source)
> >         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
> >         at org.lcsim.geometry.compact.converter.lcdd.Main.convert(
> Main.java:77)
> >         at org.hps.detector.DetectorConverter.run(
> DetectorConverter.java:118)
> >         at org.hps.detector.DetectorConverter.main(
> DetectorConverter.java:53)
> >
> > The string "ref" appears around lines 98 - 125. The "HodoscopeMaterial"
> is the part that I added. I already tried changing the line
> >
> > <D value="1.032" unit="g/cm3"/>
> >
> > to
> >
> > <D type="density" value="1.032" unit="g/cm3"/>
> >
> > to see if that helped, but I get the same error.
> >
> > Thanks,
> >
> > Kyle
> >
> > On Fri, Mar 31, 2017 at 6:01 PM, Nathan Baltzell <[log in to unmask]>
> wrote:
> > Maybe in your compact.xml you need to need to use distinct "module"
> names instead of reusing "MainScoring" (even though they're inside separate
> "detector" tags).
> >
> >
> > On Mar 31, 2017, at 5:33 PM, Kyle McCarty <[log in to unmask]> wrote:
> >
> > > Hello,
> > >
> > > I am trying to create an LCDD file for a positron trigger test
> geometry. This geometry exists in the "iss40" branch on github under
> "HPS-Proposal2017-Hodoscope-v0-4pt4-fieldmap".
> > >
> > > When running, I get this error:
> > >
> > > Downloading...file:/C:/cygwin64/home/Kyle/hps-
> software/hps-java/detector-data/gdml/ecal_vacuum_flange_complete_v1.gdml
> > > Downloading...file:/C:/cygwin64/home/Kyle/hps-
> software/hps-java/detector-data/gdml/svt_chamber_v2.gdml
> > > Exception in thread "main" org.jdom.input.JDOMParseException: Error
> on line 2: cvc-id.2: There are multiple occurrences of ID value
> 'MainScoringVolume_component0_position'.
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:504)
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
> > >         at org.lcsim.geometry.compact.converter.lcdd.Main.convert(
> Main.java:77)
> > >         at org.hps.detector.DetectorConverter.run(
> DetectorConverter.java:118)
> > >         at org.hps.detector.DetectorConverter.main(
> DetectorConverter.java:53)
> > > Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber:
> 165441; cvc-id.2: There are multiple occurrences of ID value
> 'MainScoringVolume_component0_position'.
> > >         at com.sun.org.apache.xerces.internal.util.
> ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.util.
> ErrorHandlerWrapper.error(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.reportSchemaError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.processOneAttribute(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.processAttributes(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.handleStartElement(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.emptyElement(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentScannerImpl.next(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.next(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.
> AbstractSAXParser.parse(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
> > >         ... 4 more
> > > Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber:
> 165441; cvc-id.2: There are multiple occurrences of ID value
> 'MainScoringVolume_component0_position'.
> > >         at com.sun.org.apache.xerces.internal.util.
> ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.util.
> ErrorHandlerWrapper.error(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.reportSchemaError(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.processOneAttribute(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.processAttributes(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.handleStartElement(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.xs.
> XMLSchemaValidator.emptyElement(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentScannerImpl.next(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLNSDocumentScannerImpl.next(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.impl.
> XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.
> XML11Configuration.parse(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> > >         at com.sun.org.apache.xerces.internal.parsers.
> AbstractSAXParser.parse(Unknown Source)
> > >         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
> > >         at org.lcsim.geometry.compact.converter.lcdd.Main.convert(
> Main.java:77)
> > >         at org.hps.detector.DetectorConverter.run(
> DetectorConverter.java:118)
> > >         at org.hps.detector.DetectorConverter.main(
> DetectorConverter.java:53)
> > >
> > > I'm assuming that the error comes from the "svt_chamber_v2.gdml" file.
> Could anyone advise me on how to correct this? (Note that I only changed
> the compact.xml file - none of the associated geometry files. My
> compact.xml also does not contain the variable
> "MainScoringVolume_component0_position".)
> > >
> > > Thanks,
> > >
> > > Kyle
> > >
> > > 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
> >
>
>

########################################################################
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