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

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

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

revision 1.1 by pam-fi, Wed May 10 10:06:54 2006 UTC revision 1.2 by pam-fi, Thu May 18 13:06:08 2006 UTC
# Line 453  void FTrkCalibQLook_EXPERT(TString file, Line 453  void FTrkCalibQLook_EXPERT(TString file,
453        li.SetLineStyle(3);        li.SetLineStyle(3);
454        li.SetLineWidth(2);        li.SetLineWidth(2);
455                
456                Double_t maxhist=0;
457          TBox b;
458          b.SetFillColor(6);
459          b.SetFillStyle(3945);
460        /* plot PEDESTAL */        /* plot PEDESTAL */
461        c1->cd();        c1->cd();
462        trkpadtext[nn]->Draw();        trkpadtext[nn]->Draw();
# Line 466  void FTrkCalibQLook_EXPERT(TString file, Line 469  void FTrkCalibQLook_EXPERT(TString file,
469        histoped[nn]->SetLineWidth(1);        histoped[nn]->SetLineWidth(1);
470        histoped[nn]->GetYaxis()->SetTitle("PED (ADC channels)");        histoped[nn]->GetYaxis()->SetTitle("PED (ADC channels)");
471        histoped[nn]->GetYaxis()->CenterTitle();        histoped[nn]->GetYaxis()->CenterTitle();
472        if((nn+1)%2==1)  histoped[nn]->GetYaxis()->SetRangeUser(2500,3200);        if((nn+1)%2==1)  histoped[nn]->GetYaxis()->SetRangeUser(2200,3200);
473        if((nn+1)%2==0)  histoped[nn]->GetYaxis()->SetRangeUser(1000,1700);        if((nn+1)%2==0)  histoped[nn]->GetYaxis()->SetRangeUser(700,1700);
474        histoaped[nn]->SetLineColor(5);        histoaped[nn]->SetLineColor(5);
475        histoaped[nn]->SetLineWidth(1);        histoaped[nn]->SetLineWidth(1);
476        if(ctrk.good0[0]==1 && ctrk.good0[1]==1) histoped[nn]->Draw("b");        if(ctrk.good0[0]==1 && ctrk.good0[1]==1){
477            histoped[nn]->Draw("b");
478            if(nn==1){
479              maxhist=histoped[nn]->GetMaximum();
480              b.DrawBox(2816.,700.,3060.,maxhist);
481            }
482            else if(nn==6){
483              maxhist=histoped[nn]->GetMaximum();
484              b.DrawBox(2560.,2200.,2816.,maxhist);
485              b.DrawBox(512.,2200.,768.,maxhist);
486              b.DrawBox(1024.,2200.,1792.,maxhist);
487            }
488            else if(nn==11){
489              maxhist=histoped[nn]->GetMaximum();
490              b.DrawBox(768.,700.,1024.,maxhist);
491            }
492          }
493        else histoped[nn]->Draw("axis");        else histoped[nn]->Draw("axis");
494        histoaped[nn]->Draw("same");        histoaped[nn]->Draw("same");
495        if((nn+1)%2==1) {        if((nn+1)%2==1) {
496          li.DrawLine(1024.5,2500,1024.5,3200);          li.DrawLine(1024.5,2200,1024.5,3200);
497          li.DrawLine(2048.5,2500,2048.5,3200);          li.DrawLine(2048.5,2200,2048.5,3200);
498        }        }
499        if((nn+1)%2==0) {        if((nn+1)%2==0) {
500          li.DrawLine(1024.5,1000,1024.5,1700);          li.DrawLine(1024.5,700,1024.5,1700);
501          li.DrawLine(2048.5,1000,2048.5,1700);          li.DrawLine(2048.5,700,2048.5,1700);
502        }        }
503                
504    
505                
506        /* plot SIGMA */        /* plot SIGMA */
507        Double_t max=500.;        Double_t max=500.;
# Line 501  void FTrkCalibQLook_EXPERT(TString file, Line 521  void FTrkCalibQLook_EXPERT(TString file,
521        histosig[nn]->GetYaxis()->CenterTitle();        histosig[nn]->GetYaxis()->CenterTitle();
522        histoasig[nn]->SetLineColor(5);        histoasig[nn]->SetLineColor(5);
523        histoasig[nn]->SetLineWidth(1);        histoasig[nn]->SetLineWidth(1);
524        if(ctrk.good0[0]==1 && ctrk.good0[1]==1) histosig[nn]->Draw("b");        if(ctrk.good0[0]==1 && ctrk.good0[1]==1){
525            histosig[nn]->Draw("b");
526            if(nn==1){
527              maxhist=histosig[nn]->GetMaximum();
528              b.DrawBox(2816.,0.,3060.,maxhist);
529            }
530            else if(nn==6){
531              maxhist=histosig[nn]->GetMaximum();
532              b.DrawBox(2560.,0.,2816.,maxhist);
533              b.DrawBox(512.,0.,768.,maxhist);
534              b.DrawBox(1024.,0.,1792.,maxhist);
535            }
536            else if(nn==11){
537              maxhist=histosig[nn]->GetMaximum();
538              b.DrawBox(768.,0.,1024.,maxhist);
539            }
540          }
541        else histosig[nn]->Draw("axis");        else histosig[nn]->Draw("axis");
542        histoasig[nn]->Draw("same");        histoasig[nn]->Draw("same");
543        li.DrawLine(1024.5,0,1024.5,max);        li.DrawLine(1024.5,0,1024.5,max);
544        li.DrawLine(2048.5,0,2048.5,max);        li.DrawLine(2048.5,0,2048.5,max);
545                  
546    
547    
548      };//end loop on views      };//end loop on views
549            
550      c1->Update();//draw pads in canvas      c1->Update();//draw pads in canvas

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

  ViewVC Help
Powered by ViewVC 1.1.23