void Shop::AddCD(const char* pTitle, unsigned int unitPricePence, unsigned int runningTimeMins, unsigned int noOfTracks) { std::shared_ptr<Item> newcd (new CD(std::string(pTitle), unitPricePence, runningTimeMins, noOfTracks)); list.push_back(newcd); }
{ //gROOT->ProcessLine(".X felix_logonscript.c"); TCanvas *c1 = newcd(3,2); //TCanvas *c2 = newcd(3,1); crosshair(); TH2*hist2; TH1*hist; //TFile* file = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/H2_ArFilter_scan_m100p300_Tana_6.root"); //TFile* file = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/C2H4_open_0924_Dana.root"); //TFile* file = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/O2_noFilter_hellfire_Iana.root"); //TFile* file = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/O2_Tin_OpOp_Iana_nc.root"); TFile* file = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/O2_Tin_OpOp_Dana.root"); TString name; file->cd(); double range = 100; // mometum sums c1->cd(1); file->cd("OpOp/ions/momenta"); name ="p_x vs p_y"; gDirectory->GetObject(name,hist); hist->GetXaxis()->SetRangeUser(-range,range); hist->GetYaxis()->SetRangeUser(-range,range); hist->Draw(); //gPad->SetLogz(); c1->cd(2); name ="p_z vs p_x"; gDirectory->GetObject(name,hist);