Hi,
I am using Madgraph5+Pythia6+Delphes-3.2.0 and am attempting to run Example1 (included in post, provided by Delphes). There are a number of issues that I am having:
- Running a compiled Example1.cpp
I’ve tried using the binary as well as compiling, both versions ROOT 5.34 and 6.02. From what I can tell, the program is running normally (ExeROOT6.txt) using ROOT 6. However, no histograms are drawn. That is, nothing appears, not even an empty canvas. With ROOT5 I get:
./Example1 /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/MY_PROCS/sm_pp_wpwm/Events/run_01/wpwm_ATLAS_7TeV_delphes_events.root
dyld: Symbol not found: _gInterpreterMutex
Referenced from: /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/./Example1
Expected in: /Users/vincepascuzzi/sw/root/lib/libCore.so
in /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/./Example1
Trace/BPT trap: 5
- Running Example1.C as a macro
I’ve tried using the binary as well as compiling, both versions ROOT 5.34 and 6.02. In version < 6 the Delphes library would not load:
root [0] .x /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C("/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/MY_PROCS/sm_pp_wpwm/Events/run_01/wpwm_ATLAS_7TeV_delphes_events.root")
dlopen error: dlopen(/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/libDelphes.so, 9): Symbol not found: _gInterpreterMutex
Referenced from: /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/libDelphes.so
Expected in: /Users/vincepascuzzi/sw/root/lib/libCore.so
in /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/libDelphes.so
Load Error: Failed to load Dynamic link library /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/libDelphes.so
Warning: Return value of void Example1() ignored /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:16:
The errors trying version 6 are:
root [0] .x /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C("/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/MY_PROCS/sm_pp_wpwm/Events/run_01/wpwm_ATLAS_7TeV_delphes_events.root")
In file included from input_line_24:1:
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:23:3: error: unknown type
name 'ExRootTreeReader'
ExRootTreeReader *treeReader = new ExRootTreeReader(&chain);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:23:38: error: unknown type
name 'ExRootTreeReader'
ExRootTreeReader *treeReader = new ExRootTreeReader(&chain);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:44:7: error: unknown type
name 'Jet'
Jet *jet = (Jet*) branchJet->At(0);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:44:19: error: use of
undeclared identifier 'Jet'
Jet *jet = (Jet*) branchJet->At(0);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:44:23: error: expected
expression
Jet *jet = (Jet*) branchJet->At(0);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:53:5: error: unknown type
name 'Electron'
Electron *elec1, *elec2;
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:59:16: error: use of
undeclared identifier 'Electron'
elec1 = (Electron *) branchElectron->At(0);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:59:26: error: expected
expression
elec1 = (Electron *) branchElectron->At(0);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:60:7: error: use of
undeclared identifier 'elec2'
elec2 = (Electron *) branchElectron->At(1);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:60:16: error: use of
undeclared identifier 'Electron'
elec2 = (Electron *) branchElectron->At(1);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:60:26: error: expected
expression
elec2 = (Electron *) branchElectron->At(1);
^
/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C:63:40: error: use of
undeclared identifier 'elec2'
histMass->Fill(((elec1->P4()) + (elec2->P4())).M());
I’ve tried setting include directories from within ROOT using gROOT->ProcessLine(".include …") to no avail. When I add the following:
#include <classes/DelphesClasses.h>
#include <external/ExRootAnalysis/ExRootTreeReader.h>
when running from Delphes directory, and get another error:
root [0] .x /Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/Delphes-3.2.0/examples/Example1.C("/Users/vincepascuzzi/sw/MG5_aMC_v2_2_3/MY_PROCS/sm_pp_wpwm/Events/run_01/wpwm_ATLAS_7TeV_delphes_events.root")
IncrementalExecutor::executeFunction: symbol '_ZN16ExRootTreeReader9ReadEntryEx' unresolved while linking function'_Z15__cling_Un1Qu30Pv'!
IncrementalExecutor::executeFunction: symbol '_ZN16ExRootTreeReader9UseBranchEPKc' unresolved while linking function'_Z15__cling_Un1Qu30Pv'!
IncrementalExecutor::executeFunction: symbol '_ZN16ExRootTreeReaderC1EP5TTree' unresolved while linking function'_Z15__cling_Un1Qu30Pv'!
IncrementalExecutor::executeFunction: symbol '_ZN8Electron2P4Ev' unresolved while linking function'_Z15__cling_Un1Qu30Pv'!
I am on OS X 10.10.2. My environment is in env.txt. Please let me know if there is any additional information I can provide.
Thank you in advance,
Vince.
Example1.C (1.96 KB)
Example1.cpp (2.2 KB)
env.txt (1.94 KB)