Changeset 3415


Ignore:
Timestamp:
03/05/04 21:29:08 (21 years ago)
Author:
tonello
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3414 r3415  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     72004/03/05: Nadia Tonello
     8
     9   * manalysis/MBlindPixelsCalc2.[h,cc]
     10   * manalysis/AnalysisLinkDef.h
     11   * manalysis/Makefile
     12     - Temporary class added (will be included in mbadpixels/ soon)
     13     - All the functions of MBlindPixelCalc are kept(with small improvements)
     14     - New function added: SetCheckPedestalRms
     15
     16   * manalysis/MCerPhotPix.h
     17     - Status Unmapped added (not include the pixel in the cleaned image)
     18
     19   * mimage/MImgCleanStd.cc
     20     - Checks for Unmapped status added
     21
     22   * mastro/MAstroCatalog.cc
     23   * msql/MSQLServer.cc
     24     - include <stdlib.h> to solve compilation error
     25
     26
    6272004/03/05: Sebastian Raducci
    728   * msignal/MArrivalTimeCalc.cc
  • trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h

    r3306 r3415  
    1616#pragma link C++ class MBlindPixels+;
    1717#pragma link C++ class MBlindPixelCalc+;
     18#pragma link C++ class MBlindPixelsCalc2+;
    1819
    1920#pragma link C++ class MPedestalPix+;
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h

    r2856 r3415  
    1212    Int_t    fPixId;     // the pixel Id
    1313
    14     UShort_t fRing;      // NT: number of analyzed rings around the core pixels (fRing>0 means: used)
     14   Short_t fRing;      // NT: number of analyzed rings around the core pixels, fRing>0 means: used, fRing= 0 means: unused, fRing= -1 means: unmapped (no possible to use in the calculation of the image parameters)
    1515    Bool_t   fIsCore;    // the pixel is a Core pixel -> kTRUE
    1616
     
    3030
    3131    Bool_t   IsPixelUsed() const         { return fRing>0; }
     32    Bool_t   IsPixelUnmapped() const     { return fRing==-1; }
    3233    void     SetPixelUnused()            { fRing=0; }
    3334    void     SetPixelUsed()              { fRing=1; }
     35    void     SetPixelUnmapped()          { fRing=-1;}
    3436
    3537    void     SetRing(UShort_t r)         { fRing = r;   }
     
    5254    void     Print(Option_t *opt = NULL) const;
    5355
    54     ClassDef(MCerPhotPix, 2)  // class containing information about the Cerenkov Photons in a pixel
     56    ClassDef(MCerPhotPix, 3)  // class containing information about the Cerenkov Photons in a pixel
    5557};
    5658
     
    5860
    5961
     62
  • trunk/MagicSoft/Mars/manalysis/Makefile

    r3331 r3415  
    6060           MBlindPixels.cc \
    6161           MBlindPixelCalc.cc \
     62           MBlindPixelsCalc2.cc \
    6263           MEventRate.cc \
    6364           MEventRateCalc.cc \
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc

    r3402 r3415  
    4242#include <TVirtualPad.h>
    4343
     44#include <stdlib.h>
     45
    4446#include "MLog.h"
    4547#include "MLogManip.h"
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r3183 r3415  
    340340    MCerPhotEvtIter Next(fEvt, kFALSE);
    341341    while ((pix=static_cast<MCerPhotPix*>(Next())))
    342         if (data[pix->GetPixId()] <= fCleanLvl1)
     342        if (!pix->IsPixelUnmapped() && data[pix->GetPixId()] <= fCleanLvl1)
    343343            pix->SetPixelUnused();
    344344}
     
    356356    // Loop over used pixels only
    357357    TIter Next(*fEvt);
     358
    358359    while ((pix=static_cast<MCerPhotPix*>(Next())))
    359     {
     360          {
    360361        // get pixel id of this entry
    361362        const Int_t idx = pix->GetPixId();
     
    387388    // now we declare all pixels that survive as CorePixels
    388389    //
     390
    389391    Next.Reset();
    390392    while ((pix=static_cast<MCerPhotPix*>(Next())))
    391         pix->SetPixelCore();
     393      {
     394        if ( pix->IsPixelUsed())
     395        pix->SetPixelCore();}
    392396}
    393397
     
    430434    //
    431435    if (pix.GetRing() != 0)
    432         return;
     436      { 
     437        return;
     438      }
    433439
    434440    //
     
    471477
    472478        // Loop over all pixels
     479
    473480        MCerPhotEvtIter NextAll(fEvt, kFALSE);
    474481        while ((pix=static_cast<MCerPhotPix*>(NextAll())))
    475         {
     482          {
    476483            //
    477             // if pixel is a core pixel go to the next pixel
     484            // if pixel is a core pixel or unmapped, go to the next pixel
    478485            //
    479             if (pix->IsPixelCore())
    480                 continue;
    481 
    482             if (data[pix->GetPixId()] <= fCleanLvl2)
    483                 continue;
    484 
    485             if (r==1)
    486                 CleanStep3b(*pix);
    487             else
    488                 CleanStep4(r, *pix);
     486          if (pix->IsPixelCore())
     487            {
     488            continue;}
     489          if (pix->IsPixelUnmapped())
     490            {
     491            continue;}
     492         
     493          if (data[pix->GetPixId()] <= fCleanLvl2)
     494            {
     495              continue;}
     496
     497          if (r==1)
     498            {
     499            CleanStep3b(*pix);}
     500          else
     501            {
     502            CleanStep4(r, *pix);}
     503         
    489504        }
    490505    }
     
    553568#endif
    554569    CleanStep1();
     570
    555571#ifdef DEBUG
    556572    *fLog << all << "CleanStep 2" << endl;
  • trunk/MagicSoft/Mars/msql/MSQLServer.cc

    r3328 r3415  
    3636#include <iostream>
    3737#include <iomanip>
     38#include <stdlib.h>
    3839
    3940#include <TROOT.h>
Note: See TracChangeset for help on using the changeset viewer.