/[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.24 by pam-fi, Wed Dec 6 10:06:27 2006 UTC
# Line 2  Line 2 
2   * FTrkQLook_EXPERT.cxx   * FTrkQLook_EXPERT.cxx
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version v1r16   * version v1r18
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 1112  void FTrkQLook_EXPERT(TString file,Int_t Line 1112  void FTrkQLook_EXPERT(TString file,Int_t
1112                    
1113      TBox b;      TBox b;
1114    
1115      Float_t maxhist=0;      Float_t maxhist=0,va1x=0;
1116      LandauCanv1->cd();      LandauCanv1->cd();
1117      pad1[i]->SetFillColor(10);      pad1[i]->SetFillColor(10);
1118      pad1[i]->SetFrameFillColor(10);      pad1[i]->SetFrameFillColor(10);
# Line 1143  void FTrkQLook_EXPERT(TString file,Int_t Line 1143  void FTrkQLook_EXPERT(TString file,Int_t
1143      landau3[i]->Draw("");      landau3[i]->Draw("");
1144      LandauCanv3->Update();      LandauCanv3->Update();
1145    
1146    
1147        li.SetLineColor(38);
1148        li.SetLineStyle(4);
1149        li.SetLineWidth(2);
1150        liva1.SetLineColor(42);
1151        liva1.SetLineStyle(3);
1152        liva1.SetLineWidth(1);
1153    
1154      IlluminaCanv->cd();      IlluminaCanv->cd();
1155      pad2[i]->SetFillColor(10);      pad2[i]->SetFillColor(10);
1156      pad2[i]->SetFrameFillColor(10);      pad2[i]->SetFrameFillColor(10);
# Line 1152  void FTrkQLook_EXPERT(TString file,Int_t Line 1160  void FTrkQLook_EXPERT(TString file,Int_t
1160      illuminazione[i]->GetXaxis()->SetTitle("strip with max signal");      illuminazione[i]->GetXaxis()->SetTitle("strip with max signal");
1161      illuminazione[i]->GetXaxis()->CenterTitle();      illuminazione[i]->GetXaxis()->CenterTitle();
1162      illuminazione[i]->Draw("");      illuminazione[i]->Draw("");
1163        maxhist= illuminazione[i]->GetMaximum();
1164      if(i==0){      if(i==0){
       maxhist= illuminazione[i]->GetMaximum();  
1165        b.SetFillColor(107);        b.SetFillColor(107);
1166        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1167        b.DrawBox(768.,0.,2047.,maxhist);        b.DrawBox(768.,0.,2047.,maxhist);
1168      }      }
1169      else if(i==1){      else if(i==1){
       maxhist= illuminazione[i]->GetMaximum();  
1170        b.SetFillColor(6);        b.SetFillColor(6);
1171        b.SetFillStyle(3945);        b.SetFillStyle(3945);
1172        b.DrawBox(2944.,0.,3060.,maxhist);        b.DrawBox(2944.,0.,3070.,maxhist);
1173    
1174        b.SetFillColor(107);        b.SetFillColor(107);
1175        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1176          //b.DrawBox(384.,0.,512.,maxhist);
1177        b.DrawBox(2816.,0.,2944.,maxhist);        b.DrawBox(2816.,0.,2944.,maxhist);
1178        b.DrawBox(2048.,0.,2176.,maxhist);        b.DrawBox(2048.,0.,2176.,maxhist);
1179      }      }
1180      else if(i==4){      else if(i==4){
       maxhist=illuminazione[i]->GetMaximum();  
1181        b.SetFillColor(107);        b.SetFillColor(107);
1182        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1183        b.DrawBox(384.,0.,512.,maxhist);        b.DrawBox(384.,0.,512.,maxhist);
1184      }      }
1185      else if(i==6){      else if(i==6){
       maxhist= illuminazione[i]->GetMaximum();  
1186        b.SetFillColor(6);        b.SetFillColor(6);
1187        b.SetFillStyle(3945);        b.SetFillStyle(3945);
1188        b.DrawBox(2560.,0.,2816.,maxhist);        b.DrawBox(2560.,0.,2816.,maxhist);
# Line 1185  void FTrkQLook_EXPERT(TString file,Int_t Line 1191  void FTrkQLook_EXPERT(TString file,Int_t
1191        b.SetFillColor(107);        b.SetFillColor(107);
1192        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1193        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,0.,768.,maxhist);
1194        b.DrawBox(1536.,0.,1792.,maxhist);        b.DrawBox(1536.,0.,1792.,maxhist);
1195      }     }
1196      else if(i==7){      else if(i==7){
       maxhist= illuminazione[i]->GetMaximum();  
1197        b.SetFillColor(107);        b.SetFillColor(107);
1198        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1199        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,0.,768.,maxhist);
1200      }      }
1201      else if(i==8){      else if(i==8){
       maxhist=illuminazione[i]->GetMaximum();  
1202        b.SetFillColor(107);        b.SetFillColor(107);
1203        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1204        b.DrawBox(512.,0.,768.,maxhist);        b.DrawBox(512.,0.,768.,maxhist);
1205      }      }
1206      else if(i==9){      else if(i==9){
       maxhist=illuminazione[i]->GetMaximum();  
1207        b.SetFillColor(107);        b.SetFillColor(107);
1208        b.SetFillStyle(3954);        b.SetFillStyle(3954);
1209        b.DrawBox(256.,0.,384.,maxhist);        b.DrawBox(256.,0.,384.,maxhist);
1210          //b.DrawBox(1280.,0.,1408.,maxhist);
1211          //b.DrawBox(1792.,0.,1920.,maxhist);
1212        }
1213        else if(i==10){
1214          b.SetFillColor(107);
1215          b.SetFillStyle(3954);
1216          b.DrawBox(2048.,0.,3070.,maxhist);
1217      }      }
1218      else if(i==11){      else if(i==11){
       maxhist= illuminazione[i]->GetMaximum();  
1219        b.SetFillColor(6);        b.SetFillColor(6);
1220        b.SetFillStyle(3945);        b.SetFillStyle(3945);
1221        b.DrawBox(768.,0.,1024.,maxhist);        b.DrawBox(768.,0.,1024.,maxhist);
# Line 1216  void FTrkQLook_EXPERT(TString file,Int_t Line 1225  void FTrkQLook_EXPERT(TString file,Int_t
1225        b.DrawBox(0.,0.,512.,maxhist);        b.DrawBox(0.,0.,512.,maxhist);
1226        b.DrawBox(1920.,0.,2560.,maxhist);        b.DrawBox(1920.,0.,2560.,maxhist);
1227      }      }
1228        for(int va=1; va<24; va++){
1229          va1x=128*va;
1230          liva1.DrawLine(va1x,0.,va1x,maxhist);
1231        }
1232        li.DrawLine(1024.5,0,1024.5,maxhist);
1233        li.DrawLine(2048.5,0,2048.5,maxhist);
1234      IlluminaCanv->Update();      IlluminaCanv->Update();
1235    }    }
1236    

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

  ViewVC Help
Powered by ViewVC 1.1.23