/[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.23 by pam-fi, Mon Jan 8 14:34:59 2007 UTC revision 1.30 by pam-fi, Mon Jul 30 14:23:02 2007 UTC
# Line 2  Line 2 
2   * FTrkCalibQLookExpert.cxx   * FTrkCalibQLookExpert.cxx
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version v1r22   * version v1r28
6   * Parameters:   * Parameters:
7   *      file - the data file to analyze   *      file - the data file to analyze
8   *      step - select =1 in order to analyze one event at time   *      step - select =1 in order to analyze one event at time
# Line 77  void FTrkCalibQLook_EXPERT(TString file, Line 77  void FTrkCalibQLook_EXPERT(TString file,
77    Int_t nevents=0;    Int_t nevents=0;
78    Int_t minevent = 0;    Int_t minevent = 0;
79    Int_t maxevent = 0;    Int_t maxevent = 0;
80    ULong64_t FOBT[2];    ULong_t FOBT[2];
81        
82    FOBT[0]=0;    FOBT[0]=0;
83    FOBT[1]=0;    FOBT[1]=0;
# Line 188  void FTrkCalibQLook_EXPERT(TString file, Line 188  void FTrkCalibQLook_EXPERT(TString file,
188            
189    Int_t hcevent=hotr->GetEntries();    Int_t hcevent=hotr->GetEntries();
190    Int_t tcevent=totr->GetEntries();    Int_t tcevent=totr->GetEntries();
191    ULong64_t HOBT[hcevent], TOBT[tcevent];    ULong_t HOBT[hcevent], TOBT[tcevent];
192    for (Int_t i = 0; i < hcevent; i++){    for (Int_t i = 0; i < hcevent; i++){
193      hotr->GetEntry(i);      hotr->GetEntry(i);
194      ph = eh4->GetPscuHeader();      ph = eh4->GetPscuHeader();
# Line 275  void FTrkCalibQLook_EXPERT(TString file, Line 275  void FTrkCalibQLook_EXPERT(TString file,
275      // other variables definitions      // other variables definitions
276    
277      Int_t risposta=0;      Int_t risposta=0;
278      stringstream fromfile;      stringstream fromfile,isfile;
279    
280      fromfile<<"FTrkCalibQLook_EXPERT      File: "<<ffile<<"        -- CalibHeader OBT= "<<HOBT[(cod->Get(pctp->CalibHeader))-1]<<" -- Calib pkt OBT= "<<FOBT[0]<<" -- CalibTrailer OBT= "<<TOBT[(cod->Get(pctp->CalibTrailer))]<<" --";      fromfile<<"FTrkCalibQLook_EXPERT      File: "<<ffile<<"        -- CalibHeader OBT= "<<HOBT[(cod->Get(pctp->CalibHeader))-1]<<" -- Calib pkt OBT= "<<FOBT[0]<<" -- CalibTrailer OBT= "<<TOBT[(cod->Get(pctp->CalibTrailer))]<<" --";
281            
# Line 305  void FTrkCalibQLook_EXPERT(TString file, Line 305  void FTrkCalibQLook_EXPERT(TString file,
305      Int_t canvasy=900;      Int_t canvasy=900;
306      TCanvas *c1 = new TCanvas("c1","FTrkCalibQLook_EXPERT_ped",canvasx,canvasy);      TCanvas *c1 = new TCanvas("c1","FTrkCalibQLook_EXPERT_ped",canvasx,canvasy);
307      c1->SetFillColor(10);      c1->SetFillColor(10);
308      tzz->DrawLatex(.01,0.98,fromfile.str().c_str());      tzz->DrawLatex(.01,.98,fromfile.str().c_str());
309      tzz->DrawLatex(.90,0.98,"PEDESTAL");      tzz->DrawLatex(.90,.98,"PEDESTAL");
310        
311        isfile<<"Boxes so colored point out chips broken before the launch and never resumed";
312        tzz->SetTextColor(6);
313        tzz->SetTextSize(0.018);
314        tzz->DrawLatex(.5,.96,isfile.str().c_str());
315        isfile.str("");
316    
317        isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)";
318        tzz->SetTextColor(107);
319        tzz->DrawLatex(.05,.96,isfile.str().c_str());
320        isfile.str("");
321    
322      TCanvas *c2 = new TCanvas("c2","FTrkCalibQLook_EXPERT_sig",canvasx,canvasy);      TCanvas *c2 = new TCanvas("c2","FTrkCalibQLook_EXPERT_sig",canvasx,canvasy);
323      c2->SetFillColor(10);      c2->SetFillColor(10);
324      tzz->DrawLatex(.01,0.98,fromfile.str().c_str());      tzz->SetTextColor(1);
325      tzz->DrawLatex(.90,0.98,"SIGMA");      tzz->DrawLatex(.01,.98,fromfile.str().c_str());
326        tzz->DrawLatex(.90,.98,"SIGMA");
327        
328        isfile<<"Boxes so colored point out chips broken before the launch and never resumed";
329        tzz->SetTextColor(6);
330        tzz->SetTextSize(0.018);
331        tzz->DrawLatex(.5,.96,isfile.str().c_str());
332        isfile.str("");
333    
334        isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)";
335        tzz->SetTextColor(107);
336        tzz->DrawLatex(.05,.96,isfile.str().c_str());
337        isfile.str("");
338    
339        
340      TCanvas *sig=new TCanvas("sig","FTrkCalibQLook_EXPERT_histosig",canvasx,canvasy);      TCanvas *sig=new TCanvas("sig","FTrkCalibQLook_EXPERT_histosig",canvasx,canvasy);
341      sig->SetFillColor(10);      sig->SetFillColor(10);
342      tzz->DrawLatex(.01,0.98,fromfile.str().c_str());      tzz->SetTextColor(1);
343      tzz->DrawLatex(.85,0.97,"Histograms of the sigmas");      tzz->DrawLatex(.01,.98,fromfile.str().c_str());
344        tzz->DrawLatex(.85,.97,"Histograms of the sigmas");
345            
346    
347    
# Line 541  void FTrkCalibQLook_EXPERT(TString file, Line 566  void FTrkCalibQLook_EXPERT(TString file,
566          if(nn==0){          if(nn==0){
567            b.SetFillColor(107);            b.SetFillColor(107);
568            b.SetFillStyle(3945);            b.SetFillStyle(3945);
569              b.DrawBox(256.,2200.,384.,maxhist);
570            b.DrawBox(768.,2200.,2047.,maxhist);            b.DrawBox(768.,2200.,2047.,maxhist);
571          }          }
572          else if(nn==1){          else if(nn==1){
# Line 551  void FTrkCalibQLook_EXPERT(TString file, Line 577  void FTrkCalibQLook_EXPERT(TString file,
577            b.SetFillColor(107);            b.SetFillColor(107);
578            b.SetFillStyle(3954);            b.SetFillStyle(3954);
579            b.DrawBox(384.,700.,512.,maxhist);            b.DrawBox(384.,700.,512.,maxhist);
580              b.DrawBox(896.,700.,1024.,maxhist);
581            b.DrawBox(2048.,700.,2432.,maxhist);            b.DrawBox(2048.,700.,2432.,maxhist);
582            b.DrawBox(2816.,700.,2944.,maxhist);            b.DrawBox(2816.,700.,2944.,maxhist);
583          }          }
584            else if(nn==3){
585              b.SetFillColor(107);
586              b.SetFillStyle(3954);
587              b.DrawBox(2816.,700.,3070.,maxhist);
588            }
589          else if(nn==4){          else if(nn==4){
590            b.SetFillColor(107);            b.SetFillColor(107);
591            b.SetFillStyle(3954);            b.SetFillStyle(3954);
592            b.DrawBox(384.,2200.,512.,maxhist);            b.DrawBox(256.,2200.,512.,maxhist);
593            b.DrawBox(2816.,2200.,2944.,maxhist);            b.DrawBox(2816.,2200.,3070.,maxhist);
594            }
595            else if(nn==5){
596              b.SetFillColor(107);
597              b.SetFillStyle(3954);
598              b.DrawBox(896.,700.,1024.,maxhist);  
599              //      b.DrawBox(1664.,0.,1792.,maxhist);  
600          }          }
601          else if(nn==6){          else if(nn==6){
           b.SetFillColor(6);  
           b.SetFillStyle(3945);  
           b.DrawBox(1024.,2200.,1280.,maxhist);  
             
602            b.SetFillColor(107);            b.SetFillColor(107);
603            b.SetFillStyle(3954);            b.SetFillStyle(3954);
604            b.DrawBox(512.,2200.,768.,maxhist);            b.DrawBox(512.,2200.,768.,maxhist);
605              b.DrawBox(1024.,2200.,1280.,maxhist);
606            b.DrawBox(1280.,2200.,1792.,maxhist);            b.DrawBox(1280.,2200.,1792.,maxhist);
607            b.DrawBox(2560.,2200.,2816.,maxhist);            b.DrawBox(2560.,2200.,2816.,maxhist);
608          }          }
# Line 575  void FTrkCalibQLook_EXPERT(TString file, Line 610  void FTrkCalibQLook_EXPERT(TString file,
610            b.SetFillColor(107);            b.SetFillColor(107);
611            b.SetFillStyle(3954);            b.SetFillStyle(3954);
612            b.DrawBox(512.,700.,768.,maxhist);            b.DrawBox(512.,700.,768.,maxhist);
613              b.DrawBox(896.,700.,1535.,maxhist);
614              b.DrawBox(2024.,700.,2280.,maxhist);
615          }          }
616          else if(nn==8){          else if(nn==8){
617            b.SetFillColor(107);            b.SetFillColor(107);
# Line 584  void FTrkCalibQLook_EXPERT(TString file, Line 621  void FTrkCalibQLook_EXPERT(TString file,
621          else if(nn==9){          else if(nn==9){
622            b.SetFillColor(107);            b.SetFillColor(107);
623            b.SetFillStyle(3954);            b.SetFillStyle(3954);
624              b.DrawBox(0.,700.,128.,maxhist);
625            b.DrawBox(256.,700.,384.,maxhist);            b.DrawBox(256.,700.,384.,maxhist);
626              b.DrawBox(512.,700.,640.,maxhist);
627              b.DrawBox(896.,700.,1024.,maxhist);
628            b.DrawBox(1280.,700.,1535.,maxhist);            b.DrawBox(1280.,700.,1535.,maxhist);
629            b.DrawBox(1792.,700.,1920.,maxhist);            b.DrawBox(1664.,700.,1920.,maxhist);
630          }          }
631          else if(nn==10){          else if(nn==10){
632            b.SetFillColor(107);            b.SetFillColor(107);
633            b.SetFillStyle(3954);            b.SetFillStyle(3954);
634            b.DrawBox(1024.,2200.,1152.,maxhist);            b.DrawBox(0.,2200.,512.,maxhist);
635            b.DrawBox(2048.,2200.,3070.,maxhist);            b.DrawBox(1024.,2200.,3070.,maxhist);
636          }          }
637          else if(nn==11){          else if(nn==11){
638            b.SetFillColor(6);            b.SetFillColor(6);
# Line 603  void FTrkCalibQLook_EXPERT(TString file, Line 643  void FTrkCalibQLook_EXPERT(TString file,
643            b.SetFillStyle(3954);            b.SetFillStyle(3954);
644            b.DrawBox(0.,700.,512.,maxhist);            b.DrawBox(0.,700.,512.,maxhist);
645            b.DrawBox(1920.,700.,2560.,maxhist);            b.DrawBox(1920.,700.,2560.,maxhist);
646              b.DrawBox(2816.,700.,3070.,maxhist);
647          }          }
648    //     }  //     }
649  //       else histoped[nn]->Draw("axis");  //       else histoped[nn]->Draw("axis");
650        histoaped[nn]->Draw("same");        histoaped[nn]->Draw("same");
651        if((nn+1)%2==1) {        if((nn+1)%2==1) {
# Line 652  void FTrkCalibQLook_EXPERT(TString file, Line 693  void FTrkCalibQLook_EXPERT(TString file,
693          if(nn==0){          if(nn==0){
694            b.SetFillColor(107);            b.SetFillColor(107);
695            b.SetFillStyle(3945);            b.SetFillStyle(3945);
696              b.DrawBox(256.,0.,384.,maxhist);
697            b.DrawBox(768.,0.,2047.,maxhist);            b.DrawBox(768.,0.,2047.,maxhist);
698          }          }
699          else if(nn==1){          else if(nn==1){
# Line 662  void FTrkCalibQLook_EXPERT(TString file, Line 704  void FTrkCalibQLook_EXPERT(TString file,
704            b.SetFillColor(107);            b.SetFillColor(107);
705            b.SetFillStyle(3954);            b.SetFillStyle(3954);
706            b.DrawBox(384.,0.,512.,maxhist);            b.DrawBox(384.,0.,512.,maxhist);
707              b.DrawBox(896.,0.,1024.,maxhist);
708            b.DrawBox(2048.,0.,2432.,maxhist);            b.DrawBox(2048.,0.,2432.,maxhist);
709            b.DrawBox(2816.,0.,2944.,maxhist);            b.DrawBox(2816.,0.,2944.,maxhist);
710          }          }
711            else if(nn==3){
712              b.SetFillColor(107);
713              b.SetFillStyle(3954);
714              b.DrawBox(2816.,0.,3070.,maxhist);
715            }
716          else if(nn==4){          else if(nn==4){
717            b.SetFillColor(107);            b.SetFillColor(107);
718            b.SetFillStyle(3954);            b.SetFillStyle(3954);
719            b.DrawBox(384.,0.,512.,maxhist);            b.DrawBox(256.,0.,512.,maxhist);
720            b.DrawBox(2816.,0.,2944.,maxhist);            b.DrawBox(2816.,0.,3070.,maxhist);
721            }
722            else if(nn==5){
723              b.SetFillColor(107);
724              b.SetFillStyle(3954);
725              b.DrawBox(896.,0.,1024.,maxhist);  
726              //      b.DrawBox(1664.,0.,1792.,maxhist);    
727          }          }
728          else if(nn==6){          else if(nn==6){
           b.SetFillColor(6);  
           b.SetFillStyle(3945);  
           b.DrawBox(1024.,0.,1280.,maxhist);  
             
729            b.SetFillColor(107);            b.SetFillColor(107);
730            b.SetFillStyle(3954);            b.SetFillStyle(3954);
731            b.DrawBox(512.,0.,768.,maxhist);            b.DrawBox(512.,0.,768.,maxhist);
732              b.DrawBox(1024.,0.,1280.,maxhist);
733            b.DrawBox(1280.,0.,1792.,maxhist);            b.DrawBox(1280.,0.,1792.,maxhist);
734            b.DrawBox(2560.,0.,2816.,maxhist);            b.DrawBox(2560.,0.,2816.,maxhist);
735          }          }
# Line 686  void FTrkCalibQLook_EXPERT(TString file, Line 737  void FTrkCalibQLook_EXPERT(TString file,
737            b.SetFillColor(107);            b.SetFillColor(107);
738            b.SetFillStyle(3954);            b.SetFillStyle(3954);
739            b.DrawBox(512.,0.,768.,maxhist);            b.DrawBox(512.,0.,768.,maxhist);
740              b.DrawBox(896.,0.,1535.,maxhist);
741              b.DrawBox(2024.,0.,2280.,maxhist);
742          }          }
743          else if(nn==8){          else if(nn==8){
744            b.SetFillColor(107);            b.SetFillColor(107);
# Line 695  void FTrkCalibQLook_EXPERT(TString file, Line 748  void FTrkCalibQLook_EXPERT(TString file,
748          else if(nn==9){          else if(nn==9){
749            b.SetFillColor(107);            b.SetFillColor(107);
750            b.SetFillStyle(3954);            b.SetFillStyle(3954);
751              b.DrawBox(0.,0.,128.,maxhist);
752            b.DrawBox(256.,0.,384.,maxhist);            b.DrawBox(256.,0.,384.,maxhist);
753              b.DrawBox(512.,0.,640.,maxhist);
754              b.DrawBox(896.,0.,1024.,maxhist);
755            b.DrawBox(1280.,0.,1535.,maxhist);            b.DrawBox(1280.,0.,1535.,maxhist);
756            b.DrawBox(1792.,0.,1920.,maxhist);            b.DrawBox(1664.,0.,1920.,maxhist);
757          }          }
758          else if(nn==10){          else if(nn==10){
759            b.SetFillColor(107);            b.SetFillColor(107);
760            b.SetFillStyle(3954);            b.SetFillStyle(3954);
761            b.DrawBox(1024.,0.,1152.,maxhist);            b.DrawBox(0.,0.,512.,maxhist);
762            b.DrawBox(2048.,0.,3070.,maxhist);            b.DrawBox(1024.,0.,3070.,maxhist);
763          }          }
764          else if(nn==11){          else if(nn==11){
765            b.SetFillColor(6);            b.SetFillColor(6);
# Line 714  void FTrkCalibQLook_EXPERT(TString file, Line 770  void FTrkCalibQLook_EXPERT(TString file,
770            b.SetFillStyle(3954);            b.SetFillStyle(3954);
771            b.DrawBox(0.,0.,512.,maxhist);            b.DrawBox(0.,0.,512.,maxhist);
772            b.DrawBox(1920.,0.,2560.,maxhist);            b.DrawBox(1920.,0.,2560.,maxhist);
773              b.DrawBox(2816.,0.,3070.,maxhist);
774          }          }
775  //       }  //       }
776  //       else histosig[nn]->Draw("axis");  //       else histosig[nn]->Draw("axis");

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.23