/[PAMELA software]/quicklook/trigger/src/TriggerScanBasic.cpp
ViewVC logotype

Diff of /quicklook/trigger/src/TriggerScanBasic.cpp

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

revision 1.3 by campana, Thu Sep 21 08:51:05 2006 UTC revision 1.9 by mocchiut, Fri Jan 17 15:10:48 2014 UTC
# Line 2  Line 2 
2   * TriggerScanBasic   * TriggerScanBasic
3   * Author  Nagni   * Author  Nagni
4   * Modified by G. De Rosa   * Modified by G. De Rosa
5   * Version 1.2   * Version 1.2 - Modified by G. De Rosa
6   * Date 27 Apr 2006   * Date 27 Apr 2006
7   * Version 1.4   * Version 1.4 - Modified by G. De Rosa
8   * Date 26 Jun 2006: Inserted dependences on OnBoardTime and modified histogram ranges.   * Date 26 Jun 2006: Inserted dependences on OnBoardTime and modified histogram ranges.
9     * Version 1.5 - Modified by G. De Rosa
10     * Date 9 Mar 2007: To read correctly the OBT changed the type of time variables from signed to unsigned
11     * Version 1.6 - Modified by R. Carbone
12     * Date 22 Mar 2011: Modified ranges on Plane Counters and Trigger Counters graphs, optimized for outside belts region
13   *   *
14   * Description:   * Description:
15   * Describe the performance of the Trigger.   * Describe the performance of the Trigger.
# Line 25  Line 29 
29  #include <TGraph.h>  #include <TGraph.h>
30  #include <TStyle.h>  #include <TStyle.h>
31  #include <TH1.h>  #include <TH1.h>
32    #include <TH1F.h>
33  #include <TH2S.h>  #include <TH2S.h>
34  #include <TPaveText.h>  #include <TPaveText.h>
35  #include <TCanvas.h>  #include <TCanvas.h>
# Line 34  Line 39 
39  #include <EventHeader.h>  #include <EventHeader.h>
40  #include <PscuHeader.h>  #include <PscuHeader.h>
41  #include <iostream>  #include <iostream>
42    #include <cstdlib>
43    
44  using namespace std;  using namespace std;
45    
# Line 43  char bit(int decimal, char pos) Line 49  char bit(int decimal, char pos)
49  }  }
50    
51  void TriggerScanBasic(TString base, TString outDirectory = "", TString format = ""){  void TriggerScanBasic(TString base, TString outDirectory = "", TString format = ""){
52        
53      ULong_t lastime, firstime;
54      double obmin=0.;
55      double obmax=0.;
56      stringstream oss, oss1, oss2, oss3, noentries, stringa;  
57    std::stringstream sst;    std::stringstream sst;
58    if (outDirectory == "") outDirectory = base.Data();    if (outDirectory == "") outDirectory = base.Data();
59    TString filename = ((TObjString*)base.Tokenize('/')->Last())->GetString();    TString filename = ((TObjString*)base.Tokenize('/')->Last())->GetString();
# Line 72  void TriggerScanBasic(TString base, TStr Line 82  void TriggerScanBasic(TString base, TStr
82      file->Close();      file->Close();
83      return;      return;
84    }    }
85      
86       //-------------- to know the max and min OBT ----------------------------//
87       HeadBr->GetEntry(0);
88       ph = eh->GetPscuHeader();
89       firstime = ph->GetOrbitalTime();
90       HeadBr->GetEntry(nevents);
91       ph = eh->GetPscuHeader();
92       lastime = ph->GetOrbitalTime();
93       int i =0;
94       while(i < nevents){
95         HeadBr->GetEntry(i);
96         ph = eh->GetPscuHeader();
97         if((ULong_t)(ph->GetOrbitalTime()) <= firstime) firstime=ph->GetOrbitalTime();
98         if((ULong_t)(ph->GetOrbitalTime()) >= lastime) lastime=ph->GetOrbitalTime();
99         i++;
100         }
101      
102      //------------------------ First histogram -----------------------------------//
103      obmin=firstime;
104      obmax=lastime;
105      Int_t  nbin   = (lastime-firstime)/60000; // on 1 min
106      gStyle->SetOptStat(0);
107      TH1F *h1 = new TH1F ("histo1", "" , nbin, obmin, obmax);
108      TH1F *h2 = new TH1F ("histo2", "" , nbin, obmin, obmax);
109      TH1F *h5 = new TH1F ("histo5", "" , nbin, obmin, obmax);
110      TH1F *LiveTimeMean      = new TH1F("LiveTimeMean", sst.str().c_str(),nbin, obmin, obmax);
111      TH1F *DeadTimeMean      = new TH1F("DeadTimeMean", sst.str().c_str(),nbin, obmin, obmax);
112      //==============================================================
113    
114    /* Histo DEF */    /* Histo DEF */
115    
# Line 88  void TriggerScanBasic(TString base, TStr Line 126  void TriggerScanBasic(TString base, TStr
126    sst << "Calorimeter Rate Counters based on " << base.Data();    sst << "Calorimeter Rate Counters based on " << base.Data();
127    TH1F *S4Cal2Histo      = new TH1F("S4Cal2Histo", sst.str().c_str(), 20, 0, 20);    TH1F *S4Cal2Histo      = new TH1F("S4Cal2Histo", sst.str().c_str(), 20, 0, 20);
128    
129    int i  = 0;    // int i  = 0;
130      i = 0;
131    Int_t size  = nevents;    Int_t size  = nevents;
132    
133      ULong_t UnsOBT=0;
134    
135    Double_t *time = new Double_t[size];    Double_t *time = new Double_t[size];
136    Double_t *evCounter = new Double_t[size];    Double_t *evCounter = new Double_t[size];
137    Double_t *deadTime  = new Double_t[size];    Double_t *deadTime  = new Double_t[size];
# Line 158  void TriggerScanBasic(TString base, TStr Line 199  void TriggerScanBasic(TString base, TStr
199    Double_t *pmt2_21 = new Double_t[size];    Double_t *pmt2_21 = new Double_t[size];
200    Double_t *pmt2_22 = new Double_t[size];    Double_t *pmt2_22 = new Double_t[size];
201    Double_t *pmt2_23 = new Double_t[size];    Double_t *pmt2_23 = new Double_t[size];
202      
203    //    //
204    while(i < nevents){    while(i < nevents){
205      HeadBr->GetEntry(i);      HeadBr->GetEntry(i);
# Line 165  void TriggerScanBasic(TString base, TStr Line 207  void TriggerScanBasic(TString base, TStr
207            
208      /* time vector fill*/      /* time vector fill*/
209      ph           = eh->GetPscuHeader();      ph           = eh->GetPscuHeader();
210      time[i]      = ph->GetOrbitalTime();      UnsOBT       = ph->GetOrbitalTime();
211        
212        time[i] = UnsOBT;
213    
214    
215      /* eventCounter vector fill*/      /* eventCounter vector fill*/
216      evCounter[i] = triggerEvent->evcount;      evCounter[i] = triggerEvent->evcount;
217    
# Line 175  void TriggerScanBasic(TString base, TStr Line 220  void TriggerScanBasic(TString base, TStr
220        /* live time vector fill*/        /* live time vector fill*/
221        liveTime[i] = 0.16 * triggerEvent->dltime[0];        liveTime[i] = 0.16 * triggerEvent->dltime[0];
222                
223    
224          if (liveTime[i]<600) h1->Fill(UnsOBT,liveTime[i]);
225          if (liveTime[i]<600) h2->Fill(UnsOBT);
226    
227        /* dead time vector fill*/        /* dead time vector fill*/
228        deadTime[i] = 0.01 * triggerEvent->dltime[1];        deadTime[i] = 0.01 * triggerEvent->dltime[1];
229                
230          if (deadTime[i]<600) h5->Fill(UnsOBT,deadTime[i]);
231      }      }
232    
233      gStyle->SetStatY(0.85);      gStyle->SetStatY(0.85);
234        
       
