Mu2e / REve

Eve-7 based event display
Apache License 2.0
0 stars 11 forks source link

Please find the gdml file relative to MU2E_SEARCH_PATH #141

Closed kutschke closed 6 months ago

kutschke commented 6 months ago

If I am using REve by

setup mu2e muse setup REve v4_00_00 mu2e -c /cvmfs/mu2e.opensciencegrid.org/Musings/REve/v4_00_00/REve/examples/extracted_example.fcl -s file.art

I get an error opening the gdml file:

Info in : Reading geometry from file: REve/mu2e.gdml Info in : Geometry GDMLImport, Geometry imported from GDML created Error in : Unexpected end of xml file Error in : Cannot read file REve/mu2e.gdml Segmentation fault

The soluton is to search for the GDML file relative to MU2E_SEARCH_PATH

The best place to do that is here:

https://github.com/Mu2e/REve/blob/a2e38bdb328e58dc525b31a0b634561733406dce/src/REveEventDisplay_module.cc#L232

You could also do it just before here: https://github.com/Mu2e/REve/blob/a2e38bdb328e58dc525b31a0b634561733406dce/src/REveEventDisplay_module.cc#L454

rlcee commented 6 months ago

In Muse, your search path will always include something like: /cvmfs/mu2e.opensciencegrid.org/Musings/Offline/v10_27_00/build/sl7-prof-e28-p055 so you can find a gdml file relative to that location, as Offline/gen/gdml/mu2e.gdml

Note, this gdml file is part of every official build of Offline, but it does not happen by default, when you "muse build" locally. You have to ask for it, like "muse build GDML"

sophiemiddleton commented 6 months ago

this is now setup for the nominal geometry but I'm having an issue with extracted for some strange reason

kutschke commented 6 months ago

Is your working area on a machine that I can see - if so please point me to it.

sophiemiddleton commented 6 months ago

give me a few mins, it could be the dataset just needed prestaging, will let you know if that was the issue (the error messages as Dave pointed out are pretty cryptic)

brownd1978 commented 6 months ago

I have no problem running REve on extracted data with REve checked out.

On Mon, Feb 19, 2024 at 7:09 AM Sophie Middleton @.***> wrote:

give me a few mins, it could be the dataset just needed prestaging, will let you know if that was the issue (the error messages as Dave pointed out are pretty cryptic)

— Reply to this email directly, view it on GitHub https://github.com/Mu2e/REve/issues/141#issuecomment-1952649923, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAH576ZAT5LRCYGWXQ4JGTYUNTI5AVCNFSM6AAAAABDK5XRGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJSGY2DSOJSGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- David Brown @.*** Office Phone (510) 486-7261 Lawrence Berkeley National Lab M/S 50R5008 (50-6026C) Berkeley, CA 94720

sophiemiddleton commented 6 months ago

no its the path which might be wrong, which data set are you using?

sophiemiddleton commented 6 months ago

OK, it was a dataset issue, so will put in PR now with the fixes