{ Int_t i,j,k; ifstream fin, fin2, fin3, fin4; fin.open("FinalMasterListNOCSB.txt"); Int_t n=0; while (!fin.eof()) { string blah; fin >> blah; n= n+1; } n= n/10; fin.close(); Double_t CS[n], Ratio[n], eRatio[n], Pressure[n]; string Energy; fin2.open("FinalMasterListNOCSB.txt"); for (i= 0; i> blah; fin2 >> Energy; fin2 >> CS[i]; fin2 >> blah; fin2 >> blah; fin2 >> blah; fin2 >> blah; fin2 >> Ratio[i]; fin2 >> eRatio[i]; fin2 >> Pressure[i]; } fin2.close(); Int_t CS9n=0; for(i=0;iSetTitle(names.c_str()); graph9->GetXaxis()->SetTitle("Pressure in Torr"); graph9->GetXaxis()->CenterTitle(); graph9->GetYaxis()->SetTitle("FCCH/FC4"); graph9->GetYaxis()->SetTitleOffset(1.2); graph9->GetYaxis()->CenterTitle(); graph9->SetMarkerStyle(21); graph9->SetMarkerSize(1); graph9->SetLineColor(2); // 2,4,3 graph9->SetMarkerColor(2); graph9->Draw("ALP"); graph10->SetMarkerStyle(21); graph10->SetMarkerSize(1); graph10->SetLineColor(7); // 2,4,3 graph10->SetMarkerColor(7); graph10->Draw("LP"); graph11->SetLineColor(1); // 2,4,3 graph11->SetMarkerStyle(21); graph11->SetMarkerSize(1); graph11->SetMarkerColor(1); graph11->Draw("LP"); leg = new TLegend(0.65,0.65,0.89,0.89); leg->SetHeader("Charge State"); leg->AddEntry(graph9,"9 +","l"); leg->AddEntry(graph10,"10 +","l"); leg->AddEntry(graph11,"11 +","l"); leg->Draw(); }