{
	gROOT->Reset();
	gROOT->SetStyle("Plain");
	//TCanvas c1("name","XML vs CSV", 200, 10, 600, 400);
	c1 = new TCanvas("c1","XML vs CSV", 200, 10, 600, 400 );
	c1->Divide(1,2);
	c1->SetGrid();
	
	#include <fstream.h>
	float num[10010], xmldata[10010];
	ifstream data("ex1xml.csv");
	int index = 0;
	TH1S h1("ex1xml", "EX1 Read XML data", 150, 0, 5 );
	h1.GetXaxis()->SetLabelFont(112);
	while ( !data.eof() ) {
		data >> num[index] >> xmldata[index];
		h1.Fill(xmldata[index]);
		index++;
	}
	data.close();
	c1.cd(1);
	h1.Draw();
	h1.GetXaxis().SetTitle("time[ms]");
	h1.GetYaxis().SetTitle("number of Events");
	h1.SetFillColor(4);
	h1.SetFillStyle(3002);
	h1.Fit("gaus");
	gStyle->SetOptFit();

	TH1S h2("ex1csv", "EX1 Read CSV file", 150, 0, 5);
	float num1[10010], csvdata[10010];
	ifstream data("ex1csv.csv");
	int index = 0;
	
	while ( !data.eof() ) {
		data >> num1[index] >> csvdata[index];
		h2.Fill(csvdata[index]);
		index++;
	}
	data.close();
	c1->cd(2);
	h2.GetXaxis().SetTitle("time[ms]");
	h2.GetYaxis().SetTitle("number of Events");
	h2.SetFillColor(4);
	h2.SetFillStyle(3002);
	h2.Draw();

	h2.Fit("gaus");
	gStyle->SetOptFit();

	c1->cd(1);
	TText t1(1.6, 802.14, "Access time on PHP XML vs CSV");
	t1.Draw();
	c1->Modified();
	c1->Update();
}
