Fork me on GitHub

Opened 9 years ago

Last modified 9 years ago

#659 new Bug

Error running example 4

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

Description

I am not able to run the event display in example 4. I had no problems in version 3.1.2. It seems like the Delphes3DGeometry library is not being loaded correctly. I am using OSX 10.10.3 with ROOT version 6.02/05.

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

I get back the following.

Processing examples/EventDisplay.C("cards/delphes_card_CMS.tcl","delphes_output.root")...
In file included from input_line_24:1:
Delphes-3.2.0/./examples/EventDisplay.C:22:5: error: unknown type name 'Delphes3DGeometry'

Delphes3DGeometry det3D_geom(new TGeoManager("delphes", "Delphes geometry"), false);

Delphes-3.2.0/./examples/EventDisplay.C:22:38: error: unknown type name 'TGeoManager'

Delphes3DGeometry det3D_geom(new TGeoManager("delphes", "Delphes geometry"), false);


Delphes-3.2.0/./examples/EventDisplay.C:31:5: error: unknown type name 'Delphes3DGeometry'

Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"), true);

Delphes-3.2.0/./examples/EventDisplay.C:31:33: error: unknown type name 'TGeoManager'

Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"), true);


Delphes-3.2.0/./examples/EventDisplay.C:35:5: error: unknown type name 'DelphesEventDisplay'

DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);

Delphes-3.2.0/./examples/EventDisplay.C:35:40: error: unknown type name 'DelphesEventDisplay'

DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);

If I load the library in CINT with gSystem->Load("libDelphesDisplay") and declare a Delphes3DGeometry object, I get the error:

error: variable has incomplete type 'Delphes3DGeometry'
Delphes3DGeometry det3D_geom


input_line_65:12:77: note: forward declaration of 'Delphes3DGeometry'
class attribute((annotate("$clingAutoload$display/DisplayLinkDef.h"))) Delphes3DGeometry;

Change History (2)

comment:1 by Pavel Demin, 9 years ago

There is another ticket about this problem (#444).

All the Delphes examples were tested and are still working with ROOT 5.

The main source of the problem is that the following code does not work with ROOT 6:

void f() {gSystem->Load("libEvent"); Event* e = new Event();}

Here is the link confirming this:

https://root.cern.ch/drupal/content/way-root-6

The only workaround that I can propose is to use Delphes with ROOT 5.

comment:2 by Pavel Demin, 9 years ago

New version of the examples and EventDisplay now works with ROOT 6.04. It will be included in the next release.

Note: See TracTickets for help on using tickets.