TH3 compiler error in expert mode

Asked by Philipp Pigard

Dear MA team,

I am trying to include some TH2D and TH3D histograms in the MA expert mode. For the declaration in user.h
...
Histo* H16_;
TH3D* DetaPtM;
...
I get the compiler error:

In file included from Analyzer/analysisList.cpp:2:0:
./../SampleAnalyzer/Analyzer/user.h:43:3: error: 'TH3D' does not name a type

Now I tried to include TH3.h to no avail. Is there a way to use TH2/3 in the MA expert framework?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Philipp,

With the proper "include"s, it should work out of the box. Could you please send me the full working directory (fuks_at_cern,ch), so that I could have a look?

Cheers,

Benjamin

Revision history for this message
Best Benjamin Fuks (fuks) said :
#2

Hi Philipp,

Thanks for the files. By including TH3.h in user.h, the compilation should work out of the box.

Cheers,

Benjamin

Revision history for this message
Benjamin Fuks (fuks) said :
#3

Note that my root version is 5.34/14.

Revision history for this message
Philipp Pigard (p-pigard) said :
#4

Thanks Benjamin Fuks, that solved my question.