/[PAMELA software]/quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx
ViewVC logotype

Diff of /quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by pam-fi, Mon Jul 30 14:23:02 2007 UTC revision 1.34 by pam-fi, Wed Jan 2 15:57:10 2008 UTC
# Line 1114  void FTrkQLook_EXPERT(TString file,Int_t Line 1114  void FTrkQLook_EXPERT(TString file,Int_t
1114    isfile<<"Boxes so colored point out chips broken before the launch and never resumed";    isfile<<"Boxes so colored point out chips broken before the launch and never resumed";
1115    t->SetTextColor(6);    t->SetTextColor(6);
1116    t->SetTextSize(0.018);    t->SetTextSize(0.018);
1117    t->DrawLatex(7.,97.2,isfile.str().c_str());    //  t->DrawLatex(7.,97.2,isfile.str().c_str());
1118    isfile.str("");    isfile.str("");
1119        
1120    isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)";    isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)";
1121    t->SetTextColor(107);    t->SetTextColor(107);
1122    t->DrawLatex(7.,95.7,isfile.str().c_str());    //  t->DrawLatex(7.,95.7,isfile.str().c_str());
1123    isfile.str("");    isfile.str("");
1124    t->SetTextColor(1);    t->SetTextColor(1);
1125    
1126    //    //
1127    // Draw the histos    // Draw the histos
1128    for (Int_t i=0; i<12 ; i++){    for (Int_t nn=0; nn<12 ; nn++){
1129                    
1130      TBox b;      TBox b;
1131    
1132      Float_t maxhist=0,va1x=0;      Float_t maxhist=0.,va1x=0.,minhist=0.;
1133      LandauCanv1->cd();      LandauCanv1->cd();
1134      pad1[i]->SetFillColor(10);      pad1[nn]->SetFillColor(10);
1135      pad1[i]->SetFrameFillColor(10);      pad1[nn]->SetFrameFillColor(10);
1136      pad1[i]->Draw();      pad1[nn]->Draw();
1137      pad1[i]->cd();      pad1[nn]->cd();
1138      landau1[i]->GetXaxis()->SetTitle("max signal");      landau1[nn]->GetXaxis()->SetTitle("max signal");
1139      landau1[i]->GetXaxis()->CenterTitle();      landau1[nn]->GetXaxis()->CenterTitle();
1140      landau1[i]->Draw("");      landau1[nn]->Draw("");
1141      LandauCanv1->Update();      LandauCanv1->Update();
1142    
1143      LandauCanv2->cd();      LandauCanv2->cd();
1144      pad4[i]->SetFillColor(10);      pad4[nn]->SetFillColor(10);
1145      pad4[i]->SetFrameFillColor(10);      pad4[nn]->SetFrameFillColor(10);
1146      pad4[i]->Draw();      pad4[nn]->Draw();
1147      pad4[i]->cd();      pad4[nn]->cd();
1148      landau2[i]->GetXaxis()->SetTitle("max signal");      landau2[nn]->GetXaxis()->SetTitle("max signal");
1149      landau2[i]->GetXaxis()->CenterTitle();      landau2[nn]->GetXaxis()->CenterTitle();
1150      landau2[i]->Draw("");      landau2[nn]->Draw("");
1151      LandauCanv2->Update();      LandauCanv2->Update();
1152    
1153      LandauCanv3->cd();      LandauCanv3->cd();
1154      pad5[i]->SetFillColor(10);      pad5[nn]->SetFillColor(10);
1155      pad5[i]->SetFrameFillColor(10);      pad5[nn]->SetFrameFillColor(10);
1156      pad5[i]->Draw();      pad5[nn]->Draw();
1157      pad5[i]->cd();      pad5[nn]->cd();
1158      landau3[i]->GetXaxis()->SetTitle("max signal");      landau3[nn]->GetXaxis()->SetTitle("max signal");
1159      landau3[i]->GetXaxis()->CenterTitle();      landau3[nn]->GetXaxis()->CenterTitle();
1160      landau3[i]->Draw("");      landau3[nn]->Draw("");
1161      LandauCanv3->Update();      LandauCanv3->Update();
1162    
1163    
# Line 1169  void FTrkQLook_EXPERT(TString file,Int_t Line 1169  void FTrkQLook_EXPERT(TString file,Int_t
1169      liva1.SetLineWidth(1);      liva1.SetLineWidth(1);
1170    
1171      IlluminaCanv->cd();      IlluminaCanv->cd();
1172      pad2[i]->SetFillColor(10);      pad2[nn]->SetFillColor(10);
1173      pad2[i]->SetFrameFillColor(10);      pad2[nn]->SetFrameFillColor(10);
1174      pad2[i]->SetLogy();      pad2[nn]->SetLogy();
1175      pad2[i]->Draw();      pad2[nn]->Draw();
1176      pad2[i]->cd();      pad2[nn]->cd();
1177      illuminazione[i]->GetXaxis()->SetTitle("strip with max signal");      illuminazione[nn]->GetXaxis()->SetTitle("strip with max signal");
1178      illuminazione[i]->GetXaxis()->CenterTitle();      illuminazione[nn]->GetXaxis()->CenterTitle();
1179      illuminazione[i]->Draw("");      illuminazione[nn]->Draw("");
1180      maxhist= illuminazione[i]->GetMaximum();      maxhist= illuminazione[nn]->GetMaximum();
1181      if(i==0){      minhist=0.;
1182        b.SetFillColor(107);      b.SetFillColor(19);
1183        b.SetFillStyle(3954);      b.SetFillStyle(3954);
1184        b.DrawBox(256.,0.,384.,maxhist);      if(nn==0){
1185        b.DrawBox(768.,0.,2047.,maxhist);        b.DrawBox(0.,minhist,2047.,maxhist);
1186      }      }
1187      else if(i==1){      else if(nn==1){
1188        b.SetFillColor(6);        b.DrawBox(128.,minhist,256.,maxhist);
1189        b.SetFillStyle(3945);        b.DrawBox(384.,minhist,512.,maxhist);
1190        b.DrawBox(2944.,0.,3070.,maxhist);        b.DrawBox(896.,minhist,1024.,maxhist);
1191          b.DrawBox(2048.,minhist,2432.,maxhist);
1192        b.SetFillColor(107);        b.DrawBox(2816.,minhist,2944.,maxhist);
1193        b.SetFillStyle(3954);        b.DrawBox(2944.,minhist,3070.,maxhist);
1194        b.DrawBox(384.,0.,512.,maxhist);      }
1195        b.DrawBox(896.,0.,1024.,maxhist);      else if(nn==3){
1196        b.DrawBox(2048.,0.,2432.,maxhist);        b.DrawBox(0.,minhist,256.,maxhist);
1197        b.DrawBox(2816.,0.,2944.,maxhist);        b.DrawBox(2816.,minhist,3070.,maxhist);
1198      }      }
1199      else if(i==3){      else if(nn==4){
1200        b.SetFillColor(107);        b.DrawBox(256.,minhist,512.,maxhist);
1201        b.SetFillStyle(3954);        b.DrawBox(1792.,minhist,1920.,maxhist);
1202        b.DrawBox(2816.,0.,3070.,maxhist);        b.DrawBox(2816.,minhist,3070.,maxhist);
1203      }      }
1204      else if(i==4){      else if(nn==5){
1205        b.SetFillColor(107);        b.DrawBox(0.,minhist,256.,maxhist);
1206        b.SetFillStyle(3954);        b.DrawBox(896.,minhist,1024.,maxhist);
1207        b.DrawBox(256.,0.,512.,maxhist);        b.DrawBox(1664.,minhist,1792.,maxhist);      
1208        b.DrawBox(2816.,0.,3070.,maxhist);      }
1209      }      else if(nn==6){
1210      else if(i==5){        b.DrawBox(512.,minhist,768.,maxhist);
1211        b.SetFillColor(107);        b.DrawBox(1024.,minhist,1280.,maxhist);
1212        b.SetFillStyle(3954);        b.DrawBox(1280.,minhist,1792.,maxhist);
1213        b.DrawBox(896.,0.,1024.,maxhist);        b.DrawBox(2560.,minhist,2816.,maxhist);
       //      b.DrawBox(1664.,0.,1792.,maxhist);        
     }  
     else if(i==6){  
       b.SetFillColor(107);  
       b.SetFillStyle(3954);  
       b.DrawBox(512.,0.,768.,maxhist);  
       b.DrawBox(1024.,0.,1280.,maxhist);  
       b.DrawBox(1280.,0.,1792.,maxhist);  
       b.DrawBox(2560.,0.,2816.,maxhist);  
1214     }     }
1215      else if(i==7){      else if(nn==7){
1216        b.SetFillColor(107);        b.DrawBox(0.,minhist,1535.,maxhist);
1217        b.SetFillStyle(3954);        b.DrawBox(2024.,minhist,2280.,maxhist);
1218        b.DrawBox(512.,0.,768.,maxhist);      }
1219        b.DrawBox(896.,0.,1535.,maxhist);      else if(nn==8){
1220        b.DrawBox(2024.,0.,2280.,maxhist);        b.DrawBox(512.,minhist,768.,maxhist);
1221      }      }
1222      else if(i==8){      else if(nn==9){
1223        b.SetFillColor(107);        b.DrawBox(0.,minhist,128.,maxhist);
1224        b.SetFillStyle(3954);        b.DrawBox(256.,minhist,384.,maxhist);
1225        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,minhist,640.,maxhist);
1226      }        b.DrawBox(896.,minhist,1152.,maxhist);
1227      else if(i==9){        b.DrawBox(1280.,minhist,1535.,maxhist);
1228        b.SetFillColor(107);        b.DrawBox(1664.,minhist,1920.,maxhist);
1229        b.SetFillStyle(3954);        b.DrawBox(2048.,minhist,2304.,maxhist);
1230        b.DrawBox(0.,0.,128.,maxhist);      }
1231        b.DrawBox(256.,0.,384.,maxhist);      else if(nn==10){
1232        b.DrawBox(512.,0.,640.,maxhist);        b.DrawBox(0.,minhist,512.,maxhist);
1233        b.DrawBox(896.,0.,1024.,maxhist);        b.DrawBox(1024.,minhist,3070.,maxhist);
1234        b.DrawBox(1280.,0.,1535.,maxhist);      }
1235        b.DrawBox(1664.,0.,1920.,maxhist);      else if(nn==11){
1236      }        b.DrawBox(0.,minhist,512.,maxhist);
1237      else if(i==10){        b.DrawBox(768.,minhist,1024.,maxhist);
1238        b.SetFillColor(107);        b.DrawBox(1536.,minhist,1664.,maxhist);
1239        b.SetFillStyle(3954);        b.DrawBox(1920.,minhist,2560.,maxhist);
1240        b.DrawBox(0.,0.,512.,maxhist);        b.DrawBox(2816.,minhist,3070.,maxhist);
1241        b.DrawBox(1024.,0.,3070.,maxhist);      }                                        
     }  
     else if(i==11){  
       b.SetFillColor(6);  
       b.SetFillStyle(3945);  
       b.DrawBox(768.,0.,1024.,maxhist);  
   
       b.SetFillColor(107);  
       b.SetFillStyle(3954);  
       b.DrawBox(0.,0.,512.,maxhist);  
       b.DrawBox(1920.,0.,2560.,maxhist);  
       b.DrawBox(2816.,0.,3070.,maxhist);  
     }  
1242      for(int va=1; va<24; va++){      for(int va=1; va<24; va++){
1243        va1x=128*va;        va1x=128*va;
1244        liva1.DrawLine(va1x,0.,va1x,maxhist);        liva1.DrawLine(va1x,minhist,va1x,maxhist);
1245      }      }
1246      li.DrawLine(1024.5,0,1024.5,maxhist);      li.DrawLine(1024.5,minhist,1024.5,maxhist);
1247      li.DrawLine(2048.5,0,2048.5,maxhist);      li.DrawLine(2048.5,minhist,2048.5,maxhist);
1248      IlluminaCanv->Update();      IlluminaCanv->Update();
1249    }    }
1250    

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.23