Opened 4 years ago
Last modified 3 years ago
#1492 closed Bug
Bug when installing Delphes in a clean environment — at Version 2
Reported by: | Viesturs | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description (last modified by )
I install Delphes outside LXPLUS as described in https://github.com/delphes/delphes
At step "make" I see bugs at validation/DelphesValidation.cpp
validation/DelphesValidation.cpp:1196:109: error: invalid use of incomplete type ‘class TF1’ 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | class TF1; | ^~~ validation/DelphesValidation.cpp:1199:110: 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | class TF1; | ^~~ validation/DelphesValidation.cpp:1199:127: 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | 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: /home/v/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’ 36 | class TF1;
Change History (2)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
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