Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:01

0001 #include <iostream.h>
0002 
0003 int drawChamberDT(int wheel=0, int station = 1, int sector=1)
0004 {
0005 gStyle->SetOptStat(1111111);
0006 
0007 char nameOfHisto[50];
0008 sprintf(nameOfHisto, "W%dMB%1dS%1d",wheel,station,sector );
0009 TCanvas *mycanvas = new TCanvas("mycanvas",nameOfHisto);
0010 _file0->cd("MuonAlignmentMonitor");
0011 
0012 mycanvas->Divide(2,4);
0013 mycanvas->Update();
0014 mycanvas->cd(1);
0015 
0016 sprintf(nameOfHisto, "ResidualLocalX_W%dMB%1dS%1d",wheel,station,sector );
0017 TH1F * h = (TH1F*) gROOT->FindObject(nameOfHisto);
0018 
0019 h->Draw("");
0020 
0021 mycanvas->cd(2);
0022 
0023 sprintf(nameOfHisto, "ResidualGlobalRPhi_W%dMB%1dS%1d",wheel,station,sector );
0024 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0025 h->Draw("");
0026 
0027 mycanvas->cd(3);
0028 
0029 sprintf(nameOfHisto, "ResidualLocalY_W%dMB%1dS%1d",wheel,station,sector );
0030 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0031 h->Draw("");
0032 
0033 mycanvas->cd(4);
0034 
0035 sprintf(nameOfHisto, "ResidualGlobalZ_W%dMB%1dS%1d",wheel,station,sector );
0036 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0037 h->Draw("");
0038 
0039 mycanvas->cd(5);
0040 
0041 sprintf(nameOfHisto, "ResidualLocalPhi_W%dMB%1dS%1d",wheel,station,sector );
0042 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0043 h->Draw("");
0044 
0045 mycanvas->cd(6);
0046 
0047 sprintf(nameOfHisto, "ResidualGlobalPhi_W%dMB%1dS%1d",wheel,station,sector );
0048 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0049 h->Draw("");
0050 
0051 mycanvas->cd(7);
0052 
0053 sprintf(nameOfHisto, "ResidualLocalTheta_W%dMB%1dS%1d",wheel,station,sector );
0054 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0055 h->Draw("");
0056 
0057 mycanvas->cd(8);
0058 
0059 sprintf(nameOfHisto, "ResidualGlobalTheta_W%dMB%1dS%1d",wheel,station,sector );
0060 h = (TH1F*) gROOT->FindObject(nameOfHisto);
0061 h->Draw("");
0062 
0063 }