/[PAMELA software]/quicklook/QLflightTmtc_Header/TmtcTemperature.cpp
ViewVC logotype

Diff of /quicklook/QLflightTmtc_Header/TmtcTemperature.cpp

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

revision 1.5 by pam-rm2, Thu Jul 6 17:01:08 2006 UTC revision 1.7 by pam-rm2, Tue Jul 11 14:27:33 2006 UTC
# Line 210  void TmtcTemperature(TString base, TStri Line 210  void TmtcTemperature(TString base, TStri
210      return;      return;
211    }    }
212    
   
213  string titolocc[] ={"IPM1 input","IPM2 input","IPM3 input","IPM4 input","IPM5 input","IPM6 input","KHB_HOT","KHB_COLD","IDAQ_HOT","IDAQ_COLD","VCB_STANDBY","VRL_HOT","VRL_COLD","PSB","TOFHV_HOT","TOFHV_COLD"};  string titolocc[] ={"IPM1 input","IPM2 input","IPM3 input","IPM4 input","IPM5 input","IPM6 input","KHB_HOT","KHB_COLD","IDAQ_HOT","IDAQ_COLD","VCB_STANDBY","VRL_HOT","VRL_COLD","PSB","TOFHV_HOT","TOFHV_COLD"};
214    
215   string titoloth[]      ={"IPM_TH","S1_TH","S4_TH","S4_ND_PLATE_TH","TRK_TH1","TRK_TH2","FLUID_IN_TH","FLUID_OUT_TH","VME_TH1","DCDC_TH","CPU_TH1","CPU_TH2", "IPM_CPU_TH", "VRL_TH1", "VRL_TH2", "VME_TH2"};   string titoloth[]      ={"IPM_TH","S1_TH","S4_TH","S4_ND_PLATE_TH","TRK_TH1","TRK_TH2","FLUID_IN_TH","FLUID_OUT_TH","VME_TH1","DCDC_TH","CPU_TH1","CPU_TH2", "IPM_CPU_TH", "VRL_TH1", "VRL_TH2", "VME_TH2"};
# Line 238  string titolocc[] ={"IPM1 input","IPM2 i Line 237  string titolocc[] ={"IPM1 input","IPM2 i
237          ev[0]=0;          ev[0]=0;
238          records[0]=0;          records[0]=0;
239          OBT[0]=tmr->TM_RECORD_OBT;          OBT[0]=tmr->TM_RECORD_OBT;
240        }else if (fmod(i, 35)==0 || ((tmr->TM_RECORD_OBT)<OBT[i-1]) || (i==(size-1)) ){        }else if (fmod(i, 30)==0 || ((tmr->TM_RECORD_OBT)<OBT[i-1]) || (i==(size-1)) ){
241          //}else if ((fmod(i, 20)==0) || (i==(size-1)) ){          //}else if ((fmod(i, 20)==0) || (i==(size-1)) ){
242          tot=tot+1;          tot=tot+1;
243          if (recordstotmax<recordstot) recordstotmax=recordstot;          if (recordstotmax<recordstot) recordstotmax=recordstot;
# Line 251  string titolocc[] ={"IPM1 input","IPM2 i Line 250  string titolocc[] ={"IPM1 input","IPM2 i
250    }      }  
251    
252    
   
253    const Int_t lungmax=16*recordstotmax;    const Int_t lungmax=16*recordstotmax;
254    const Int_t lungmin=6*recordstotmax;    const Int_t lungmin=6*recordstotmax;
255        
256      Float_t xrecordobtcc[lungmax], yccdiagacq[lungmax], ythana[lungmax], xrecordobtth[lungmax], xrecordobtdea[lungmin], ydea[lungmin], xrecordobtcc_1[lungmax], xrecordobtcc_1d[lungmax], xrecordobtcc_1u[lungmax], yccdiagacq_1[lungmax], yccdiagacq_1d[lungmax], yccdiagacq_1u[lungmax],  ythana_1[lungmax], xrecordobtth_1[lungmax], xrecordobtdea_1[lungmin], ydea_1[lungmin];  
257        
258     Double_t xrecordobtcc[lungmax], yccdiagacq[lungmax], ythana[lungmax], xrecordobtth[lungmax], xrecordobtdea[lungmin], ydea[lungmin], xrecordobtcc_1[lungmax], xrecordobtcc_1d[lungmax], xrecordobtcc_1u[lungmax], yccdiagacq_1[lungmax], yccdiagacq_1d[lungmax], yccdiagacq_1u[lungmax],  ythana_1[lungmax], xrecordobtth_1[lungmax], xrecordobtdea_1[lungmin], ydea_1[lungmin];      Float_t yccdiagacq_11u[lungmax], yccdiagacq_11d[lungmax], yccipm12u[lungmax], yccipm12d[lungmax], yccipmkk1u[lungmax], yccipmkk1d[lungmax], yccipmerror[lungmax],  yccipmerror2[lungmax];
     
    Double_t yccdiagacq_11u[lungmax], yccdiagacq_11d[lungmax], yccipm12u[lungmax], yccipm12d[lungmax], yccipmkk1u[lungmax], yccipmkk1d[lungmax], yccipmerror[lungmax],  yccipmerror2[lungmax];  
   
