void pedestalScans() { gROOT->SetStyle("Plain"); TCanvas *c1=new TCanvas("c1","Canvas",600,600); gStyle->SetOptStat(0); gStyle->SetPalette(1); gStyle->SetPadLeftMargin(0.15); gStyle->SetPadRightMargin(0.1); c1->UseCurrentStyle(); TFile::Open("MpsAnalysisMaskThresholdScan476749.root"); X000Y006Profile->SetTitle(";Threshold (DTU);Number of hits/DTU"); //Trim0Quad0Means->SetLineColor(2); X000Y006Profile->SetLineWidth(2); X000Y006Profile->GetYaxis()->SetTitleOffset(1.7); X000Y006Profile->GetXaxis()->SetRangeUser(-100,100); X000Y006Profile->Draw(); c1->Update(); c1->Print("../pedestalScans1.png"); X084Y006Profile->SetTitle(";Threshold (DTU);Number of hits/DTU"); //Trim0Quad0Means->SetLineColor(2); X084Y006Profile->SetLineWidth(2); X084Y006Profile->GetYaxis()->SetTitleOffset(1.3); X084Y006Profile->GetXaxis()->SetRangeUser(-100,100); X084Y006Profile->Draw(); c1->Update(); c1->Print("../pedestalScans2.png"); }