Ignore:
Timestamp:
06/02/03 09:51:18 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h

    r2124 r2147  
    1212#pragma link C++ class MBlindPixels+;
    1313#pragma link C++ class MBlindPixelCalc+;
     14
     15#pragma link C++ class MCurrents+;
    1416
    1517#pragma link C++ class MPedestalPix+;
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r2139 r2147  
    236236// get the minimum ratio of photons/error
    237237//
    238 Float_t MCerPhotEvt::GetRatioMin() const
     238Float_t MCerPhotEvt::GetRatioMin(const MGeomCam *geom) const
    239239{
    240240    if (fNumPixels <= 0)
     
    250250
    251251        Float_t testval = pix.GetNumPhotons()/pix.GetErrorPhot();
     252        if (geom)
     253            testval *= TMath::Sqrt(geom->GetPixRatio(pix.GetPixId()));
     254
    252255        if (testval < minval)
    253256            minval = testval;
     
    261264// get the maximum ratio of photons/error
    262265//
    263 Float_t MCerPhotEvt::GetRatioMax() const
     266Float_t MCerPhotEvt::GetRatioMax(const MGeomCam *geom) const
    264267{
    265268    if (fNumPixels <= 0)
     
    275278
    276279        Float_t testval = pix.GetNumPhotons()/pix.GetErrorPhot();
     280        if (geom)
     281            testval *= TMath::Sqrt(geom->GetPixRatio(pix.GetPixId()));
     282
    277283        if (testval > maxval)
    278284            maxval = testval;
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h

    r2135 r2147  
    4141    Float_t GetNumPhotonsMax(const MGeomCam *geom=NULL) const;
    4242
    43     Float_t GetRatioMin() const;
    44     Float_t GetRatioMax() const;
     43    Float_t GetRatioMin(const MGeomCam *geom=NULL) const;
     44    Float_t GetRatioMax(const MGeomCam *geom=NULL) const;
    4545
    4646    Float_t GetErrorPhotMin(const MGeomCam *geom=NULL) const;
  • trunk/MagicSoft/Mars/manalysis/Makefile

    r2124 r2147  
    3333           MMcPedestalCopy.cc \
    3434           MMcPedestalNSBAdd.cc \
     35           MCurrents.cc \
    3536           MEnergyEst.cc \
    3637           MEnergyEstimate.cc \
Note: See TracChangeset for help on using the changeset viewer.