/[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.36 by mocchiut, Fri Jan 17 15:10:40 2014 UTC
# Line 23  Line 23 
23  #include <TFile.h>  #include <TFile.h>
24  #include <TTree.h>  #include <TTree.h>
25  #include <TStyle.h>  #include <TStyle.h>
26    #include <TAxis.h>
27    #include <TH1F.h>
28    #include <TROOT.h>
29    #include <cstdlib>
30  //  //
31  #include <physics/tracker/TrackerEvent.h>  #include <physics/tracker/TrackerEvent.h>
32  #include <PscuHeader.h>  #include <PscuHeader.h>
# Line 762  void FTrkQLook_EXPERT(TString file,Int_t Line 766  void FTrkQLook_EXPERT(TString file,Int_t
766          ALARM=0;          ALARM=0;
767          Int_t dsp=0;          Int_t dsp=0;
768          Int_t noacq=0;          Int_t noacq=0;
769          Int_t acq_dsp[12];          //      Int_t acq_dsp[12];
770          ULong_t acq_info_tmp=0;          ULong_t acq_info_tmp=0;
771          if(cod->Get(pctp->RunHeader)>0) acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)-1];          if(cod->Get(pctp->RunHeader)>0) acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)-1];
772          else acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)];          else acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)];
773          for(Int_t io=0;io<12;io++){          for(Int_t io=0;io<12;io++){
774            acq_dsp[dsp]=(acq_info_tmp>>(12+io))&(~(~0<<1));            //      acq_dsp[dsp]=(acq_info_tmp>>(12+io))&(~(~0<<1));
775            if(((acq_info_tmp>>(12+io))&(~(~0<<1)))==0)            if(((acq_info_tmp>>(12+io))&(~(~0<<1)))==0)
776              noacq+=1;              noacq+=1;
777            WARNING[io]=0;            WARNING[io]=0;
# Line 1111  void FTrkQLook_EXPERT(TString file,Int_t Line 1115  void FTrkQLook_EXPERT(TString file,Int_t
1115    t1->DrawLatex(70.,98.7,isfile.str().c_str());    t1->DrawLatex(70.,98.7,isfile.str().c_str());
1116    isfile.str("");    isfile.str("");
1117        
1118    isfile<<"Boxes so colored point out chips broken before the launch and never resumed";    isfile<<"Chips with white line at least once showed anomalous behaviour";
1119    t->SetTextColor(6);    t->SetTextColor(17);
1120    t->SetTextSize(0.018);    t->SetTextSize(0.018);
1121    t->DrawLatex(7.,97.2,isfile.str().c_str());    t->DrawLatex(.01,.96,isfile.str().c_str());
1122    isfile.str("");    isfile.str("");
1123        
1124    isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)";    isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)";
1125    t->SetTextColor(107);    t->SetTextColor(107);
1126    t->DrawLatex(7.,95.7,isfile.str().c_str());    //  t->DrawLatex(7.,95.7,isfile.str().c_str());
1127    isfile.str("");    isfile.str("");
1128    t->SetTextColor(1);    t->SetTextColor(1);
1129    
1130    //    //
1131    // Draw the histos    // Draw the histos
1132    for (Int_t i=0; i<12 ; i++){    for (Int_t nn=0; nn<12 ; nn++){
1133                    
1134      TBox b;      TBox b;
1135    
1136      Float_t maxhist=0,va1x=0;      Float_t maxhist=0.,va1x=0.,minhist=0.;
1137      LandauCanv1->cd();      LandauCanv1->cd();
1138      pad1[i]->SetFillColor(10);      pad1[nn]->SetFillColor(10);
1139      pad1[i]->SetFrameFillColor(10);      pad1[nn]->SetFrameFillColor(10);
1140      pad1[i]->Draw();      pad1[nn]->Draw();
1141      pad1[i]->cd();      pad1[nn]->cd();
1142      landau1[i]->GetXaxis()->SetTitle("max signal");      landau1[nn]->GetXaxis()->SetTitle("max signal");
1143      landau1[i]->GetXaxis()->CenterTitle();      landau1[nn]->GetXaxis()->CenterTitle();
1144      landau1[i]->Draw("");      landau1[nn]->Draw("");
1145      LandauCanv1->Update();      LandauCanv1->Update();
1146    
1147      LandauCanv2->cd();      LandauCanv2->cd();
1148      pad4[i]->SetFillColor(10);      pad4[nn]->SetFillColor(10);
1149      pad4[i]->SetFrameFillColor(10);      pad4[nn]->SetFrameFillColor(10);
1150      pad4[i]->Draw();      pad4[nn]->Draw();
1151      pad4[i]->cd();      pad4[nn]->cd();
1152      landau2[i]->GetXaxis()->SetTitle("max signal");      landau2[nn]->GetXaxis()->SetTitle("max signal");
1153      landau2[i]->GetXaxis()->CenterTitle();      landau2[nn]->GetXaxis()->CenterTitle();
1154      landau2[i]->Draw("");      landau2[nn]->Draw("");
1155      LandauCanv2->Update();      LandauCanv2->Update();
1156    
1157      LandauCanv3->cd();      LandauCanv3->cd();
1158      pad5[i]->SetFillColor(10);      pad5[nn]->SetFillColor(10);
1159      pad5[i]->SetFrameFillColor(10);      pad5[nn]->SetFrameFillColor(10);
1160      pad5[i]->Draw();      pad5[nn]->Draw();
1161      pad5[i]->cd();      pad5[nn]->cd();
1162      landau3[i]->GetXaxis()->SetTitle("max signal");      landau3[nn]->GetXaxis()->SetTitle("max signal");
1163      landau3[i]->GetXaxis()->CenterTitle();      landau3[nn]->GetXaxis()->CenterTitle();
1164      landau3[i]->Draw("");      landau3[nn]->Draw("");
1165      LandauCanv3->Update();      LandauCanv3->Update();
1166    
1167    
# Line 1169  void FTrkQLook_EXPERT(TString file,Int_t Line 1173  void FTrkQLook_EXPERT(TString file,Int_t
1173      liva1.SetLineWidth(1);      liva1.SetLineWidth(1);
1174    
1175      IlluminaCanv->cd();      IlluminaCanv->cd();
1176      pad2[i]->SetFillColor(10);      pad2[nn]->SetFillColor(10);
1177      pad2[i]->SetFrameFillColor(10);      pad2[nn]->SetFrameFillColor(10);
1178      pad2[i]->SetLogy();      pad2[nn]->SetLogy();
1179      pad2[i]->Draw();      pad2[nn]->Draw();
1180      pad2[i]->cd();      pad2[nn]->cd();
1181      illuminazione[i]->GetXaxis()->SetTitle("strip with max signal");      illuminazione[nn]->GetXaxis()->SetTitle("strip with max signal");
1182      illuminazione[i]->GetXaxis()->CenterTitle();      illuminazione[nn]->GetXaxis()->CenterTitle();
1183      illuminazione[i]->Draw("");      illuminazione[nn]->Draw("");
1184      maxhist= illuminazione[i]->GetMaximum();      maxhist= illuminazione[nn]->GetMaximum();
1185      if(i==0){      minhist=0.;
1186        b.SetFillColor(107);      b.SetFillColor(19);
1187        b.SetFillStyle(3954);      b.SetFillStyle(3954);
1188        b.DrawBox(256.,0.,384.,maxhist);      if(nn==0){
1189        b.DrawBox(768.,0.,2047.,maxhist);        b.DrawBox(0.,minhist,2047.,maxhist);
1190      }      }
1191      else if(i==1){      else if(nn==1){
1192        b.SetFillColor(6);        b.DrawBox(128.,minhist,256.,maxhist);
1193        b.SetFillStyle(3945);        b.DrawBox(384.,minhist,512.,maxhist);
1194        b.DrawBox(2944.,0.,3070.,maxhist);        b.DrawBox(896.,minhist,1024.,maxhist);
1195          b.DrawBox(2048.,minhist,2432.,maxhist);
1196        b.SetFillColor(107);        b.DrawBox(2816.,minhist,2944.,maxhist);
1197        b.SetFillStyle(3954);        b.DrawBox(2944.,minhist,3070.,maxhist);
1198        b.DrawBox(384.,0.,512.,maxhist);      }
1199        b.DrawBox(896.,0.,1024.,maxhist);      else if(nn==3){
1200        b.DrawBox(2048.,0.,2432.,maxhist);        b.DrawBox(0.,minhist,256.,maxhist);
1201        b.DrawBox(2816.,0.,2944.,maxhist);        b.DrawBox(2816.,minhist,3070.,maxhist);
1202      }      }
1203      else if(i==3){      else if(nn==4){
1204        b.SetFillColor(107);        b.DrawBox(256.,minhist,512.,maxhist);
1205        b.SetFillStyle(3954);        b.DrawBox(1792.,minhist,1920.,maxhist);
1206        b.DrawBox(2816.,0.,3070.,maxhist);        b.DrawBox(2816.,minhist,3070.,maxhist);
1207      }      }
1208      else if(i==4){      else if(nn==5){
1209        b.SetFillColor(107);        b.DrawBox(0.,minhist,256.,maxhist);
1210        b.SetFillStyle(3954);        b.DrawBox(896.,minhist,1024.,maxhist);
1211        b.DrawBox(256.,0.,512.,maxhist);        b.DrawBox(1664.,minhist,1792.,maxhist);      
1212        b.DrawBox(2816.,0.,3070.,maxhist);      }
1213      }      else if(nn==6){
1214      else if(i==5){        b.DrawBox(512.,minhist,768.,maxhist);
1215        b.SetFillColor(107);        b.DrawBox(1024.,minhist,1280.,maxhist);
1216        b.SetFillStyle(3954);        b.DrawBox(1280.,minhist,1792.,maxhist);
1217        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);  
1218     }     }
1219      else if(i==7){      else if(nn==7){
1220        b.SetFillColor(107);        b.DrawBox(0.,minhist,1535.,maxhist);
1221        b.SetFillStyle(3954);        b.DrawBox(2024.,minhist,2280.,maxhist);
1222        b.DrawBox(512.,0.,768.,maxhist);      }
1223        b.DrawBox(896.,0.,1535.,maxhist);      else if(nn==8){
1224        b.DrawBox(2024.,0.,2280.,maxhist);        b.DrawBox(512.,minhist,768.,maxhist);
1225      }      }
1226      else if(i==8){      else if(nn==9){
1227        b.SetFillColor(107);        b.DrawBox(0.,minhist,128.,maxhist);
1228        b.SetFillStyle(3954);        b.DrawBox(256.,minhist,384.,maxhist);
1229        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,minhist,640.,maxhist);
1230      }        b.DrawBox(896.,minhist,1152.,maxhist);
1231      else if(i==9){        b.DrawBox(1280.,minhist,1535.,maxhist);
1232        b.SetFillColor(107);        b.DrawBox(1664.,minhist,1920.,maxhist);
1233        b.SetFillStyle(3954);        b.DrawBox(2048.,minhist,2304.,maxhist);
1234        b.DrawBox(0.,0.,128.,maxhist);      }
1235        b.DrawBox(256.,0.,384.,maxhist);      else if(nn==10){
1236        b.DrawBox(512.,0.,640.,maxhist);        b.DrawBox(0.,minhist,512.,maxhist);
1237        b.DrawBox(896.,0.,1024.,maxhist);        b.DrawBox(1024.,minhist,3070.,maxhist);
1238        b.DrawBox(1280.,0.,1535.,maxhist);      }
1239        b.DrawBox(1664.,0.,1920.,maxhist);      else if(nn==11){
1240      }        b.DrawBox(0.,minhist,512.,maxhist);
1241      else if(i==10){        b.DrawBox(768.,minhist,1024.,maxhist);
1242        b.SetFillColor(107);        b.DrawBox(1536.,minhist,1664.,maxhist);
1243        b.SetFillStyle(3954);        b.DrawBox(1920.,minhist,2560.,maxhist);
1244        b.DrawBox(0.,0.,512.,maxhist);        b.DrawBox(2816.,minhist,3070.,maxhist);
1245        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);  
     }  
1246      for(int va=1; va<24; va++){      for(int va=1; va<24; va++){
1247        va1x=128*va;        va1x=128*va;
1248        liva1.DrawLine(va1x,0.,va1x,maxhist);        liva1.DrawLine(va1x,minhist,va1x,maxhist);
1249      }      }
1250      li.DrawLine(1024.5,0,1024.5,maxhist);      li.DrawLine(1024.5,minhist,1024.5,maxhist);
1251      li.DrawLine(2048.5,0,2048.5,maxhist);      li.DrawLine(2048.5,minhist,2048.5,maxhist);
1252      IlluminaCanv->Update();      IlluminaCanv->Update();
1253    }    }
1254    

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

  ViewVC Help
Powered by ViewVC 1.1.23