Fork me on GitHub

Opened 10 years ago

Last modified 10 years ago

#536 new Bug

Error on examples 4 and display

Reported by: Bryan Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description (last modified by Pavel Demin)

I am just starting out with Delphes, so I am probably making an easy mistake. Following through the README, I was able to install Delphes and run the first 3 examples. However, examples 4 and the event display do not seem to work. Specifically for the event display, when I enter

root -l examples/EventDisplay.C'("cards/delphes_card_CMS.tcl","delphes_output.root")'

I get out

Processing examples/EventDisplay.C("cards/delphes_card_CMS.tcl","delphes_output.root")...
Error in <TUnixSystem::DynamicPathName>: libDelphesDisplay[.so | .dll | .dylib | .sl | .dl | .a] does not exist in :/Users/Bryan/Tools/root/lib:/Users/Bryan/Tools/root/lib::/Users/Bryan/Tools/root/lib::.:/Users/Bryan/Tools/root/lib/root::/Users/Bryan/Tools/root/lib/root/cint/cint/stl
Info in <TGeoManager::TGeoManager>: Geometry delphes, Delphes geometry created
Warning in <TGeoManager::Init>: Deleting previous geometry: delphes/Delphes geometry
Info in <TGeoManager::TGeoManager>: Geometry delphes, Delphes geometry created
Error: Invalid type 'Delphes3DGeometry' in declaration of 'det3D' examples/EventDisplay.C:34:
Error: Function Delphes3DGeometry det3D(new TGeoManager("delphes","Delphes geometry"),true) is not defined in current scope  examples/EventDisplay.C:34:
*** Interpreter error recovered ***

It seems that it cannot find libDelphesDisplay, but is looking for it in the rootpath directory. Looking through the Delphes directory, a library called libDelphesDisplay.

Any suggestions on what I am doing wrong?

Change History (4)

comment:1 by Pavel Demin, 10 years ago

Description: modified (diff)

comment:2 by Pavel Demin, 10 years ago

I've just tried to run the event display following the instructions at

https://cp3.irmp.ucl.ac.be/projects/delphes/wiki/WorkBook/EventDisplay

and I have some quite differenet problems.

I'm using MacOSX 10.10, ROOT 5.34.28 and Delphes 3.2.0.

The commands are

make display
root -l examples/EventDisplay.C'("cards/delphes_card_CMS.tcl","delphes_output.root")'

The first command produce the following error:

>> Building libDelphesDisplay.so
Undefined symbols for architecture x86_64:
  "Delphes3DGeometry::loadFromFile(char const*, char const*)", referenced from:
      G__DisplayDict_853_0_3(G__value*, char const*, G__param*, int) in DisplayDict.o
  "Delphes3DGeometry::save(char const*, char const*)", referenced from:
      G__DisplayDict_853_0_4(G__value*, char const*, G__param*, int) in DisplayDict.o

The fix is to remove the unimplemented loadFromFile and save methods from Delphes3DGeometry.h. This fix is already in the source code repository.

The second command produces the following error:

Error in <TF2::GetRandom2>: Integral of function is zero

but event display appears and seems to work.

comment:3 by Pavel Demin, 10 years ago

As an intermediate solution, could you remove loadFromFile and save methods from display/Delphes3DGeometry.h and then rerun the two commands?

make display
root -l examples/EventDisplay.C'("cards/delphes_card_CMS.tcl","delphes_output.root")'

in reply to:  3 comment:4 by Bryan, 10 years ago

Replying to pavel:

As an intermediate solution, could you remove loadFromFile and save methods from display/Delphes3DGeometry.h and then rerun the two commands?

make display
root -l examples/EventDisplay.C'("cards/delphes_card_CMS.tcl","delphes_output.root")'

This fixed the problem and the event display now works correctly.

Note: See TracTickets for help on using tickets.