259    
260    
261   /////ciclo sulle pagine////////////////////   /////ciclo sulle pagine////////////////////
# Line 274  string titolocc[] ={"IPM1 input","IPM2 i Line 270  string titolocc[] ={"IPM1 input","IPM2 i
270     Canvasthdea->SetFillColor(10);     Canvasthdea->SetFillColor(10);
271     Canvasthdea->Divide(4,4);     Canvasthdea->Divide(4,4);
272        
     
273     TCanvas *Canvasvoltdea = new TCanvas("Tmtc_5", base, 1280, 1024);     TCanvas *Canvasvoltdea = new TCanvas("Tmtc_5", base, 1280, 1024);
274     Canvasvoltdea->SetFillColor(10);     Canvasvoltdea->SetFillColor(10);
275     Canvasvoltdea->Divide(2,3);     Canvasvoltdea->Divide(2,3);
# Line 284  string titolocc[] ={"IPM1 input","IPM2 i Line 279  string titolocc[] ={"IPM1 input","IPM2 i
279        
280     for (Int_t i = ev[interval]; i < ev[interval+1]; i++){     //ciclo su un sottogruppo     for (Int_t i = ev[interval]; i < ev[interval+1]; i++){     //ciclo su un sottogruppo
281       // cout<<"ciclo da "<<ev[interval]<<" a "<< ev[interval+1]<<"\n";       // cout<<"ciclo da "<<ev[interval]<<" a "<< ev[interval+1]<<"\n";
282    
283       tmtcBr->GetEntry(i);         tmtcBr->GetEntry(i);  
284       l=0;       l=0;
285       m=0;       m=0;
# Line 731  string titolocc[] ={"IPM1 input","IPM2 i Line 727  string titolocc[] ={"IPM1 input","IPM2 i
727         Canvasthdea->cd(k+1);         Canvasthdea->cd(k+1);
728                
729         TGraph *threcord = new TGraph(recordstot, xrecordobtth_1, ythana_1);         TGraph *threcord = new TGraph(recordstot, xrecordobtth_1, ythana_1);
730         threcord->SetLineColor(kBlue);         // threcord->SetLineColor(kBlue);
731           threcord->SetMarkerSize(0.2);
732         threcord->SetMarkerColor(kBlue);         threcord->SetMarkerColor(kBlue);
733         threcord->SetMarkerStyle(21);         threcord->SetMarkerStyle(21);
734         threcord->SetMinimum(-10);         threcord->SetMinimum(-10);
# Line 751  string titolocc[] ={"IPM1 input","IPM2 i Line 748  string titolocc[] ={"IPM1 input","IPM2 i
748           pt->AddText("OFF");           pt->AddText("OFF");
749           pt->SetBorderSize(1);           pt->SetBorderSize(1);
750           pt->Draw();           pt->Draw();
751           threcord->Draw("ACsame");           threcord->Draw("APsame");
752           TF1 *func1 = new TF1("func1", "50");           TF1 *func1 = new TF1("func1", "50");
753           func1->SetRange(xmin,xmax);           func1->SetRange(xmin,xmax);
754           func1->SetLineColor(2);           func1->SetLineColor(2);
# Line 764  string titolocc[] ={"IPM1 input","IPM2 i Line 761  string titolocc[] ={"IPM1 input","IPM2 i
761           pt->AddText("OFF");           pt->AddText("OFF");
762           pt->SetBorderSize(1);           pt->SetBorderSize(1);
763           pt->Draw();           pt->Draw();
764           threcord->Draw("ACsame");           threcord->Draw("APsame");
765           TF1 *func1 = new TF1("func1", "45");           TF1 *func1 = new TF1("func1", "45");
766           func1->SetRange(xmin,xmax);           func1->SetRange(xmin,xmax);
767           func1->SetLineColor(2);           func1->SetLineColor(2);
# Line 798  string titolocc[] ={"IPM1 input","IPM2 i Line 795  string titolocc[] ={"IPM1 input","IPM2 i
795       pt1->Draw();       pt1->Draw();
796            
797       TGraph *dearecord = new TGraph(recordstot, xrecordobtdea_1, ydea_1);       TGraph *dearecord = new TGraph(recordstot, xrecordobtdea_1, ydea_1);
798       dearecord->SetLineColor(kBlue);       //dearecord->SetLineColor(kBlue);
799       dearecord->SetLineWidth(1);       //dearecord->SetLineWidth(1);
800       dearecord->SetMarkerStyle(21);       dearecord->SetMarkerStyle(21);
801       dearecord->SetMarkerSize(0.5);       dearecord->SetMarkerSize(0.5);
802       dearecord->SetMarkerColor(kBlue);       dearecord->SetMarkerColor(kBlue);
# Line 812  string titolocc[] ={"IPM1 input","IPM2 i Line 809  string titolocc[] ={"IPM1 input","IPM2 i
809       oss.str("");       oss.str("");
810       oss <<  filename.Data()<<": IPM "<<k+1<<" output";       oss <<  filename.Data()<<": IPM "<<k+1<<" output";
811       dearecord->SetTitle(oss.str().c_str());       dearecord->SetTitle(oss.str().c_str());
812       dearecord->Draw("ACPLsame");       dearecord->Draw("APsame");
813         //dearecord->Draw("ACPLsame");
814    
815       Double_t xmin=dearecord->GetXaxis()->GetXmin();       Double_t xmin=dearecord->GetXaxis()->GetXmin();
816       Double_t xmax=dearecord->GetXaxis()->GetXmax();       Double_t xmax=dearecord->GetXaxis()->GetXmax();

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23