Changeset 8446


Ignore:
Timestamp:
04/25/07 15:39:43 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8444 r8446  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/04/25 Thomas Bretz
     22
     23   * mbadpixels/MBadPixelsCam.cc:
     24     - removed obsolete code from Print() which tried to align the output
     25
     26   * mhcalib/MHCalibrationChargeCam.cc:
     27     - increased the shown binning range further
     28
     29   * mhcalib/MHCalibrationPulseTimeCam.cc:
     30     - unimportant changes
     31
     32   * mjobs/MJPedestal.cc:
     33     - changed a comment
     34
     35   * mpedestal/MPedestalSubtractedEvt.h:
     36     - fixed a bug of preset upper limits. The last slice is fNumSamples-1
     37       not fNumSamples
     38
     39
     40
    2141 2007/04/24 Thomas Bretz
    2242
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r8423 r8446  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.49 2007-04-20 08:55:17 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.50 2007-04-25 14:39:41 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    394394   
    395395  Int_t count = 0;
    396   Int_t full  = 0;
    397396
    398397  for (Int_t i=0; i<GetSize(); i++)
     
    401400        {
    402401          *fLog << i << " ";
    403           full++;
    404402          count ++;
    405403        }
    406      
    407       if (count == 0)
    408         continue;
    409      
    410       if (!(full % 25))
    411         {
    412           full = 0;
    413           *fLog << endl;
    414         }
    415     }
    416   *fLog << endl;
     404    }
    417405  *fLog << count << " normal pixels" << endl;
    418406  *fLog << endl;
    419407
    420408  *fLog << "Pixels unsuited for the whole run:" << endl;
    421  
    422   full  = 0;
     409
    423410  count = 0;
    424411  for (Int_t i=0; i<GetSize(); i++)
     
    427414        {
    428415          *fLog << i << " ";
    429           full++;
    430416          count ++;
    431417        }
    432      
    433       if (count == 0)
    434         continue;
    435      
    436       if (!(full % 25))
    437         {
    438           full = 0;
    439           *fLog << endl;
    440         }
    441     }
    442 
    443   *fLog << endl;
     418    }
     419
    444420  *fLog << count << " unsuited pixels per run :-(" << endl;
    445421  *fLog << endl;
    446  
     422
    447423  *fLog << "Pixels unsuited for this event:" << endl;
    448424
    449   full  = 0;
    450425  count = 0;
    451426  for (Int_t i=0; i<GetSize(); i++)
     
    454429        {
    455430          *fLog << i << " ";
    456           full++;
    457431          count ++;
    458432        }
    459      
    460       if (count == 0)
    461         continue;
    462      
    463       if (!(full % 25))
    464         {
    465           full  = 0;
    466           *fLog << endl;
    467         }
    468     }
    469 
    470   *fLog << endl;
     433    }
     434
    471435  *fLog << count << " unsuited pixels per event :-(" << endl;
    472436  *fLog << endl;
    473  
    474   full  = 0;
     437
    475438  count = 0;
    476  
     439
    477440  *fLog << all << "Pixels unreliable for the whole run:" << endl;
    478  
     441
    479442  for (Int_t i=0; i<GetSize(); i++)
    480443    {
     
    482445        {
    483446          *fLog << i << " ";
    484           full++;
    485447          count ++;
    486448        }
    487      
    488       if (count == 0)
    489         continue;
    490      
    491       if (!(full % 25))
    492         {
    493           full  = 0;
    494           *fLog << endl;
    495         }
    496     }
    497  
    498   *fLog << endl;
     449    }
     450
    499451  *fLog << count << " unreliable pixels :-(" << endl;
    500452  *fLog << endl;
     
    502454  *fLog << all << "Unsuited pixels statistics:" << endl;
    503455  *fLog << endl;
    504  
     456
    505457  PrintBadPixels(MBadPixelsPix::kPreviouslyExcluded,"Previously excluded");
    506458  PrintBadPixels(MBadPixelsPix::kChargeIsPedestal,"Signal smaller 3 Pedestal RMS");
     
    519471  *fLog << all << "Unreliable pixels statistics:" << endl;
    520472  *fLog << endl;
    521  
     473
    522474  PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal Sigma smaller Pedestal RMS");
    523475  PrintBadPixels(MBadPixelsPix::kHiGainNotFitted    ,"High Gain Signals could not be fitted");
     
    554506  *fLog << "Pixels with " << text << ": " << endl;
    555507  UInt_t count = 0;
    556   UInt_t full  = 0;
    557508
    558509  for (Int_t i=0; i<GetSize(); i++)
     
    561512        {
    562513          *fLog << i << " ";
    563           full++;
    564514          count++;
    565515        }
    566      
    567       if (count == 0)
    568         continue;
    569      
    570       if (!(full % 25))
    571         {
    572           full  = 0;
    573           *fLog << endl;
    574         }
    575516    }
    576517 
    577   *fLog << endl;
    578518  *fLog << Form("%3i",count) << " pixels in total " << endl;
    579519}
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r8417 r8446  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.56 2007-04-18 15:33:56 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.57 2007-04-25 14:39:43 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    12741274    xaxe->SetTitle(hist->GetXaxis()->GetTitle());
    12751275    yaxe->SetTitle(hist->GetYaxis()->GetTitle());
    1276     xaxe->SetRange(hist->GetMaximumBin()-30, hist->GetMaximumBin()+30);
     1276    xaxe->SetRange(hist->GetMaximumBin()-50, hist->GetMaximumBin()+50);
    12771277
    12781278    gStyle->SetOptFit();
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r8434 r8446  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.37 2007-04-23 19:06:28 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.38 2007-04-25 14:39:43 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    390390
    391391        // Get position of maximum
    392         const Int_t   pos = evt->GetMax(idx/*, first, last*/);
     392        const Int_t   pos = evt->GetMax(idx);
    393393        const Float_t max = evt->GetSamples(idx)[pos];
    394394
     
    413413    for (UInt_t j=0; j<nareas; j++)
    414414    {
    415         const Int_t npix = fAverageAreaNum[j];
    416 
    417         if (npix > fNumPixelsRequired)
     415        if (fAverageAreaNum[j] > fNumPixelsRequired)
    418416        {
     417            sumarea[j] /= fAverageAreaNum[j];
     418
    419419            if (IsOscillations())
    420                 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]/npix);
     420                GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]);
    421421            else
    422                 GetAverageHiGainArea(j).FillHist(sumarea[j]/npix);
     422                GetAverageHiGainArea(j).FillHist(sumarea[j]);
    423423
    424424        }
     
    427427    for (UInt_t j=0; j<nsectors; j++)
    428428    {
    429         const Int_t npix = fAverageSectorNum[j];
    430 
    431         if (npix > 0)
     429        if (fAverageSectorNum[j] > 0)
    432430        {
     431            sumsector[j] /= fAverageSectorNum[j];
     432
    433433            if (IsOscillations())
    434                 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]/npix);
     434                GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]);
    435435            else
    436                 GetAverageHiGainSector(j).FillHist(sumsector[j]/npix);
     436                GetAverageHiGainSector(j).FillHist(sumsector[j]);
    437437        }
    438438    }
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8439 r8446  
    10701070        hpedcam.SetRenorm(kTRUE);
    10711071
    1072     // To have it in the parlist!
     1072    // To have it in the parlist for MEnv!
    10731073    MHCalibrationPulseTimeCam pulcam;
    10741074    plist.AddToList(&pulcam);
  • trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.h

    r8361 r8446  
    4949    Int_t GetMax(const Int_t pixidx, UInt_t &val) const
    5050    {
    51         return GetMax(pixidx, 0, fNumSamples, val);
     51        return GetMax(pixidx, 0, fNumSamples-1, val);
    5252    }
    5353
     
    5555    {
    5656        UInt_t val;
    57         return GetMax(pixidx, 0, fNumSamples, val);
     57        return GetMax(pixidx, 0, fNumSamples-1, val);
    5858    }
    5959    Int_t GetSaturation(const Int_t pixidx, Int_t limit) const
    6060    {
    6161        Int_t first=0;
    62         Int_t last=fNumSamples;
     62        Int_t last=fNumSamples-1;
    6363        return GetSaturation(pixidx, limit, first, last);
    6464    }
Note: See TracChangeset for help on using the changeset viewer.