Create ROOT file

I wanna to create a root file. Actually I wanna to create Ntuple, but I have an error massage with TFile. The error massage is: incomplete type is not allowed.
May some one help me?

TFile* F = new TFile("test.root", "RECREATE");

Which error message ?

As I said I have an incomplete type error but I don’t know what is wrong.

can you post a small macro reproducing the problem ?

This the first part of my code. When I wanna to create a TFile I have error massage.

#include “TApplication.h”
#include “TNtuple.h”
#include “TCanvas.h”
#include “TGraph.h”
#include “TLeaf.h”
#include “TH1I.h”

using namespace std;

void ReadFromTTree() {

const int NrSamples = 500000;
const int NrSamplesPerEvent = 5000;
int NrEvents = NrEvents = NrSamples / NrSamplesPerEvent;

int Amplitude[NrEvents][NrSamplesPerEvent];

TFile* file = new TFile("Fille.root");
TTree* tree = (TTree*)file->Get("myTree");

At least:

#include "TFile.h"
#include "TTree.h"

Thank you, I didn’t know TFile has a library. The problem solved :slightly_smiling_face: