Fork me on GitHub

Opened 3 years ago

Last modified 3 years ago

#1518 new Bug

Errors while installing Delphes — at Version 2

Reported by: Pablo Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: DelphesValidation.o Cc:

Description (last modified by Pavel Demin)

Hello,
I'm trying to install Delphes-3.4.2 on ubuntu 20 and I'm getting this in the terminal:

>> Compiling validation/DelphesValidation.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’
 1196 | 1", "gaus", hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + 2 * hist->GetRMS());
      |                                                                                       ^

In file included from validation/DelphesValidation.cpp:32:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:37: error: invalid use of incomplete type ‘class TF1’
 1199 |   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:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:63: error: invalid use of incomplete type ‘class TF1’
 1199 |   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:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:84: error: invalid use of incomplete type ‘class TF1’
 1199 |   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:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:110: error: invalid use of incomplete type ‘class TF1’
 1199 | ", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                                                                       ^~

In file included from validation/DelphesValidation.cpp:32:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:127: error: invalid use of incomplete type ‘class TF1’
 1199 | tParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                                                                       ^

In file included from validation/DelphesValidation.cpp:32:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1202:20: error: invalid use of incomplete type ‘class TF1’
 1202 |   Double_t sig = f2->GetParameter(2);
      |                    ^~
In file included from validation/DelphesValidation.cpp:32:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1203:23: error: invalid use of incomplete type ‘class TF1’
 1203 |   Double_t sigErr = f2->GetParError(2);
      |                       ^~
In file included from validation/DelphesValidation.cpp:32:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1205:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
 1205 |   delete f1;
      |          ^~
validation/DelphesValidation.cpp:1196:8: warning: ‘f1’ has incomplete type
 1196 |   TF1 *f1 = new TF1("f1", "gaus", hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + 2 * hist->GetRMS());
      |        ^~
In file included from validation/DelphesValidation.cpp:32:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | 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
 1205 |   delete f1;
      |          ^~
validation/DelphesValidation.cpp:1206:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
 1206 |   delete f2;
      |          ^~
validation/DelphesValidation.cpp:1199:8: warning: ‘f2’ has incomplete type
 1199 |   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:
/snap/root-framework/320/usr/local/include/TGraph.h:37:7: note: forward declaration of ‘class TF1’
   37 | 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
 1206 |   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]
 1497 |   TClonesArray *branchParticleBJet = treeReaderBJet->UseBranch("Particle");
      |                 ^~~~~~~~~~~~~~~~~~
validation/DelphesValidation.cpp:1500:17: warning: unused variable ‘branchParticleCJet’ [-Wunused-variable]
 1500 |   TClonesArray *branchParticleCJet = treeReaderCJet->UseBranch("Particle");
      |                 ^~~~~~~~~~~~~~~~~~
make: *** [Makefile:2447: tmp/validation/DelphesValidation.o] Error 1

Change History (2)

comment:1 by Pavel Demin, 3 years ago

This problem is fixed in the latest version (3.5.0). Please try to use the latest version. It can be downloaded from the following link:
http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.5.0.tar.gz

comment:2 by Pavel Demin, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.