Opened 2 years ago
Last modified 2 years ago
#1566 new Bug
Error in compiling example files after succesful installation
Reported by: | J Dutta | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
Dear experts,
I am currently using Delphes-v3.5.0 and installed it successfully without errors. I could also convert hepmc files to root without errors. But while running
root -l .x examples/Example2.C("ttz70.root")'
I receive the following error:
Error in <TApplication::ExecuteFile>: macro examples/Example2.C("ttz70.root")' not found in path .:/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6.20.06-9e6ed/x86_64-centos7-gcc8-opt/macros
I have checked the root files, and the same error occurs for any root file.
I am using a globally installed root v6.20.06 on a linux cluster. Could you please kindly let me know how may I resolve this error?
Looking forward to your advice and suggestions,
With best regards,
Juhi
Change History (5)
comment:1 by , 2 years ago
Priority: | minor → major |
---|
comment:2 by , 2 years ago
There are currently no ROOT 6 compatibility issues.
The command in your first comment does not seem correct.
The correct command is
root -l examples/Example2.C'("delphes_output.root")'
comment:3 by , 2 years ago
Dear Sir,
Thank you for pointing it out, I now run the correct command:
root -l examples/Example2.C'("delphes_output.root")'
But I still receive some error messages:
Processing examples/Example2.C("delphes_output.root")...
libClassesDict dictionary payload:5:10: fatal error: '/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/classes/DelphesModule.h' file not found
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/classes/DelphesModule.h"
Error in <TInterpreter::AutoParse>: Error parsing payload code for class Candidate with content:
#line 1 "libClassesDict dictionary payload"
#define _BACKWARD_BACKWARD_WARNING_H
Inline headers
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/classes/DelphesModule.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/classes/DelphesFactory.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/classes/SortableObject.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/classes/DelphesClasses.h"
/*
- Delphes: a framework for fast simulation of a generic collider experiment
- Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium *
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version. *
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details. *
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
*
- Lists classes to be included in cint dicitonary *
- \author P. Demin - UCL, Louvain-la-Neuve * */
#include "classes/DelphesModule.h"
#include "classes/DelphesFactory.h"
#include "classes/SortableObject.h"
#include "classes/DelphesClasses.h"
#ifdef CINT
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class DelphesModule+;
#pragma link C++ class DelphesFactory+;
#pragma link C++ class SortableObject+;
#pragma link C++ class Event+;
#pragma link C++ class LHCOEvent+;
#pragma link C++ class LHEFEvent+;
#pragma link C++ class LHEFWeight+;
#pragma link C++ class HepMCEvent+;
#pragma link C++ class GenParticle+;
#pragma link C++ class Vertex+;
#pragma link C++ class MissingET+;
#pragma link C++ class ScalarHT+;
#pragma link C++ class Rho+;
#pragma link C++ class Weight+;
#pragma link C++ class Photon+;
#pragma link C++ class Electron+;
#pragma link C++ class Muon+;
#pragma link C++ class Jet+;
#pragma link C++ class Track+;
#pragma link C++ class Tower+;
#pragma link C++ class ParticleFlowCandidate+;
#pragma link C++ class HectorHit+;
#pragma link C++ class Candidate+;
#endif
#undef _BACKWARD_BACKWARD_WARNING_H
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:14:10: fatal error: 'external/ExRootAnalysis/ExRootTreeReader.h' file not found
#include "external/ExRootAnalysis/ExRootTreeReader.h"
~
Error in <TInterpreter::AutoParse>: Error parsing payload code for class ExRootResult with content:
#line 1 "libExRootAnalysisDict dictionary payload"
#define _BACKWARD_BACKWARD_WARNING_H
Inline headers
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootClassifier.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootConfReader.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootFilter.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootProgressBar.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootResult.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTask.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTreeBranch.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTreeReader.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTreeWriter.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootUtilities.h"
/ \class ExRootAnalysisLinkDef
*
- Lists classes to be included in cint dicitonary *
- \author P. Demin - UCL, Louvain-la-Neuve * */
#include "ExRootAnalysis/ExRootTreeReader.h"
#include "ExRootAnalysis/ExRootTreeWriter.h"
#include "ExRootAnalysis/ExRootTreeBranch.h"
#include "ExRootAnalysis/ExRootResult.h"
#include "ExRootAnalysis/ExRootUtilities.h"
#include "ExRootAnalysis/ExRootClassifier.h"
#include "ExRootAnalysis/ExRootFilter.h"
#include "ExRootAnalysis/ExRootProgressBar.h"
#include "ExRootAnalysis/ExRootConfReader.h"
#include "ExRootAnalysis/ExRootTask.h"
#ifdef CINT
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class ExRootTreeReader+;
#pragma link C++ class ExRootTreeBranch+;
#pragma link C++ class ExRootTreeWriter+;
#pragma link C++ class ExRootResult+;
#pragma link C++ class ExRootClassifier+;
#pragma link C++ class ExRootFilter+;
#pragma link C++ class ExRootProgressBar+;
#pragma link C++ class ExRootConfReader+;
#pragma link C++ class ExRootConfParam+;
#pragma link C++ class ExRootTask+;
#pragma link C++ function HistStyle;
#pragma link C++ function FillChain;
#endif
#undef _BACKWARD_BACKWARD_WARNING_H
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:42:28: error: member access into incomplete type 'ExRootResult'
plots->fJetPT[0] = result->AddHist1D(
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:47:28: error: member access into incomplete type 'ExRootResult'
plots->fJetPT[1] = result->AddHist1D(
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:57:17: error: member access into incomplete type 'ExRootResult'
stack = result->AddHistStack("jet_pt_all", "1st and 2nd jets P_{T}");
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:63:18: error: member access into incomplete type 'ExRootResult'
legend = result->AddLegend(0.72, 0.86, 0.98, 0.98);
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:69:9: error: member access into incomplete type 'ExRootResult'
result->Attach(stack, legend);
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:73:30: error: member access into incomplete type 'ExRootResult'
plots->fElectronPT = result->AddHist1D(
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:78:29: error: member access into incomplete type 'ExRootResult'
plots->fMissingET = result->AddHist1D(
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:85:19: error: member access into incomplete type 'ExRootResult'
comment = result->AddComment(0.64, 0.86, 0.98, 0.98);
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:91:9: error: member access into incomplete type 'ExRootResult'
result->Attach(plots->fJetPT[0], comment);
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:92:9: error: member access into incomplete type 'ExRootResult'
result->Attach(plots->fJetPT[1], comment);
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:93:9: error: member access into incomplete type 'ExRootResult'
result->Attach(plots->fElectronPT, comment);
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
libExRootAnalysisDict dictionary payload:5:10: fatal error: '/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootClassifier.h' file not found
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootClassifier.h"
~
Error in <TInterpreter::AutoParse>: Error parsing payload code for class ExRootTreeReader with content:
#line 1 "libExRootAnalysisDict dictionary payload"
#define _BACKWARD_BACKWARD_WARNING_H
Inline headers
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootClassifier.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootConfReader.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootFilter.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootProgressBar.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootResult.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTask.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTreeBranch.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTreeReader.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootTreeWriter.h"
#include "/workspace/build/projects/delphes-3.4.3pre01/src/delphes/3.4.3pre01/external/ExRootAnalysis/ExRootUtilities.h"
/ \class ExRootAnalysisLinkDef
*
- Lists classes to be included in cint dicitonary *
- \author P. Demin - UCL, Louvain-la-Neuve * */
#include "ExRootAnalysis/ExRootTreeReader.h"
#include "ExRootAnalysis/ExRootTreeWriter.h"
#include "ExRootAnalysis/ExRootTreeBranch.h"
#include "ExRootAnalysis/ExRootResult.h"
#include "ExRootAnalysis/ExRootUtilities.h"
#include "ExRootAnalysis/ExRootClassifier.h"
#include "ExRootAnalysis/ExRootFilter.h"
#include "ExRootAnalysis/ExRootProgressBar.h"
#include "ExRootAnalysis/ExRootConfReader.h"
#include "ExRootAnalysis/ExRootTask.h"
#ifdef CINT
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class ExRootTreeReader+;
#pragma link C++ class ExRootTreeBranch+;
#pragma link C++ class ExRootTreeWriter+;
#pragma link C++ class ExRootResult+;
#pragma link C++ class ExRootClassifier+;
#pragma link C++ class ExRootFilter+;
#pragma link C++ class ExRootProgressBar+;
#pragma link C++ class ExRootConfReader+;
#pragma link C++ class ExRootConfParam+;
#pragma link C++ class ExRootTask+;
#pragma link C++ function HistStyle;
#pragma link C++ function FillChain;
#endif
#undef _BACKWARD_BACKWARD_WARNING_H
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:103:39: error: member access into incomplete type 'ExRootTreeReader'
TClonesArray *branchJet = treeReader->UseBranch("Jet");
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:104:44: error: member access into incomplete type 'ExRootTreeReader'
TClonesArray *branchElectron = treeReader->UseBranch("Electron");
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:105:45: error: member access into incomplete type 'ExRootTreeReader'
TClonesArray *branchMissingET = treeReader->UseBranch("MissingET");
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:107:35: error: member access into incomplete type 'ExRootTreeReader'
Long64_t allEntries = treeReader->GetEntries();
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:123:15: error: member access into incomplete type 'ExRootTreeReader'
treeReader->ReadEntry(entry);
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:155:9: error: member access into incomplete type 'ExRootResult'
result->Print("png");
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:167:38: error: allocation of incomplete type 'ExRootTreeReader'
ExRootTreeReader *treeReader = new ExRootTreeReader(chain);
~
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:168:30: error: allocation of incomplete type 'ExRootResult'
ExRootResult *result = new ExRootResult();
~
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:178:9: error: member access into incomplete type 'ExRootResult'
result->Write("results.root");
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:183:3: warning: deleting pointer to incomplete type 'ExRootResult' may cause undefined behavior [-Wdelete-incomplete]
delete result;
libExRootAnalysisDict dictionary forward declarations' payload:8:82: note: forward declaration of 'ExRootResult'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootResult.h"))) ExRootResult;
In file included from input_line_117:1:
/raid05/users/jdutta/Delphes-3.5.0/examples/Example2.C:184:3: warning: deleting pointer to incomplete type 'ExRootTreeReader' may cause undefined behavior [-Wdelete-incomplete]
delete treeReader;
libExRootAnalysisDict dictionary forward declarations' payload:5:86: note: forward declaration of 'ExRootTreeReader'
class attribute((annotate("$clingAutoload$ExRootAnalysis/ExRootTreeReader.h"))) ExRootTreeReader;
I am not sure why these errors are showing up. Any advice from your end to resolve this would be helpful for me.
Best regards,
Juhi
comment:4 by , 2 years ago
The error message indicates that two different versions of Delphes (3.4.3pre01 and 3.5.0) are mixed. I would recommend removing them both and reinstalling Delphes 3.5.0.
comment:5 by , 2 years ago
Dear experts,
Thank you for pointing this out. This issue is now resolved.
Best regards,
Juhi
Dear experts,
This ticket in the ROOT forum (https://root-forum.cern.ch/t/issues-related-to-delphes-exrootanalysis/19033) suggests Root 6 is not compatible with Delphes but since it is a very old link, could you please kindly confirm if this incompatibility still exists?
Could this be the reason for the error I receive or maybe I am missing something else?
Best regards,
Juhi