File indexing completed on 2024-04-06 11:58:24
0001
0002 {
0003 gROOT->ProcessLine(".x /home/darinb/CMSStyle.C");
0004 TFile f("All.root");
0005
0006 TTree *DiffGains = (TTree*)f->Get("DiffGains");
0007 TTree *DiffMatrix = (TTree*)gDirectory->Get("DiffMatrix");
0008 TTree *DiffPeds = (TTree*)gDirectory->Get("DiffPeds");
0009 TTree *DiffXtalk = (TTree*)gDirectory->Get("DiffXtalk");
0010
0011 TH2F h2("h2","",500,-1,1,230000,0,230000);
0012 h2->SetMarkerSize(.1);
0013 h2->SetStats(0);
0014
0015 TLatex* txt =new TLatex(-.9,200000, "#frac{new - old}{old} ");
0016 txt->SetTextFont(132);
0017 txt->SetTextSize(0.04);
0018 h2->GetXaxis()->SetTitleSize(.05);
0019 h2->GetYaxis()->SetTitleSize(.05);
0020 h2->GetYaxis()->SetTitle("Strip Index");
0021
0022 h2->GetXaxis()->SetTitle("Gains (Relative Change)");
0023
0024 DiffGains->Draw("index:diffGains>>h2");
0025 c1.SetGridx(1);
0026
0027 c1->Print("diffGains_ind.png");
0028
0029 h2->GetXaxis()->SetTitle("Pedestals (Relative Change)");
0030
0031 DiffPeds->Draw("index:diffPeds>>h2");
0032 c1->Print("diffPeds_ind.png");
0033
0034 h2->GetXaxis()->SetTitle("CrossTalk Right (Relative Change)");
0035
0036 DiffXtalk->Draw("index:diffXtalkR>>h2");
0037 c1->Print("diffXtalkR_ind.png");
0038
0039 h2->GetXaxis()->SetTitle("CrossTalk Right Int (Relative Change)");
0040
0041 DiffXtalk->Draw("index:diffIntR>>h2");
0042 c1->Print("diffIntR_ind.png");
0043
0044 h2->GetXaxis()->SetTitle("CrossTalk Left (Relative Change)");
0045
0046 DiffXtalk->Draw("index:diffXtalkL>>h2");
0047 c1->Print("diffXtalkL_ind.png");
0048
0049 h2->GetXaxis()->SetTitle("CrossTalk Left Int (Relative Change)");
0050
0051 DiffXtalk->Draw("index:diffIntL>>h2");
0052 c1->Print("diffIntL_ind.png");
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081 c1->SetLogy();
0082
0083 TH1F h("h", "", 500, -1, 1);
0084 h->SetStats(0);
0085
0086 TLatex* txt2 =new TLatex(-.9,1000, "#frac{new - old}{old} ");
0087 txt2->SetTextFont(132);
0088 txt2->SetTextSize(0.04);
0089
0090 h->GetXaxis()->SetTitle("Gains (Relative Change)");
0091
0092 DiffGains->Draw("diffGains>>h");
0093 c1->Print("diffGains.png");
0094
0095 h->GetXaxis()->SetTitle("Pedestals (Relative Change)");
0096
0097 DiffPeds->Draw("diffPeds>>h");
0098 c1->Print("diffPeds.png");
0099
0100 h->GetXaxis()->SetTitle("CrossTalk - Right (Relative Change)");
0101
0102 DiffXtalk->Draw("diffXtalkR>>h");
0103 c1->Print("diffXtalkR.png");
0104
0105 h->GetXaxis()->SetTitle("CrossTalk - Right Int (Relative Change)");
0106
0107 DiffXtalk->Draw("diffIntR>>h");
0108 c1->Print("diffIntR.png");
0109
0110 h->GetXaxis()->SetTitle("CrossTalk - Left (Relative Change)");
0111
0112 DiffXtalk->Draw("diffXtalkL>>h");
0113 c1->Print("diffXtalkL.png");
0114
0115 h->GetXaxis()->SetTitle("CrossTalk - Left Int (Relative Change)");
0116
0117 DiffXtalk->Draw("diffIntL>>h");
0118 c1->Print("diffIntL.png");
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143
0144
0145 }