Opened 4 years ago
Closed 3 years ago
#1488 closed Bug (fixed)
ROOT version compatible with Delphes-3.4.2
Reported by: | Amandeep | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
Dear experts,
I am wondering which root version shall I use for installing Delphes on my working area as the compilation step gave me the following error (*). Please let me know
Thanks & regards,
Amandeep
(*)
make -j 4
make: Circular external/fastjet/JetDefinition.hh <- external/fastjet/ClusterSequence.hh dependency dropped.
Compiling validation/DelphesValidation.cpp
Compiling readers/DelphesHepMC.cpp
Compiling readers/DelphesLHEF.cpp
Compiling readers/DelphesROOT.cpp
validation/DelphesValidation.cpp: In function ‘std::pair<double, double> GausFit(TH1*)’:
validation/DelphesValidation.cpp:1196:109: error: invalid use of incomplete type ‘class TF1’
TF1 *f1 = new TF1("f1", "gaus", hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + 2 * hist->GetRMS());
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1199:37: error: invalid use of incomplete type ‘class TF1’
TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1199:63: error: invalid use of incomplete type ‘class TF1’
TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1199:84: error: invalid use of incomplete type ‘class TF1’
TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1199:110: error: invalid use of incomplete type ‘class TF1’
TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1199:127: error: invalid use of incomplete type ‘class TF1’
TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1202:20: error: invalid use of incomplete type ‘class TF1’
Double_t sig = f2->GetParameter(2);
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1203:23: error: invalid use of incomplete type ‘class TF1’
Double_t sigErr = f2->GetParError(2);
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: error: forward declaration of ‘class TF1’
class TF1;
validation/DelphesValidation.cpp:1205:10: warning: possible problem detected in invocation of delete operator: [enabled by default]
delete f1;
validation/DelphesValidation.cpp:1196:8: warning: ‘f1’ has incomplete type [enabled by default]
TF1 *f1 = new TF1("f1", "gaus", hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + 2 * hist->GetRMS());
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: warning: forward declaration of ‘class TF1’ [enabled by default]
class TF1;
validation/DelphesValidation.cpp:1205:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
delete f1;
validation/DelphesValidation.cpp:1206:10: warning: possible problem detected in invocation of delete operator: [enabled by default]
delete f2;
validation/DelphesValidation.cpp:1199:8: warning: ‘f2’ has incomplete type [enabled by default]
TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
In file included from validation/DelphesValidation.cpp:32:0:
/usr/include/root/TGraph.h:36:7: warning: forward declaration of ‘class TF1’ [enabled by default]
class TF1;
validation/DelphesValidation.cpp:1206:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
delete f2;
validation/DelphesValidation.cpp: In function ‘void DelphesValidation(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)’:
validation/DelphesValidation.cpp:1497:17: warning: unused variable ‘branchParticleBJet’ [-Wunused-variable]
TClonesArray *branchParticleBJet = treeReaderBJet->UseBranch("Particle");
validation/DelphesValidation.cpp:1500:17: warning: unused variable ‘branchParticleCJet’ [-Wunused-variable]
TClonesArray *branchParticleCJet = treeReaderCJet->UseBranch("Particle");
Compiling readers/DelphesSTDHEP.cpp
Building DelphesHepMC
Building DelphesLHEF
make: * [tmp/validation/DelphesValidation.o] Error 1
make: * Waiting for unfinished jobs....
Change History (3)
comment:1 by , 4 years ago
comment:3 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The fix is in the new release (3.5.0).
This error was already discussed in #1448 and the fix is in the git repository.
Please try the latest version from the following link:
https://github.com/delphes/delphes/archive/master.zip