Ignore:
Timestamp:
08/21/03 15:24:03 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r2265 r2312  
    136136}
    137137
     138void MHCamEvent::PrintOutlayers(Float_t s) const
     139{
     140    const Double_t mean = fSum->GetMean();
     141    const Double_t rms  = fSum->GetRMS();
     142
     143    *fLog << all << underline << GetDescriptor() << ": Mean=" << mean << ", Rms=" << rms << endl;
     144
     145    for (unsigned int i=0; i<fSum->GetNumPixels(); i++)
     146    {
     147        if (!fSum->IsUsed(i))
     148            continue;
     149
     150        if ((*fSum)[i+1]>mean+s*rms)
     151            *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " > " << s << "*rms" << endl;
     152        // if ((*fSum)[i+1]==0)
     153        //     *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " == 0" << endl;
     154        // if ((*fSum)[i+1]<fSum->GetMean()-s*fSum->GetRMS())
     155        //     *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " < " << s << "*rms" << endl;
     156    }
     157}
     158
    138159// --------------------------------------------------------------------------
    139160//
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.h

    r2229 r2312  
    3434    void Draw(Option_t *o="");
    3535
     36    void PrintOutlayers(Float_t s) const;
     37
    3638    ClassDef(MHCamEvent, 1) // Histogram to sum camera events
    3739};
Note: See TracChangeset for help on using the changeset viewer.