Profile

Hello

I have 32 TH2F histo tot_tdrif_4[channels]. I want to make 32 profiles to X:
TProfile *wydajnosc123[32];
wydajnosc123[channels] = tot_tdrif_4[channels] -> ProfileX(wydajnosc123[channels],0,150);
wydajnosc123[channels] ->Write();

When i compile the macro in root i get:

/home/j/root/macros/geo_straw_1.C:383: error: invalid use of incomplete type ‘struct TProfile’
/home/j/root/include/TH2.h:34: error: forward declaration of ‘struct TProfile’

Cheers

#include “TProfile.h”