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

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

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

revision 1.1 by pam-fi, Wed May 10 10:06:55 2006 UTC revision 1.2 by pam-fi, Thu Jun 1 18:44:26 2006 UTC
# Line 131  void FTrkScanQLook_EXPERT(TString file, Line 131  void FTrkScanQLook_EXPERT(TString file,
131    //    //
132    //   obtain information about the data file and select the output file    //   obtain information about the data file and select the output file
133    const string filepath=file.Data();    const string filepath=file.Data();
134    Int_t dwpos = filepath.rfind("DW_");    Int_t dwpos = filepath.rfind("/");
135    Int_t dwpos1 = filepath.find(".root");    Int_t dwpos1 = filepath.find(".root");
136    TString fpath=(filepath.c_str());    TString fpath=(filepath.c_str());
137    TString base,ffile ;    TString base,ffile ;
138    stringcopy(ffile,fpath,dwpos,dwpos1);    stringcopy(ffile,fpath,dwpos+1,dwpos1);
139    stringcopy(base,fpath,0,dwpos);    stringcopy(base,fpath,0,dwpos);
140      if(dwpos>0) base+="/";
141    
142    TString out;    TString out;
143    if(outdir.Length()==0){    if(outdir.Length()==0){
# Line 179  void FTrkScanQLook_EXPERT(TString file, Line 180  void FTrkScanQLook_EXPERT(TString file,
180    gStyle->SetLabelSize(0.06,"x");    gStyle->SetLabelSize(0.06,"x");
181    gStyle->SetLabelSize(0.06,"y");    gStyle->SetLabelSize(0.06,"y");
182    gStyle->SetTitleFontSize(0.1);    gStyle->SetTitleFontSize(0.1);
183      gStyle->SetFillColor(10);  
184    gStyle->SetTitleFillColor(10);    gStyle->SetTitleFillColor(10);
185    gStyle->SetTitleOffset(-1,"Y");    gStyle->SetTitleOffset(-1,"Y");
186    gStyle->SetOptStat(0);    gStyle->SetOptStat(0);
# Line 242  void FTrkScanQLook_EXPERT(TString file, Line 244  void FTrkScanQLook_EXPERT(TString file,
244    
245      title<<"DSP "<<n+1;      title<<"DSP "<<n+1;
246      hid<<"h"<<n;      hid<<"h"<<n;
247      histomax[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3072,0.5,3072.5);      histomax[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3073,-0.5,3072.5);
248      hid<<"hh"<<n;      hid<<"hh"<<n;
249      histocomp[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3072,0.5,3072.5);      histocomp[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3073,-0.5,3072.5);
250      hid<<"hhh"<<n;      hid<<"hhh"<<n;
251      histofull[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3072,0.5,3072.5);      histofull[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3073,-0.5,3072.5);
252      title.str("");      title.str("");
253      hid.str("");      hid.str("");
254    }                     //end loop on views    }                     //end loop on views
# Line 421  void FTrkScanQLook_EXPERT(TString file, Line 423  void FTrkScanQLook_EXPERT(TString file,
423        histocomp[nn]->Fill((Float_t)i,whistocomp[i]);        histocomp[nn]->Fill((Float_t)i,whistocomp[i]);
424        histofull[nn]->Fill((Float_t)i,whistofull[i]);        histofull[nn]->Fill((Float_t)i,whistofull[i]);
425      }      }
426        
427        TBox b;
428        b.SetFillColor(6);
429        b.SetFillStyle(3945);
430    
431      c1->cd();                c1->cd();          
432      trkpadtext[nn]->Draw();      trkpadtext[nn]->Draw();
433      trkpad[nn]->Draw();      trkpad[nn]->Draw();
# Line 444  void FTrkScanQLook_EXPERT(TString file, Line 451  void FTrkScanQLook_EXPERT(TString file,
451      histomax[nn]->SetLineStyle(3);      histomax[nn]->SetLineStyle(3);
452    
453      if(ifull[nn]==1) histofull[nn]->Draw("9bsame][");      if(ifull[nn]==1) histofull[nn]->Draw("9bsame][");
454      if(icomp[nn]==1) histocomp[nn]->Draw("bsame][");      if(icomp[nn]==1) histocomp[nn]->Draw("9bsame][");
455      if(imax[nn]==1) histomax[nn]->Draw("same][");      if(imax[nn]==1) histomax[nn]->Draw("same][");
456      histocomp[nn]->Draw("axis same");      histocomp[nn]->Draw("axis same");
457        if(nn==1){
458          b.DrawBox(2816.,-500.,3060.,4500.);
459        }
460        else if(nn==6){
461          b.DrawBox(2560.,-500.,2816.,4500.);
462          b.DrawBox(512.,-500.,768.,4500.);
463          b.DrawBox(1024.,-500.,1792.,4500.);
464        }
465        else if(nn==11){
466          b.DrawBox(768.,-500.,1024.,4500.);
467        }
468      c1->Update();      c1->Update();
469        
470    }//end loop on views    }//end loop on views

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23