/[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.22 by pam-fi, Mon Nov 20 11:33:24 2006 UTC revision 1.29 by pam-fi, Tue Feb 20 21:57:29 2007 UTC
# Line 2  Line 2 
2   * FTrkQLook_EXPERT.cxx   * FTrkQLook_EXPERT.cxx
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version v1r16   * version v1r23
6   * Parameters:   * Parameters:
7   *      file - the data file to analyze   *      file - the data file to analyze
8   *      fromevent - first event to analyze   *      fromevent - first event to analyze
# Line 366  void FTrkQLook_EXPERT(TString file,Int_t Line 366  void FTrkQLook_EXPERT(TString file,Int_t
366        
367    TLatex *t=new TLatex();    TLatex *t=new TLatex();
368    TLatex *t1=new TLatex();    TLatex *t1=new TLatex();
   
369        
370      TLine li,liva1;
371    
372    Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0;    Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0;
373    ULong_t countALARMx=0,countALARMy=0,countFC[12],countFL1[12],countFL2[12],countFL3[12],countFL4[12],countFL5[12],countFL6[12];    ULong_t countALARMx=0,countALARMy=0,countFC[12],countFL1[12],countFL2[12],countFL3[12],countFL4[12],countFL5[12],countFL6[12];
374    
# Line 533  void FTrkQLook_EXPERT(TString file,Int_t Line 534  void FTrkQLook_EXPERT(TString file,Int_t
534      t1->DrawLatex(70.,98.7,isfile.str().c_str());      t1->DrawLatex(70.,98.7,isfile.str().c_str());
535      isfile.str("");      isfile.str("");
536        
     TLine li;  
537      li.SetLineStyle(1);      li.SetLineStyle(1);
538      li.SetLineWidth(1);      li.SetLineWidth(1);
539      li.SetLineColor(190);      li.SetLineColor(190);
# Line 970  void FTrkQLook_EXPERT(TString file,Int_t Line 970  void FTrkQLook_EXPERT(TString file,Int_t
970        comprtime[i][ii]->GetXaxis()->CenterTitle();        comprtime[i][ii]->GetXaxis()->CenterTitle();
971        comprtime[i][ii]->GetYaxis()->SetTitle("compressiontime (ms)");        comprtime[i][ii]->GetYaxis()->SetTitle("compressiontime (ms)");
972        comprtime[i][ii]->GetYaxis()->CenterTitle();        comprtime[i][ii]->GetYaxis()->CenterTitle();
973          if(maxev-minev==1) comprtime[i][ii]->GetXaxis()->SetNdivisions(-501);
974        // comprtime[i][ii]->GetYaxis()->SetRangeUser(0,3);        // comprtime[i][ii]->GetYaxis()->SetRangeUser(0,3);
975        comprtime[i][ii]->Draw("ap");        comprtime[i][ii]->Draw("ap");
976        oss1.str("");        oss1.str("");
# Line 995  void FTrkQLook_EXPERT(TString file,Int_t Line 996  void FTrkQLook_EXPERT(TString file,Int_t
996      eventnumb[ii]->GetYaxis()->SetTitleSize(0.03);      eventnumb[ii]->GetYaxis()->SetTitleSize(0.03);
997      eventnumb[ii]->GetYaxis()->SetTitle("DSP event-number");      eventnumb[ii]->GetYaxis()->SetTitle("DSP event-number");
998      eventnumb[ii]->GetYaxis()->CenterTitle();      eventnumb[ii]->GetYaxis()->CenterTitle();
999        if(maxev-minev==1) eventnumb[ii]->GetXaxis()->SetNdivisions(-501);
1000      eventnumb[ii]->GetYaxis()->SetTitleOffset(2.);      eventnumb[ii]->GetYaxis()->SetTitleOffset(2.);
1001      eventnumb[ii]->SetMarkerStyle(21);      eventnumb[ii]->SetMarkerStyle(21);
1002      eventnumb[ii]->SetMarkerColor(kBlue);      eventnumb[ii]->SetMarkerColor(kBlue);
# Line 1112  void FTrkQLook_EXPERT(TString file,Int_t Line 1114  void FTrkQLook_EXPERT(TString file,Int_t
1114                    
1115      TBox b;      TBox b;
1116    
1117      Float_t maxhist=0;      Float_t maxhist=0,va1x=0;
1118      LandauCanv1->cd();      LandauCanv1->cd();
1119      pad1[i]->SetFillColor(10);      pad1[i]->SetFillColor(10);
1120      pad1[i]->SetFrameFillColor(10);      pad1[i]->SetFrameFillColor(10);
# Line 1143  void FTrkQLook_EXPERT(TString file,Int_t Line 1145  void FTrkQLook_EXPERT(TString file,Int_t
1145      landau3[i]->Draw("");      landau3[i]->Draw("");
1146      LandauCanv3->Update();      LandauCanv3->Update();
1147    
1148    
1149        li.SetLineColor(38);
1150        li.SetLineStyle(4);
1151        li.SetLineWidth(2);
1152        liva1.SetLineColor(42);
1153        liva1.SetLineStyle(3);
1154        liva1.SetLineWidth(1);
1155    
1156      IlluminaCanv->cd();      IlluminaCanv->cd();
1157      pad2[i]->SetFillColor(10);      pad2[i]->SetFillColor(10);
1158      pad2[i]->SetFrameFillColor(10);      pad2[i]->SetFrameFillColor(10);
# Line 1152  void FTrkQLook_EXPERT(TString file,Int_t Line 1162  void FTrkQLook_EXPERT(TString file,Int_t
1162      illuminazione[i]->GetXaxis()->SetTitle("strip with max signal");      illuminazione[i]->GetXaxis()->SetTitle("strip with max signal");
1163      illuminazione[i]->GetXaxis()->CenterTitle();      illuminazione[i]->GetXaxis()->CenterTitle();
1164      illuminazione[i]->Draw("");      illuminazione[i]->Draw("");
1165        maxhist= illuminazione[i]->GetMaximum();
1166      if(i==0){      if(i==0){
       maxhist= illuminazione[i]->GetMaximum();  
1167        b.SetFillColor(107);        b.SetFillColor(107);
1168        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1169          b.DrawBox(256.,0.,384.,maxhist);
1170        b.DrawBox(768.,0.,2047.,maxhist);        b.DrawBox(768.,0.,2047.,maxhist);
1171      }      }
1172      else if(i==1){      else if(i==1){
       maxhist= illuminazione[i]->GetMaximum();  
1173        b.SetFillColor(6);        b.SetFillColor(6);
1174        b.SetFillStyle(3945);        b.SetFillStyle(3945);
1175        b.DrawBox(2944.,0.,3060.,maxhist);        b.DrawBox(2944.,0.,3070.,maxhist);
1176    
1177        b.SetFillColor(107);        b.SetFillColor(107);
1178        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1179          b.DrawBox(384.,0.,512.,maxhist);
1180          b.DrawBox(2048.,0.,2432.,maxhist);
1181        b.DrawBox(2816.,0.,2944.,maxhist);        b.DrawBox(2816.,0.,2944.,maxhist);
1182        b.DrawBox(2048.,0.,2176.,maxhist);      }
1183        else if(i==3){
1184          b.SetFillColor(107);
1185          b.SetFillStyle(3954);
1186          b.DrawBox(2816.,0.,3070.,maxhist);
1187      }      }
1188      else if(i==4){      else if(i==4){
       maxhist=illuminazione[i]->GetMaximum();  
1189        b.SetFillColor(107);        b.SetFillColor(107);
1190        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1191        b.DrawBox(384.,0.,512.,maxhist);        b.DrawBox(256.,0.,512.,maxhist);
1192          b.DrawBox(2816.,0.,3070.,maxhist);
1193      }      }
1194      else if(i==6){      else if(i==6){
       maxhist= illuminazione[i]->GetMaximum();  
1195        b.SetFillColor(6);        b.SetFillColor(6);
1196        b.SetFillStyle(3945);        b.SetFillStyle(3945);
1197        b.DrawBox(2560.,0.,2816.,maxhist);        b.DrawBox(1024.,0.,1280.,maxhist);
       b.DrawBox(1024.,0.,1535.,maxhist);  
1198    
1199        b.SetFillColor(107);        b.SetFillColor(107);
1200        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1201        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,0.,768.,maxhist);
1202        b.DrawBox(1536.,0.,1792.,maxhist);        b.DrawBox(1280.,0.,1792.,maxhist);
1203      }        b.DrawBox(2560.,0.,2816.,maxhist);
1204       }
1205      else if(i==7){      else if(i==7){
       maxhist= illuminazione[i]->GetMaximum();  
1206        b.SetFillColor(107);        b.SetFillColor(107);
1207        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1208        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,0.,768.,maxhist);
1209          b.DrawBox(896.,0.,1535.,maxhist);
1210      }      }
1211      else if(i==8){      else if(i==8){
       maxhist=illuminazione[i]->GetMaximum();  
1212        b.SetFillColor(107);        b.SetFillColor(107);
1213        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1214        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,0.,768.,maxhist);
1215      }      }
1216      else if(i==9){      else if(i==9){
       maxhist=illuminazione[i]->GetMaximum();  
1217        b.SetFillColor(107);        b.SetFillColor(107);
1218        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1219        b.DrawBox(256.,0.,384.,maxhist);        b.DrawBox(256.,0.,384.,maxhist);
1220          b.DrawBox(1280.,0.,1535.,maxhist);
1221          b.DrawBox(1792.,0.,1920.,maxhist);
1222        }
1223        else if(i==10){
1224          b.SetFillColor(107);
1225          b.SetFillStyle(3954);
1226          b.DrawBox(1024.,0.,1152.,maxhist);
1227          b.DrawBox(2048.,0.,3070.,maxhist);
1228      }      }
1229      else if(i==11){      else if(i==11){
       maxhist= illuminazione[i]->GetMaximum();  
1230        b.SetFillColor(6);        b.SetFillColor(6);
1231        b.SetFillStyle(3945);        b.SetFillStyle(3945);
1232        b.DrawBox(768.,0.,1024.,maxhist);        b.DrawBox(768.,0.,1024.,maxhist);
# Line 1216  void FTrkQLook_EXPERT(TString file,Int_t Line 1236  void FTrkQLook_EXPERT(TString file,Int_t
1236        b.DrawBox(0.,0.,512.,maxhist);        b.DrawBox(0.,0.,512.,maxhist);
1237        b.DrawBox(1920.,0.,2560.,maxhist);        b.DrawBox(1920.,0.,2560.,maxhist);
1238      }      }
1239        for(int va=1; va<24; va++){
1240          va1x=128*va;
1241          liva1.DrawLine(va1x,0.,va1x,maxhist);
1242        }
1243        li.DrawLine(1024.5,0,1024.5,maxhist);
1244        li.DrawLine(2048.5,0,2048.5,maxhist);
1245      IlluminaCanv->Update();      IlluminaCanv->Update();
1246    }    }
1247    

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.23