I have a root file, it have two parameters, and I convert the root file to .C file, but the .C file didn’t have the two parameters values, How can I to get Tof1 and Tof2 values of each point? Thanks
Following is the .C file
[code]{
//=========Macro generated from canvas: c1/c1
//========= (Sat Mar 31 09:50:15 2012) by ROOT version5.17/04
TCanvas *c1 = new TCanvas(“c1”, “c1”,12,42,699,499);
c1->Range(-3072,-512,27648,4608);
c1->SetBorderSize(2);
c1->SetFrameFillColor(0);
TH1 *Ban = new TH2F(“Ban”,“f”,5120,0,24576,1024,0,4096);
Ban->SetBinContent(468527,1);
Ban->SetBinContent(582844,1);
Ban->SetBinContent(730633,1);
Ban->SetBinContent(764606,1);
Ban->SetBinContent(782548,1);
Ban->SetBinContent(784391,1);
Ban->SetBinContent(786864,1);
Ban->SetEntries(7);
TPaveStats *ptstats = new TPaveStats(0.78,0.755,0.98,0.995,“brNDC”);
ptstats->SetName(“stats”);
ptstats->SetBorderSize(2);
ptstats->SetFillColor(19);
ptstats->SetTextAlign(12);
TText *text = ptstats->AddText(“Ban”);
text->SetTextSize(0.0368);
ptstats->SetOptStat(1111);
ptstats->SetOptFit(0);
ptstats->Draw();
Ban->GetListOfFunctions()->Add(ptstats);
ptstats->SetParent(Ban->GetListOfFunctions());
Ban->GetXaxis()->SetTitle(“Tof1”);
Ban->GetYaxis()->SetTitle(“Tof2”);
Ban->Draw("");
TPaveText *pt = new TPaveText(0.01,0.945,0.3894549,0.995,“blNDC”);
pt->SetName(“title”);
pt->SetBorderSize(2);
pt->SetFillColor(19);
text = pt->AddText(“TOF v TOF”);
pt->Draw();
c1->Modified();
c1->cd();
c1->SetSelected(c1);
}
[/code]