void TTree_test() { gROOT->Reset(); TCanvas *c1 = new TCanvas(); TFile *f = new TFile("data1.root","RECREATE"); TH1F *h1 = new TH1F("g1","x distribution",100,-4,4); TTree *T = new TTree("ntuple","data from ascii file"); Long64_t nlines = T->ReadFile("2019-06-03_13-36-14_60minutos.txt","a1/I:a2/I:a3/I:a4/I:a5/I:a6/I"); T->SetLineWidth(2); T->SetMarkerStyle(7); T->SetMarkerColor(kRed); T->SetTitle("Coincidences"); printf("found %lld pointsn",nlines); T->Draw("a3"," a4 && a6 && a3"); //gPad->SetLogy(); T->Write(); }