235      /* PMT Plane Counters */      /* PMT Plane Counters */
236            
237      pmt1[i] = 1.*triggerEvent->pmtpl[0];      pmt1[i] = 1.*triggerEvent->pmtpl[0];
# Line 272  void TriggerScanBasic(TString base, TStr Line 321  void TriggerScanBasic(TString base, TStr
321    //----------    //----------
322    sst.str("");      sst.str("");  
323    sst << "Event Counter";    sst << "Event Counter";
324    TGraph *evCounterGraph   = new TGraph(nevents, time, evCounter);    TGraph *evCounterGraph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)evCounter);
325    evCounterGraph->SetTitle(sst.str().c_str());    evCounterGraph->SetTitle(sst.str().c_str());
326    evCounterGraph->GetXaxis()->SetTitle("OnBoardTime");    evCounterGraph->GetXaxis()->SetTitle("OnBoardTime");
327    evCounterGraph->GetXaxis()->CenterTitle();    evCounterGraph->GetXaxis()->CenterTitle();
# Line 286  void TriggerScanBasic(TString base, TStr Line 335  void TriggerScanBasic(TString base, TStr
335    //----------    //----------
336    sst.str("");    sst.str("");
337    sst << "Graph of Dead Time vs OBT based on " << base.Data();    sst << "Graph of Dead Time vs OBT based on " << base.Data();
338    TGraph *DeadTimeGraph   = new TGraph(nevents, time, deadTime);    TGraph *DeadTimeGraph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)deadTime);
339    DeadLiveCanvas->cd(1);    DeadLiveCanvas->cd(1);
340    sst.str("");    sst.str("");
341    sst << "Dead Time";    sst << "Dead Time";
# Line 296  void TriggerScanBasic(TString base, TStr Line 345  void TriggerScanBasic(TString base, TStr
345    DeadTimeGraph->GetXaxis()->CenterTitle();    DeadTimeGraph->GetXaxis()->CenterTitle();
346    DeadTimeGraph->GetYaxis()->SetTitle("DeadTime(ms)");    DeadTimeGraph->GetYaxis()->SetTitle("DeadTime(ms)");
347    DeadTimeGraph->GetYaxis()->CenterTitle();    DeadTimeGraph->GetYaxis()->CenterTitle();
   //  DeadTimeGraph->SetMaximum(100);  
