Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:53

0001 {
0002   gROOT->LoadMacro("macros.C");     // Load service macros
0003   TStyle * style = getStyle("tdr");
0004 //  style->SetTitleYOffset(1.6);
0005   style->cd();                      // Apply style 
0006   TCanvas* c1=new TCanvas("c1","c1",500,600);
0007   gPad->SetLogy();
0008 
0009   TLegend* l=new TLegend(.70,.50,.98,.78,"per SL");
0010   hnClusSL->SetXTitle("# rec");
0011   hnClusSL->SetLineWidth(2);
0012   hnClusSL->SetLineColor(kBlue);
0013   hnClusSL->SetFillColor(kBlue-10);
0014   hnClusSL->Draw();
0015   l->AddEntry(hnClusSL,"#clus","ls");
0016   hnSegSL->SetLineWidth(2);
0017   hnSegSL->SetLineColor(kRed);
0018   hnSegSL->Draw("same");
0019   l->AddEntry(hnSegSL,"#segs","ls");
0020   l->Draw();
0021   c1->Print("nClusSegSL.pdf");
0022 
0023   TCanvas* c2=new TCanvas("c2","c2",500,600);
0024   gPad->SetLogy();
0025   TLegend* l=new TLegend(.70,.50,.98,.78,"# hits");
0026   hClusNHits->SetXTitle("# hits");
0027   hClusNHits->SetLineWidth(2);
0028   hClusNHits->SetLineColor(kBlue);
0029   hClusNHits->SetFillColor(kBlue-10);
0030   hClusNHits->Draw();
0031   l->AddEntry(hClusNHits,"Clus","ls");
0032   hSegNHits->SetLineWidth(2);
0033   hSegNHits->SetLineColor(kRed);
0034   hSegNHits->Draw("same");
0035   l->AddEntry(hSegNHits,"Segs","ls");
0036   l->Draw();
0037   c2->Print("nHitsClusSeg.pdf");
0038 
0039   TCanvas* c3=new TCanvas("c3","c3",500,600);
0040   hClusVsSegPosSL->SetXTitle("x_{clus} (cm)");
0041   hClusVsSegPosSL->SetYTitle("x_{seg} (cm)");
0042   hClusVsSegPosSL->SetLineColor(kBlue);
0043   hClusVsSegPosSL->SetFillColor(kBlue);
0044   hClusVsSegPosSL->Draw("box");
0045   //hClusSegDistSL->GetXaxis()->SetRange(-10.,+10.);
0046   c3->Print("posClusSeg2D.pdf");
0047 
0048   TCanvas* c3b=new TCanvas("c3b","c3b",500,600);
0049   gPad->SetLogy();
0050   hClusSegDistSL->SetXTitle("#Delta{x}_{clus-seg} (cm)");
0051   hClusSegDistSL->SetLineColor(kBlue);
0052   hClusSegDistSL->SetFillColor(kBlue-10);
0053   hClusSegDistSL->Draw("same");
0054   c3b->Print("posClusSeg.pdf");
0055 
0056   TCanvas* c4=new TCanvas("c4","c4",500,600);
0057   hnClusVsSegs->SetXTitle("#_{segs}");
0058   hnClusVsSegs->SetYTitle("#_{clus}");
0059   hnClusVsSegs->SetLineColor(kBlue);
0060   hnClusVsSegs->SetFillColor(kBlue);
0061   hnClusVsSegs->SetMarkerColor(kBlue);
0062   hnClusVsSegs->Draw();
0063   c4->Print("nClusSeg.pdf");
0064 
0065 }