#include #include #include #include "TCanvas.h" #include "TGraph.h" #include "TCanvas.h" #include "MITStyle.C" #include "RUtil.h" void ExcelMasFile(std::string file){ std::fstream runrecord; runrecord.open(filename.c_str(),std::ios_base::in); std::string s; std::vector DileptonCombo; float Mass[14]; float MassError[14]; float double mass,masserr; int a,b; bool noteof=!runrecord.eof(); while (noteof){ runrecord >> s >> mass>>masserr>>a>>b; noteof=!runrecord.eof(); if(noteof){ DileptonCombo.push_back(s); Mass.push_back(mass); MassError.push_back(masserr); } } runrecord.close(); // Use the MIT style file // MITStyle(); // Make a canvas TCanvas * c1 = new TCanvas ("c1","Draw", 200,10,700,500); // Set attributes c1->SetFillColor(42); // c1->SetGrid(42); c1->GetFrame()->SetFillColor(21); c1->GetFrame()->SetBorderSize(12); // Create array Int_t n=14; Float_t x[n]={1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.,13.,14.}; } TCE_TCE_2 91.1581 0.0126139 0 0 CMUP_CMUP_2 90.9771 0.0171738 0 0 CMUP_CMU_2 90.9769 0.0262449 0 0 CMUP_CMP_2 90.9342 0.0225921 0 0 CMUP_CMX_2 91.0014 0.0172083 0 0 CMUP_CMIO_2 90.9686 0.0190728 0 0 CMX_CMX_2 90.9526 0.0345498 0 0 CMX_CMU_2 90.9589 0.0365339 0 0 CMX_CMP_2 90.9565 0.0343934 0 0 CMX_CMIO_2 90.9912 0.031575 0 0 CMUP_triggered_2 90.9647 0.0100628 0 0 ALL_CMX_2 90.983 0.0125557 0 0 CMX+track_2 90.9673 0.0166329 0 0 CMX+CMUP_2 90.9726 0.00820361 0 0