348    DeadTimeGraph->Draw("AP");    DeadTimeGraph->Draw("AP");
349    //----------    //----------
350    sst.str("");    sst.str("");
# Line 313  void TriggerScanBasic(TString base, TStr Line 361  void TriggerScanBasic(TString base, TStr
361    LiveTimeGraph->GetYaxis()->CenterTitle();    LiveTimeGraph->GetYaxis()->CenterTitle();
362    LiveTimeGraph->Draw("AP");    LiveTimeGraph->Draw("AP");
363    
364      /*
365       * Average Dead and Live time graphs
366       */
367      TCanvas *MeanLiveDeadCanvas = new TCanvas("MeanLiveDeadCanvas","MeanLiveDeadCanvas", 1280, 1024);
368      MeanLiveDeadCanvas->Divide(1,2);
369      
370      MeanLiveDeadCanvas->cd(1);
371      DeadTimeMean->Divide(h5,h2);
372      sst.str("");
373      sst << "Average Dead Time";
374      DeadTimeMean->GetXaxis()->SetTitle("OnBoardTime");
375      DeadTimeMean->GetXaxis()->CenterTitle();
376      DeadTimeMean->GetYaxis()->SetTitle("Average Dead Time (over 1min)");
377      DeadTimeMean->GetYaxis()->CenterTitle();
378      DeadTimeMean->Draw();
379      MeanLiveDeadCanvas->cd(2);
380      LiveTimeMean->Divide(h1,h2);
381      sst.str("");
382      sst << "Average Live Time";
383      LiveTimeMean->GetXaxis()->SetTitle("OnBoardTime");
384      LiveTimeMean->GetXaxis()->CenterTitle();
385      LiveTimeMean->GetYaxis()->SetTitle("Average Live Time (over 1min)");
386      LiveTimeMean->GetYaxis()->CenterTitle();
387      LiveTimeMean->Draw();
388    
389    /*        /*    
390     * PMT Plane Counters Graph     * PMT Plane Counters Graph
391     */     */
# Line 322  void TriggerScanBasic(TString base, TStr Line 395  void TriggerScanBasic(TString base, TStr
395    //----------    //----------
396    sst.str("");    sst.str("");
397    sst << "Graph of PMT Plane Counters (S11 AND S12) vs OBT based on " << base.Data();    sst << "Graph of PMT Plane Counters (S11 AND S12) vs OBT based on " << base.Data();
398    TGraph *PMT1Graph   = new TGraph(nevents, time, pmt1);    TGraph *PMT1Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1);
399    PMTCanvas->cd(1);    PMTCanvas->cd(1)->SetGridy();
400    sst.str("");    sst.str("");
401    sst << "PMT Plane Counters (S11 AND S12)";    sst << "PMT Plane Counters (S11 AND S12)";
402    PMT1Graph->SetTitle(sst.str().c_str());    PMT1Graph->SetTitle(sst.str().c_str());
403    PMT1Graph->SetFillColor(2);    PMT1Graph->SetFillColor(2);
404    PMT1Graph->GetXaxis()->SetTitle("OnBoardTime");    PMT1Graph->GetXaxis()->SetTitle("OnBoardTime");
405    PMT1Graph->GetXaxis()->CenterTitle();    PMT1Graph->GetXaxis()->CenterTitle();
406    PMT1Graph->GetYaxis()->SetTitle("PMT Plane Counters");    PMT1Graph->GetYaxis()->SetTitle("PMT Plane Counters (over 60 ms)");
407    PMT1Graph->GetYaxis()->CenterTitle();    PMT1Graph->GetYaxis()->CenterTitle();
408      PMT1Graph->SetMaximum(300);
409      //PMT1Graph->SetMinimum(100);
410    PMT1Graph->Draw("AP");    PMT1Graph->Draw("AP");
411    //----------    //----------
412    sst.str("");    sst.str("");
413    sst << "Graph PMT Plane Counters (S21 AND S22) vs OBT based on " << base.Data();    sst << "Graph PMT Plane Counters (S21 AND S22) vs OBT based on " << base.Data();
414    TGraph *PMT2Graph   = new TGraph(nevents, time, pmt2);    TGraph *PMT2Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2);
415    PMTCanvas->cd(2);    PMTCanvas->cd(2)->SetGridy();
416    sst.str("");    sst.str("");
417    sst << "PMT Plane Counters (S21 AND S22)";    sst << "PMT Plane Counters (S21 AND S22)";
418    PMT2Graph->SetTitle(sst.str().c_str());    PMT2Graph->SetTitle(sst.str().c_str());
419    PMT2Graph->SetFillColor(2);    PMT2Graph->SetFillColor(2);
420    PMT2Graph->GetXaxis()->SetTitle("OnBoardTime");    PMT2Graph->GetXaxis()->SetTitle("OnBoardTime");
421    PMT2Graph->GetXaxis()->CenterTitle();    PMT2Graph->GetXaxis()->CenterTitle();
422    PMT2Graph->GetYaxis()->SetTitle("PMT Plane Counters");    PMT2Graph->GetYaxis()->SetTitle("PMT Plane Counters (over 60 ms)");
423    PMT2Graph->GetYaxis()->CenterTitle();    PMT2Graph->GetYaxis()->CenterTitle();
424      PMT2Graph->SetMaximum(80);
425    PMT2Graph->Draw("AP");    PMT2Graph->Draw("AP");
426    //----------    //----------
427    sst.str("");    sst.str("");
428    sst << "Graph PMT Plane Counters (S31 AND S32) vs OBT based on " << base.Data();    sst << "Graph PMT Plane Counters (S31 AND S32) vs OBT based on " << base.Data();
429    TGraph *PMT3Graph   = new TGraph(nevents, time, pmt3);    TGraph *PMT3Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt3);
430    PMTCanvas->cd(3);    PMTCanvas->cd(3)->SetGridy();
431    sst.str("");    sst.str("");
432    sst << "PMT Plane Counters (S31 AND S32)";    sst << "PMT Plane Counters (S31 AND S32)";
433    PMT3Graph->SetTitle(sst.str().c_str());    PMT3Graph->SetTitle(sst.str().c_str());
434    PMT3Graph->SetFillColor(2);    PMT3Graph->SetFillColor(2);
435    PMT3Graph->GetXaxis()->SetTitle("OnBoardTime");    PMT3Graph->GetXaxis()->SetTitle("OnBoardTime");
436    PMT3Graph->GetXaxis()->CenterTitle();    PMT3Graph->GetXaxis()->CenterTitle();
437    PMT3Graph->GetYaxis()->SetTitle("PMT Plane Rate Counters");    PMT3Graph->GetYaxis()->SetTitle("PMT Plane Rate Counters (over 60 ms)");
438    PMT3Graph->GetYaxis()->CenterTitle();    PMT3Graph->GetYaxis()->CenterTitle();
439      PMT3Graph->SetMaximum(70);
440    PMT3Graph->Draw("AP");    PMT3Graph->Draw("AP");
441    //    //
442    //----------    //----------
# Line 374  void TriggerScanBasic(TString base, TStr Line 451  void TriggerScanBasic(TString base, TStr
451    sst.str("");    sst.str("");
452    sst << "Graph of Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32) vs OBT based on " << base.Data();    sst << "Graph of Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32) vs OBT based on " << base.Data();
453    
454    TGraph *TrigRate0Graph   = new TGraph(nevents, time, trigrate0);    TGraph *TrigRate0Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)trigrate0);
455    TrigRate1Canvas->cd(1);    TrigRate1Canvas->cd(1)->SetGridy();
456    sst.str("");    sst.str("");
457    sst << "Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32)";    sst << "Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32)";
458    TrigRate0Graph->SetTitle(sst.str().c_str());    TrigRate0Graph->SetTitle(sst.str().c_str());
# Line 384  void TriggerScanBasic(TString base, TStr Line 461  void TriggerScanBasic(TString base, TStr
461    TrigRate0Graph->GetXaxis()->CenterTitle();    TrigRate0Graph->GetXaxis()->CenterTitle();
462    TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");    TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");
463    TrigRate0Graph->GetYaxis()->CenterTitle();    TrigRate0Graph->GetYaxis()->CenterTitle();
464      TrigRate0Graph->SetMaximum(100);
465    TrigRate0Graph->Draw("AP");    TrigRate0Graph->Draw("AP");
466    //----------    //----------
467    sst.str("");    sst.str("");
468    sst << "Graph Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32) vs OBT based on " << base.Data();    sst << "Graph Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32) vs OBT based on " << base.Data();
469    TGraph *TrigRate1Graph   = new TGraph(nevents, time, trigrate1);    TGraph *TrigRate1Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)trigrate1);
470    TrigRate1Canvas->cd(2);    TrigRate1Canvas->cd(2)->SetGridy();
471    sst.str("");    sst.str("");
472    sst << "Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32)";    sst << "Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32)";
473    TrigRate1Graph->SetTitle(sst.str().c_str());    TrigRate1Graph->SetTitle(sst.str().c_str());
# Line 398  void TriggerScanBasic(TString base, TStr Line 476  void TriggerScanBasic(TString base, TStr
476    TrigRate1Graph->GetXaxis()->CenterTitle();    TrigRate1Graph->GetXaxis()->CenterTitle();
477    TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");    TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");
478    TrigRate1Graph->GetYaxis()->CenterTitle();    TrigRate1Graph->GetYaxis()->CenterTitle();
479      TrigRate1Graph->SetMaximum(60);
480    TrigRate1Graph->Draw("AP");    TrigRate1Graph->Draw("AP");
481    //----------    //----------
482    sst.str("");    sst.str("");
483    sst << "Graph Trigger Rate Counters  (S21 OR S22) AND (S31 OR S32) vs OBT based on " << base.Data();    sst << "Graph Trigger Rate Counters  (S21 OR S22) AND (S31 OR S32) vs OBT based on " << base.Data();
484    TGraph *TrigRate2Graph   = new TGraph(nevents, time, trigrate2);    TGraph *TrigRate2Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)trigrate2);
485    TrigRate1Canvas->cd(3);    TrigRate1Canvas->cd(3)->SetGridy();
486    sst.str("");    sst.str("");
487    sst << "Trigger Rate Counters (S21 OR S22) AND (S31 OR S32) ";    sst << "Trigger Rate Counters (S21 OR S22) AND (S31 OR S32) ";
488    TrigRate2Graph->SetTitle(sst.str().c_str());    TrigRate2Graph->SetTitle(sst.str().c_str());
# Line 412  void TriggerScanBasic(TString base, TStr Line 491  void TriggerScanBasic(TString base, TStr
491    TrigRate2Graph->GetXaxis()->CenterTitle();    TrigRate2Graph->GetXaxis()->CenterTitle();
492    TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");    TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");
493    TrigRate2Graph->GetYaxis()->CenterTitle();    TrigRate2Graph->GetYaxis()->CenterTitle();
494      TrigRate2Graph->SetMaximum(140);
495    TrigRate2Graph->Draw("AP");    TrigRate2Graph->Draw("AP");
496    //    //
497    //----------    //----------
# Line 422  void TriggerScanBasic(TString base, TStr Line 502  void TriggerScanBasic(TString base, TStr
502    sst.str("");    sst.str("");
503    sst << "Graph of Trigger Rate Counters (S21 AND S22) AND (S31 AND S32) vs OBT based on " << base.Data();    sst << "Graph of Trigger Rate Counters (S21 AND S22) AND (S31 AND S32) vs OBT based on " << base.Data();
504    
505    TGraph *TrigRate3Graph   = new TGraph(nevents, time, trigrate3);    TGraph *TrigRate3Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)trigrate3);
506    TrigRate2Canvas->cd(1);    TrigRate2Canvas->cd(1)->SetGridy();
507    sst.str("");    sst.str("");
508    sst << "Trigger Rate Counters (S21 AND S22) AND (S31 AND S32)";    sst << "Trigger Rate Counters (S21 AND S22) AND (S31 AND S32)";
509    TrigRate3Graph->SetTitle(sst.str().c_str());    TrigRate3Graph->SetTitle(sst.str().c_str());
# Line 432  void TriggerScanBasic(TString base, TStr Line 512  void TriggerScanBasic(TString base, TStr
512    TrigRate3Graph->GetXaxis()->CenterTitle();    TrigRate3Graph->GetXaxis()->CenterTitle();
513    TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");    TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");
514    TrigRate3Graph->GetYaxis()->CenterTitle();    TrigRate3Graph->GetYaxis()->CenterTitle();
515      TrigRate3Graph->SetMaximum(60);
516    TrigRate3Graph->Draw("AP");    TrigRate3Graph->Draw("AP");
517    //----------    //----------
518    sst.str("");    sst.str("");
519    sst << "Graph Trigger Rate Counters S12 AND (S21 AND S22) vs OBT based on " << base.Data();    sst << "Graph Trigger Rate Counters S12 AND (S21 AND S22) vs OBT based on " << base.Data();
520    TGraph *TrigRate4Graph   = new TGraph(nevents, time, trigrate4);    TGraph *TrigRate4Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)trigrate4);
521    TrigRate2Canvas->cd(2);    TrigRate2Canvas->cd(2)->SetGridy();
522    sst.str("");    sst.str("");
523    sst << "Trigger Rate Counters S12 AND (S21 AND S22)";    sst << "Trigger Rate Counters S12 AND (S21 AND S22)";
524    TrigRate4Graph->SetTitle(sst.str().c_str());    TrigRate4Graph->SetTitle(sst.str().c_str());
# Line 446  void TriggerScanBasic(TString base, TStr Line 527  void TriggerScanBasic(TString base, TStr
527    TrigRate4Graph->GetXaxis()->CenterTitle();    TrigRate4Graph->GetXaxis()->CenterTitle();
528    TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");    TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");
529    TrigRate4Graph->GetYaxis()->CenterTitle();    TrigRate4Graph->GetYaxis()->CenterTitle();
530      TrigRate4Graph->SetMaximum(400);
531    TrigRate4Graph->Draw("AP");    TrigRate4Graph->Draw("AP");
532    //----------    //----------
533    sst.str("");    sst.str("");
534    sst << "Graph Trigger Rate Counters (S11 OR S12) AND (S31 OR S32) vs OBT based on " << base.Data();    sst << "Graph Trigger Rate Counters (S11 OR S12) AND (S31 OR S32) vs OBT based on " << base.Data();
535    TGraph *TrigRate5Graph   = new TGraph(nevents, time, trigrate5);    TGraph *TrigRate5Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)trigrate5);
536    TrigRate2Canvas->cd(3);    TrigRate2Canvas->cd(3)->SetGridy();
537    sst.str("");    sst.str("");
538    sst << "Trigger Rate Counters (S11 OR S12) AND (S31 OR S32)";    sst << "Trigger Rate Counters (S11 OR S12) AND (S31 OR S32)";
539    TrigRate5Graph->SetTitle(sst.str().c_str());    TrigRate5Graph->SetTitle(sst.str().c_str());
# Line 460  void TriggerScanBasic(TString base, TStr Line 542  void TriggerScanBasic(TString base, TStr
542    TrigRate5Graph->GetXaxis()->CenterTitle();    TrigRate5Graph->GetXaxis()->CenterTitle();
543    TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");    TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)");
544    TrigRate5Graph->GetYaxis()->CenterTitle();    TrigRate5Graph->GetYaxis()->CenterTitle();
545      TrigRate5Graph->SetMaximum(170);
546    TrigRate5Graph->Draw("AP");    TrigRate5Graph->Draw("AP");
547    //----------    //----------
548    
549    gStyle->SetOptStat("mr");    gStyle->SetOptStat("mr");
550    
551    /* S4 and Calorimeter Counters draw*/    /* S4 and Calorimeter Counters draw*/
552    TGraph *s4RateGraph   = new TGraph(nevents, time, s4rate);    TGraph *s4RateGraph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)s4rate);
553    S4CalCanvas->cd(1);    S4CalCanvas->cd(1);
554    sst.str("");    sst.str("");
555    sst << "S4 Trigger Rate Counters";    sst << "S4 Trigger Rate Counters";
# Line 496  void TriggerScanBasic(TString base, TStr Line 579  void TriggerScanBasic(TString base, TStr
579    //----------      //----------  
580    sst.str("");    sst.str("");
581    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
582    TGraph *PMT1_0Graph   = new TGraph(nevents, time, pmt1_0);    TGraph *PMT1_0Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_0);
583    RatePMT1->cd(1);    RatePMT1->cd(1);
584    sst.str("");    sst.str("");
585    sst << "PMT S111A";    sst << "PMT S111A";
# Line 511  void TriggerScanBasic(TString base, TStr Line 594  void TriggerScanBasic(TString base, TStr
594    //----------    //----------
595    sst.str("");    sst.str("");
596    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
597    TGraph *PMT1_1Graph   = new TGraph(nevents, time, pmt1_1);    TGraph *PMT1_1Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_1);
598    RatePMT1->cd(2);    RatePMT1->cd(2);
599    sst.str("");    sst.str("");
600    sst << "PMT S112A";    sst << "PMT S112A";
# Line 525  void TriggerScanBasic(TString base, TStr Line 608  void TriggerScanBasic(TString base, TStr
608    //----------    //----------
609    sst.str("");    sst.str("");
610    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
611    TGraph *PMT1_2Graph   = new TGraph(nevents, time, pmt1_2);    TGraph *PMT1_2Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_2);
612    RatePMT1->cd(3);    RatePMT1->cd(3);
613    sst.str("");    sst.str("");
614    sst << "PMT S113A";    sst << "PMT S113A";
# Line 539  void TriggerScanBasic(TString base, TStr Line 622  void TriggerScanBasic(TString base, TStr
622    //----------    //----------
623    sst.str("");    sst.str("");
624    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
625    TGraph *PMT1_3Graph   = new TGraph(nevents, time, pmt1_3);    TGraph *PMT1_3Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_3);
626    RatePMT1->cd(4);    RatePMT1->cd(4);
627    sst.str("");    sst.str("");
628    sst << "PMT S114A";    sst << "PMT S114A";
# Line 553  void TriggerScanBasic(TString base, TStr Line 636  void TriggerScanBasic(TString base, TStr
636    //----------    //----------
637    sst.str("");    sst.str("");
638    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
639    TGraph *PMT1_4Graph   = new TGraph(nevents, time, pmt1_4);    TGraph *PMT1_4Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_4);
640    RatePMT1->cd(5);    RatePMT1->cd(5);
641    sst.str("");    sst.str("");
642    sst << "PMT S115A";    sst << "PMT S115A";
# Line 567  void TriggerScanBasic(TString base, TStr Line 650  void TriggerScanBasic(TString base, TStr
650    //----------    //----------
651    sst.str("");    sst.str("");
652    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
653    TGraph *PMT1_5Graph   = new TGraph(nevents, time, pmt1_5);    TGraph *PMT1_5Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_5);
654    RatePMT1->cd(6);    RatePMT1->cd(6);
655    sst.str("");    sst.str("");
656    sst << "PMT S116A";    sst << "PMT S116A";
# Line 581  void TriggerScanBasic(TString base, TStr Line 664  void TriggerScanBasic(TString base, TStr
664    //----------    //----------
665    sst.str("");    sst.str("");
666    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
667    TGraph *PMT1_6Graph   = new TGraph(nevents, time, pmt1_6);    TGraph *PMT1_6Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_6);
668    RatePMT1->cd(7);    RatePMT1->cd(7);
669    sst.str("");    sst.str("");
670    sst << "PMT S117A";    sst << "PMT S117A";
# Line 595  void TriggerScanBasic(TString base, TStr Line 678  void TriggerScanBasic(TString base, TStr
678    //----------    //----------
679    sst.str("");    sst.str("");
680    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
681    TGraph *PMT1_7Graph   = new TGraph(nevents, time, pmt1_7);    TGraph *PMT1_7Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_7);
682    RatePMT1->cd(8);    RatePMT1->cd(8);
683    sst.str("");    sst.str("");
684    sst << "PMT S118A";    sst << "PMT S118A";
# Line 614  void TriggerScanBasic(TString base, TStr Line 697  void TriggerScanBasic(TString base, TStr
697    //----------      //----------  
698    sst.str("");    sst.str("");
699    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
700    TGraph *PMT1_8Graph   = new TGraph(nevents, time, pmt1_8);    TGraph *PMT1_8Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_8);
701    RatePMT2->cd(1);    RatePMT2->cd(1);
702    sst.str("");    sst.str("");
703    sst << "PMT S111B";    sst << "PMT S111B";
# Line 628  void TriggerScanBasic(TString base, TStr Line 711  void TriggerScanBasic(TString base, TStr
711    //----------    //----------
712    sst.str("");    sst.str("");
713    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
714    TGraph *PMT1_9Graph   = new TGraph(nevents, time, pmt1_9);    TGraph *PMT1_9Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_9);
715    RatePMT2->cd(2);    RatePMT2->cd(2);
716    sst.str("");    sst.str("");
717    sst << "PMT S112B";    sst << "PMT S112B";
# Line 642  void TriggerScanBasic(TString base, TStr Line 725  void TriggerScanBasic(TString base, TStr
725    //----------    //----------
726    sst.str("");    sst.str("");
727    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
728    TGraph *PMT1_10Graph   = new TGraph(nevents, time, pmt1_10);    TGraph *PMT1_10Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_10);
729    RatePMT2->cd(3);    RatePMT2->cd(3);
730    sst.str("");    sst.str("");
731    sst << "PMT S113B";    sst << "PMT S113B";
# Line 656  void TriggerScanBasic(TString base, TStr Line 739  void TriggerScanBasic(TString base, TStr
739    //----------    //----------
740    sst.str("");    sst.str("");
741    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
742    TGraph *PMT1_11Graph   = new TGraph(nevents, time, pmt1_11);    TGraph *PMT1_11Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_11);
743    RatePMT2->cd(4);    RatePMT2->cd(4);
744    sst.str("");    sst.str("");
745    sst << "PMT S114B";    sst << "PMT S114B";
# Line 670  void TriggerScanBasic(TString base, TStr Line 753  void TriggerScanBasic(TString base, TStr
753    //----------    //----------
754    sst.str("");    sst.str("");
755    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
756    TGraph *PMT1_12Graph   = new TGraph(nevents, time, pmt1_12);    TGraph *PMT1_12Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_12);
757    RatePMT2->cd(5);    RatePMT2->cd(5);
758    sst.str("");    sst.str("");
759    sst << "PMT S115B";    sst << "PMT S115B";
# Line 684  void TriggerScanBasic(TString base, TStr Line 767  void TriggerScanBasic(TString base, TStr
767    //----------    //----------
768    sst.str("");    sst.str("");
769    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
770    TGraph *PMT1_13Graph   = new TGraph(nevents, time, pmt1_13);    TGraph *PMT1_13Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_13);
771    RatePMT2->cd(6);    RatePMT2->cd(6);
772    sst.str("");    sst.str("");
773    sst << "PMT S116B";    sst << "PMT S116B";
# Line 698  void TriggerScanBasic(TString base, TStr Line 781  void TriggerScanBasic(TString base, TStr
781    //----------    //----------
782    sst.str("");    sst.str("");
783    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
784    TGraph *PMT1_14Graph   = new TGraph(nevents, time, pmt1_14);    TGraph *PMT1_14Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_14);
785    RatePMT2->cd(7);    RatePMT2->cd(7);
786    sst.str("");    sst.str("");
787    sst << "PMT S117B";    sst << "PMT S117B";
# Line 712  void TriggerScanBasic(TString base, TStr Line 795  void TriggerScanBasic(TString base, TStr
795    //----------    //----------
796    sst.str("");    sst.str("");
797    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
798    TGraph *PMT1_15Graph   = new TGraph(nevents, time, pmt1_15);    TGraph *PMT1_15Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_15);
799    RatePMT2->cd(8);    RatePMT2->cd(8);
800    sst.str("");    sst.str("");
801    sst << "PMT S118B";    sst << "PMT S118B";
# Line 732  void TriggerScanBasic(TString base, TStr Line 815  void TriggerScanBasic(TString base, TStr
815    //----------      //----------  
816    sst.str("");    sst.str("");
817    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
818    TGraph *PMT1_16Graph   = new TGraph(nevents, time, pmt1_16);    TGraph *PMT1_16Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_16);
819    RatePMT3->cd(1);    RatePMT3->cd(1);
820    sst.str("");    sst.str("");
821    sst << "PMT S121A";    sst << "PMT S121A";
# Line 746  void TriggerScanBasic(TString base, TStr Line 829  void TriggerScanBasic(TString base, TStr
829    //----------    //----------
830    sst.str("");    sst.str("");
831    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
832    TGraph *PMT1_17Graph   = new TGraph(nevents, time, pmt1_17);    TGraph *PMT1_17Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_17);
833    RatePMT3->cd(2);    RatePMT3->cd(2);
834    sst.str("");    sst.str("");
835    sst << "PMT S122A";    sst << "PMT S122A";
# Line 760  void TriggerScanBasic(TString base, TStr Line 843  void TriggerScanBasic(TString base, TStr
843    //----------    //----------
844    sst.str("");    sst.str("");
845    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
846    TGraph *PMT1_18Graph   = new TGraph(nevents, time, pmt1_18);    TGraph *PMT1_18Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_18);
847    RatePMT3->cd(3);    RatePMT3->cd(3);
848    sst.str("");    sst.str("");
849    sst << "PMT S123A";    sst << "PMT S123A";
# Line 774  void TriggerScanBasic(TString base, TStr Line 857  void TriggerScanBasic(TString base, TStr
857    //----------    //----------
858    sst.str("");    sst.str("");
859    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
860    TGraph *PMT1_19Graph   = new TGraph(nevents, time, pmt1_19);    TGraph *PMT1_19Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_19);
861    RatePMT3->cd(4);    RatePMT3->cd(4);
862    sst.str("");    sst.str("");
863    sst << "PMT S124A";    sst << "PMT S124A";
# Line 788  void TriggerScanBasic(TString base, TStr Line 871  void TriggerScanBasic(TString base, TStr
871    //----------    //----------
872    sst.str("");    sst.str("");
873    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
874    TGraph *PMT1_20Graph   = new TGraph(nevents, time, pmt1_20);    TGraph *PMT1_20Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_20);
875    RatePMT3->cd(5);    RatePMT3->cd(5);
876    sst.str("");    sst.str("");
877    sst << "PMT S125A";    sst << "PMT S125A";
# Line 802  void TriggerScanBasic(TString base, TStr Line 885  void TriggerScanBasic(TString base, TStr
885    //----------    //----------
886    sst.str("");    sst.str("");
887    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
888    TGraph *PMT1_21Graph   = new TGraph(nevents, time, pmt1_21);    TGraph *PMT1_21Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_21);
889    RatePMT3->cd(6);    RatePMT3->cd(6);
890    sst.str("");    sst.str("");
891    sst << "PMT S126A";    sst << "PMT S126A";
# Line 816  void TriggerScanBasic(TString base, TStr Line 899  void TriggerScanBasic(TString base, TStr
899    //----------    //----------
900    sst.str("");    sst.str("");
901    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
902    TGraph *PMT1_22Graph   = new TGraph(nevents, time, pmt1_22);    TGraph *PMT1_22Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_22);
903    RatePMT3->cd(7);    RatePMT3->cd(7);
904    sst.str("");    sst.str("");
905    sst << "PMT S121B";    sst << "PMT S121B";
# Line 830  void TriggerScanBasic(TString base, TStr Line 913  void TriggerScanBasic(TString base, TStr
913    //----------    //----------
914    sst.str("");    sst.str("");
915    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
916    TGraph *PMT1_23Graph   = new TGraph(nevents, time, pmt1_23);    TGraph *PMT1_23Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt1_23);
917    RatePMT3->cd(8);    RatePMT3->cd(8);
918    sst.str("");    sst.str("");
919    sst << "PMT S122B";    sst << "PMT S122B";
# Line 847  void TriggerScanBasic(TString base, TStr Line 930  void TriggerScanBasic(TString base, TStr
930    //----------    //----------
931    sst.str("");    sst.str("");
932    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
933    TGraph *PMT2_0Graph   = new TGraph(nevents, time, pmt2_0);    TGraph *PMT2_0Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_0);
934    RatePMT3->cd(9);    RatePMT3->cd(9);
935    sst.str("");    sst.str("");
936    sst << "PMT S123B";    sst << "PMT S123B";
# Line 862  void TriggerScanBasic(TString base, TStr Line 945  void TriggerScanBasic(TString base, TStr
945    //----------    //----------
946    sst.str("");    sst.str("");
947    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
948    TGraph *PMT2_1Graph   = new TGraph(nevents, time, pmt2_1);    TGraph *PMT2_1Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_1);
949    RatePMT3->cd(10);    RatePMT3->cd(10);
950    sst.str("");    sst.str("");
951    sst << "PMT S124B";    sst << "PMT S124B";
# Line 877  void TriggerScanBasic(TString base, TStr Line 960  void TriggerScanBasic(TString base, TStr
960    //----------    //----------
961    sst.str("");    sst.str("");
962    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
963    TGraph *PMT2_2Graph   = new TGraph(nevents, time, pmt2_2);    TGraph *PMT2_2Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_2);
964    RatePMT3->cd(11);    RatePMT3->cd(11);
965    sst.str("");    sst.str("");
966    sst << "PMT S125B";    sst << "PMT S125B";
# Line 892  void TriggerScanBasic(TString base, TStr Line 975  void TriggerScanBasic(TString base, TStr
975    //----------    //----------
976    sst.str("");    sst.str("");
977    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
978    TGraph *PMT2_3Graph   = new TGraph(nevents, time, pmt2_3);    TGraph *PMT2_3Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_3);
979    RatePMT3->cd(12);    RatePMT3->cd(12);
980    sst.str("");    sst.str("");
981    sst << "PMT S126B";    sst << "PMT S126B";
# Line 912  void TriggerScanBasic(TString base, TStr Line 995  void TriggerScanBasic(TString base, TStr
995    //----------      //----------  
996    sst.str("");    sst.str("");
997    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
998    TGraph *PMT2_4Graph   = new TGraph(nevents, time, pmt2_4);    TGraph *PMT2_4Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_4);
999    RatePMT4->cd(1);    RatePMT4->cd(1);
1000    sst.str("");    sst.str("");
1001    sst << "PMT S211A";    sst << "PMT S211A";
# Line 926  void TriggerScanBasic(TString base, TStr Line 1009  void TriggerScanBasic(TString base, TStr
1009    //----------    //----------
1010    sst.str("");    sst.str("");
1011    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1012    TGraph *PMT2_5Graph   = new TGraph(nevents, time, pmt2_5);    TGraph *PMT2_5Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_5);
1013    RatePMT4->cd(2);    RatePMT4->cd(2);
1014    sst.str("");    sst.str("");
1015    sst << "PMT S212A";    sst << "PMT S212A";
# Line 940  void TriggerScanBasic(TString base, TStr Line 1023  void TriggerScanBasic(TString base, TStr
1023    //----------    //----------
1024    sst.str("");    sst.str("");
1025    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1026    TGraph *PMT2_6Graph   = new TGraph(nevents, time, pmt2_6);    TGraph *PMT2_6Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_6);
1027    RatePMT4->cd(3);    RatePMT4->cd(3);
1028    sst.str("");    sst.str("");
1029    sst << "PMT S211B";    sst << "PMT S211B";
# Line 954  void TriggerScanBasic(TString base, TStr Line 1037  void TriggerScanBasic(TString base, TStr
1037    //----------    //----------
1038    sst.str("");    sst.str("");
1039    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1040    TGraph *PMT2_7Graph   = new TGraph(nevents, time, pmt2_7);    TGraph *PMT2_7Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_7);
1041    RatePMT4->cd(4);    RatePMT4->cd(4);
1042    sst.str("");    sst.str("");
1043    sst << "PMT S212B";    sst << "PMT S212B";
# Line 968  void TriggerScanBasic(TString base, TStr Line 1051  void TriggerScanBasic(TString base, TStr
1051    //----------    //----------
1052    sst.str("");    sst.str("");
1053    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1054    TGraph *PMT2_8Graph   = new TGraph(nevents, time, pmt2_8);    TGraph *PMT2_8Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_8);
1055    RatePMT4->cd(5);    RatePMT4->cd(5);
1056    sst.str("");    sst.str("");
1057    sst << "PMT S221A";    sst << "PMT S221A";
# Line 982  void TriggerScanBasic(TString base, TStr Line 1065  void TriggerScanBasic(TString base, TStr
1065    //----------    //----------
1066    sst.str("");    sst.str("");
1067    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1068    TGraph *PMT2_9Graph   = new TGraph(nevents, time, pmt2_9);    TGraph *PMT2_9Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_9);
1069    RatePMT4->cd(6);    RatePMT4->cd(6);
1070    sst.str("");    sst.str("");
1071    sst << "PMT S222A";    sst << "PMT S222A";
# Line 996  void TriggerScanBasic(TString base, TStr Line 1079  void TriggerScanBasic(TString base, TStr
1079    //----------    //----------
1080    sst.str("");    sst.str("");
1081    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1082    TGraph *PMT2_10Graph   = new TGraph(nevents, time, pmt2_10);    TGraph *PMT2_10Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_10);
1083    RatePMT4->cd(7);    RatePMT4->cd(7);
1084    sst.str("");    sst.str("");
1085    sst << "PMT S221B";    sst << "PMT S221B";
# Line 1010  void TriggerScanBasic(TString base, TStr Line 1093  void TriggerScanBasic(TString base, TStr
1093    //----------    //----------
1094    sst.str("");    sst.str("");
1095    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1096    TGraph *PMT2_11Graph   = new TGraph(nevents, time, pmt2_11);    TGraph *PMT2_11Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_11);
1097    RatePMT4->cd(8);    RatePMT4->cd(8);
1098    sst.str("");    sst.str("");
1099    sst << "PMT S222B ";    sst << "PMT S222B ";
# Line 1030  void TriggerScanBasic(TString base, TStr Line 1113  void TriggerScanBasic(TString base, TStr
1113    //----------      //----------  
1114    sst.str("");    sst.str("");
1115    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1116    TGraph *PMT2_12Graph   = new TGraph(nevents, time, pmt2_12);    TGraph *PMT2_12Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_12);
1117    RatePMT5->cd(1);    RatePMT5->cd(1);
1118    sst.str("");    sst.str("");
1119    sst << "PMT S311A ";    sst << "PMT S311A ";
# Line 1044  void TriggerScanBasic(TString base, TStr Line 1127  void TriggerScanBasic(TString base, TStr
1127    //----------    //----------
1128    sst.str("");    sst.str("");
1129    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1130    TGraph *PMT2_13Graph   = new TGraph(nevents, time, pmt2_13);    TGraph *PMT2_13Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_13);
1131    RatePMT5->cd(2);    RatePMT5->cd(2);
1132    sst.str("");    sst.str("");
1133    sst << "PMT S312A";    sst << "PMT S312A";
# Line 1058  void TriggerScanBasic(TString base, TStr Line 1141  void TriggerScanBasic(TString base, TStr
1141    //----------    //----------
1142    sst.str("");    sst.str("");
1143    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1144    TGraph *PMT2_14Graph   = new TGraph(nevents, time, pmt2_14);    TGraph *PMT2_14Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_14);
1145    RatePMT5->cd(3);    RatePMT5->cd(3);
1146    sst.str("");    sst.str("");
1147    sst << "PMT S313A";    sst << "PMT S313A";
# Line 1072  void TriggerScanBasic(TString base, TStr Line 1155  void TriggerScanBasic(TString base, TStr
1155    //----------    //----------
1156    sst.str("");    sst.str("");
1157    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1158    TGraph *PMT2_15Graph   = new TGraph(nevents, time, pmt2_15);    TGraph *PMT2_15Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_15);
1159    RatePMT5->cd(4);    RatePMT5->cd(4);
1160    sst.str("");    sst.str("");
1161    sst << "PMT S311B";    sst << "PMT S311B";
# Line 1086  void TriggerScanBasic(TString base, TStr Line 1169  void TriggerScanBasic(TString base, TStr
1169    //----------    //----------
1170    sst.str("");    sst.str("");
1171    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1172    TGraph *PMT2_16Graph   = new TGraph(nevents, time, pmt2_16);    TGraph *PMT2_16Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_16);
1173    RatePMT5->cd(5);    RatePMT5->cd(5);
1174    sst.str("");    sst.str("");
1175    sst << "PMT S312B";    sst << "PMT S312B";
# Line 1100  void TriggerScanBasic(TString base, TStr Line 1183  void TriggerScanBasic(TString base, TStr
1183    //----------    //----------
1184    sst.str("");    sst.str("");
1185    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1186    TGraph *PMT2_17Graph   = new TGraph(nevents, time, pmt2_17);    TGraph *PMT2_17Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_17);
1187    RatePMT5->cd(6);    RatePMT5->cd(6);
1188    sst.str("");    sst.str("");
1189    sst << "PMT S313B";    sst << "PMT S313B";
# Line 1114  void TriggerScanBasic(TString base, TStr Line 1197  void TriggerScanBasic(TString base, TStr
1197    //----------    //----------
1198    sst.str("");    sst.str("");
1199    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1200    TGraph *PMT2_18Graph   = new TGraph(nevents, time, pmt2_18);    TGraph *PMT2_18Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_18);
1201    RatePMT5->cd(7);    RatePMT5->cd(7);
1202    sst.str("");    sst.str("");
1203    sst << "PMT S321A";    sst << "PMT S321A";
# Line 1128  void TriggerScanBasic(TString base, TStr Line 1211  void TriggerScanBasic(TString base, TStr
1211    //----------    //----------
1212    sst.str("");    sst.str("");
1213    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1214    TGraph *PMT2_19Graph   = new TGraph(nevents, time, pmt2_19);    TGraph *PMT2_19Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_19);
1215    RatePMT5->cd(8);    RatePMT5->cd(8);
1216    sst.str("");    sst.str("");
1217    sst << "PMT S322A";    sst << "PMT S322A";
# Line 1145  void TriggerScanBasic(TString base, TStr Line 1228  void TriggerScanBasic(TString base, TStr
1228    //----------    //----------
1229    sst.str("");    sst.str("");
1230    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1231    TGraph *PMT2_20Graph   = new TGraph(nevents, time, pmt2_20);    TGraph *PMT2_20Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_20);
1232    RatePMT5->cd(9);    RatePMT5->cd(9);
1233    sst.str("");    sst.str("");
1234    sst << "PMT S323A";    sst << "PMT S323A";
# Line 1160  void TriggerScanBasic(TString base, TStr Line 1243  void TriggerScanBasic(TString base, TStr
1243    //----------    //----------
1244    sst.str("");    sst.str("");
1245    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1246    TGraph *PMT2_21Graph   = new TGraph(nevents, time, pmt2_21);    TGraph *PMT2_21Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_21);
1247    RatePMT5->cd(10);    RatePMT5->cd(10);
1248    sst.str("");    sst.str("");
1249    sst << "PMT S321B";    sst << "PMT S321B";
# Line 1175  void TriggerScanBasic(TString base, TStr Line 1258  void TriggerScanBasic(TString base, TStr
1258    //----------    //----------
1259    sst.str("");    sst.str("");
1260    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1261    TGraph *PMT2_22Graph   = new TGraph(nevents, time, pmt2_22);    TGraph *PMT2_22Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_22);
1262    RatePMT5->cd(11);    RatePMT5->cd(11);
1263    sst.str("");    sst.str("");
1264    sst << "PMT S322B";    sst << "PMT S322B";
# Line 1190  void TriggerScanBasic(TString base, TStr Line 1273  void TriggerScanBasic(TString base, TStr
1273    //----------    //----------
1274    sst.str("");    sst.str("");
1275    sst << "pmtcount1[0] vs OBT based on " << base.Data();    sst << "pmtcount1[0] vs OBT based on " << base.Data();
1276    TGraph *PMT2_23Graph   = new TGraph(nevents, time, pmt2_23);    TGraph *PMT2_23Graph   = new TGraph(nevents, (const Double_t*)time, (const Double_t*)pmt2_23);
1277    RatePMT5->cd(12);    RatePMT5->cd(12);
1278    sst.str("");    sst.str("");
1279    sst << "PMT S323B";    sst << "PMT S323B";
# Line 1214  void TriggerScanBasic(TString base, TStr Line 1297  void TriggerScanBasic(TString base, TStr
1297      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic." << saveas  << "(";      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic." << saveas  << "(";
1298      EvCounterCanvas->Print(sst.str().c_str());      EvCounterCanvas->Print(sst.str().c_str());
1299      DeadLiveCanvas->Print(sst.str().c_str());      DeadLiveCanvas->Print(sst.str().c_str());
1300        MeanLiveDeadCanvas->Print(sst.str().c_str());
1301      PMTCanvas->Print(sst.str().c_str());      PMTCanvas->Print(sst.str().c_str());
1302      TrigRate1Canvas->Print(sst.str().c_str());      TrigRate1Canvas->Print(sst.str().c_str());
1303      TrigRate2Canvas->Print(sst.str().c_str());      TrigRate2Canvas->Print(sst.str().c_str());
# Line 1245  void TriggerScanBasic(TString base, TStr Line 1329  void TriggerScanBasic(TString base, TStr
1329    
1330      sst.str("");      sst.str("");
1331      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic3." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic3." << saveas;
1332        MeanLiveDeadCanvas->SaveAs(sst.str().c_str());
1333        sst.str("");
1334        sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic4." << saveas;
1335      PMTCanvas->SaveAs(sst.str().c_str());      PMTCanvas->SaveAs(sst.str().c_str());
1336            
1337      sst.str("");      sst.str("");
1338      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic4." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic5." << saveas;
1339      TrigRate1Canvas->SaveAs(sst.str().c_str());      TrigRate1Canvas->SaveAs(sst.str().c_str());
1340    
1341      sst.str("");      sst.str("");
1342      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic5." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic6." << saveas;
1343      TrigRate2Canvas->SaveAs(sst.str().c_str());      TrigRate2Canvas->SaveAs(sst.str().c_str());
1344            
1345      sst.str("");      sst.str("");
1346      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic6." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic7." << saveas;
1347      S4CalCanvas->SaveAs(sst.str().c_str());      S4CalCanvas->SaveAs(sst.str().c_str());
1348    
1349      gStyle->SetOptStat("mr");      gStyle->SetOptStat("mr");
1350    
1351      sst.str("");      sst.str("");
1352      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic7." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic8." << saveas;
1353      RatePMT1->SaveAs(sst.str().c_str());      RatePMT1->SaveAs(sst.str().c_str());
1354    
1355      sst.str("");      sst.str("");
1356      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic8." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic9." << saveas;
1357      RatePMT2->SaveAs(sst.str().c_str());      RatePMT2->SaveAs(sst.str().c_str());
1358    
1359      sst.str("");      sst.str("");
1360      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic9." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic10." << saveas;
1361      RatePMT3->SaveAs(sst.str().c_str());      RatePMT3->SaveAs(sst.str().c_str());
1362    
1363      sst.str("");      sst.str("");
1364      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic10." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic11." << saveas;
1365      RatePMT4->SaveAs(sst.str().c_str());      RatePMT4->SaveAs(sst.str().c_str());
1366            
1367      gStyle->SetOptStat("mr");      gStyle->SetOptStat("mr");
1368    
1369      sst.str("");      sst.str("");
1370      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic11." << saveas;      sst << outDirectory.Data() << filename.Data() << "TriggerScanBasic12." << saveas;
1371      RatePMT5->SaveAs(sst.str().c_str());      RatePMT5->SaveAs(sst.str().c_str());
1372            
1373    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23