Dear rooters.
why my proram doesn’t (correctly) compiled?(excuse me what i am giving very primitive questions.(i am very much beginner)
Thanks to all.
{
TCanvas c1=new TCanvas(“c1”,"",600,800);
TH1F h1=new TH1F(“h1”,“s”,100,0.7,1.7);
TH1F* h2=new TH1F(“h2”,“s”,100,0.7,1.7);
TRandom3 r;
{
for(int i=0;i<100000;i++) {
Double_t v1 = r.Gaus(0.987,.07);
Double_t v2 = r.Gaus(1.421,.05);
h1->Fill(v1);
h2->Fill(v2);"
}
}
h2->Add(h1,1);
h2->Draw();
h1->Draw(“same”);
cout<<“v1”<<" ,v2"<<v1<<v2<<endl;
}