/[PAMELA software]/calo/flight/FQLOOK/macros/FCaloCHKCALIB.cxx
ViewVC logotype

Diff of /calo/flight/FQLOOK/macros/FCaloCHKCALIB.cxx

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

revision 1.13 by mocchiut, Mon Feb 26 08:50:59 2007 UTC revision 1.15 by mocchiut, Wed Jul 18 07:57:12 2007 UTC
# Line 1  Line 1 
1  //  //
2  //   Check the calorimter calibrations - Emiliano Mocchiutti  //   Check the calorimter calibrations - Emiliano Mocchiutti
3  //  //
4  //   FCaloCHKCALIB.c      version 1.13  (2006-09-22)  //   FCaloCHKCALIB.c      version 1.14  (2007-07-18)
5  //  //
6  //   The only input needed is the path to the directory created by YODA for the data file you want to analyze.  //   The only input needed is the path to the directory created by YODA for the data file you want to analyze.
7  //  //
8  //   Changelog:  //   Changelog:
9  //  //
10    //   1.12 - 1.14 (2007-07-18): 05953 bug fixed (infinite loop).
11    //
12  //   1.12 - 1.13 (2006-09-22): Set upper limit in calvar plot.  //   1.12 - 1.13 (2006-09-22): Set upper limit in calvar plot.
13  //  //
14  //   1.07 - 1.12 (2006-08-04): bugs fixed.  //   1.07 - 1.12 (2006-08-04): bugs fixed.
# Line 310  void FCaloCHKCALIB(TString filename, Lon Line 312  void FCaloCHKCALIB(TString filename, Lon
312      Int_t s = 0;      Int_t s = 0;
313      obt = cpuhead[hi];      obt = cpuhead[hi];
314      //    printf(" qui cpu header : %i hi %i entry %i \n",obt,hi,ci);      //    printf(" qui cpu header : %i hi %i entry %i \n",obt,hi,ci);
315      while ( labs((Int_t)(obt-cpuhead[hi])) < 100000 && ci < maxev){      if ( !obt ) break;
316        while ( (labs((Int_t)(obt-cpuhead[hi])) < 100000 && ci < maxev) || !cpuobt ){
317    
318        tr->GetEntry(ci);//sceglie la entry (calibrazione)del tree in cui ho tutte le sottostrutture        tr->GetEntry(ci);//sceglie la entry (calibrazione)del tree in cui ho tutte le sottostrutture
319        //      tr->GetEntry(ci+s);//sceglie la entry (calibrazione)del tree in cui ho tutte le sottostrutture        //      tr->GetEntry(ci+s);//sceglie la entry (calibrazione)del tree in cui ho tutte le sottostrutture
# Line 588  void FCaloCHKCALIB(TString filename, Lon Line 591  void FCaloCHKCALIB(TString filename, Lon
591                incalvar++;                incalvar++;
592              };              };
593              calbase->Fill((float)g,(float)calib.calbase[l][m][n]);//controlla baseline                                                                calbase->Fill((float)g,(float)calib.calbase[l][m][n]);//controlla baseline                                                  
594              if ( calib.calbase[l][m][n] > 4500. || calib.calbase[l][m][n] < 2000. ){              if ( calib.calbase[l][m][n] > 5500. || calib.calbase[l][m][n] < 2000. ){
595                outcalbas++;                outcalbas++;
596              } else {              } else {
597                incalbas++;                incalbas++;
# Line 940  void FCaloCHKCALIB(TString filename, Lon Line 943  void FCaloCHKCALIB(TString filename, Lon
943      calbase->SetYTitle("ADC channels");      calbase->SetYTitle("ADC channels");
944      calbase->Draw();      calbase->Draw();
945      Double_t xg[4] = {0.,264.,264.,0.};      Double_t xg[4] = {0.,264.,264.,0.};
946      Double_t yg[4] = {2000.,2000.,4500.,4500.};      Double_t yg[4] = {2000.,2000.,5500.,5500.};
947      banda1 = new TPolyLine(4,xg,yg);      banda1 = new TPolyLine(4,xg,yg);
948      banda1->SetLineColor(5);      banda1->SetLineColor(5);
949      banda1->SetFillColor(5);      banda1->SetFillColor(5);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23