Ignore:
Timestamp:
02/13/04 15:28:02 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
3 edited

Legend:

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

    r2173 r3140  
    3535#include "MMcEvt.hxx"
    3636#include "MBlindPixels.h"
    37 #include "MPedestalCam.h"
     37#include "MPedPhotCam.h"
    3838#include "MParList.h"
    3939#include "MBinning.h"
     
    8585    }
    8686
    87     fPed = (MPedestalCam*)plist->FindObject("MPedestalCam");
    88     if (!fPed)
     87   
     88    fPedPhot = (MPedPhotCam*)plist->FindObject("MPedPhotCam");
     89    if (!fPedPhot)
    8990    {
    90         *fLog << err << "MPedestalCam not found... aborting." << endl;
     91        *fLog << err << "MPedPhotCam not found... aborting." << endl;
    9192        return kFALSE;
    9293    }
    93 
     94   
    9495
    9596    // Get Theta Binning
     
    102103
    103104    // Get binning for pixel number
    104     const UInt_t npix1 = fPed->GetSize()+1;
     105    const UInt_t npix1 = fPedPhot->GetSize()+1;
    105106
    106107    MBinning binspix("BinningPixel");
     
    166167
    167168    // FIXME: Slow.
    168     const UInt_t npix = fPed->GetSize();
     169    const UInt_t npix = fPedPhot->GetSize();
    169170
    170171    UInt_t nb = 0;
  • trunk/MagicSoft/Mars/mhist/MHBlindPixels.h

    r2128 r3140  
    99#endif
    1010
    11 class MPedestalCam;
     11class MPedPhotCam;
    1212class MMcEvt;
    1313class MParList;
     
    1717{
    1818private:
    19     MPedestalCam  *fPed;      //!
     19    MPedPhotCam   *fPedPhot;      //!
    2020    MMcEvt        *fMcEvt;    //!
    2121
  • trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc

    r2798 r3140  
    9595    MBinning binst;
    9696    MBinning binsd;
    97     binsd.SetEdges(100, -5, 20);
    98     binsb.SetEdges(100, 0, 5);
     97    binsd.SetEdges(100, -10, 20);
     98    binsb.SetEdges(100, 0, 10);
    9999    binst.SetEdgesCos(10, 0, 90);
    100100
     
    166166
    167167    // Get binning for pixel number
    168     const UInt_t npix1 = fPed->GetSize()+1;
    169 
     168    //const UInt_t npix1 = fPed->GetSize()+1;
     169    //*fLog << "npix1 = " << npix1 << endl;
     170    //MBinning binspix("BinningPixel");
     171    //binspix.SetEdges(npix1, -0.5, npix1-0.5);
     172    // the above gives npix1 = 1; therefore :
    170173    MBinning binspix("BinningPixel");
    171     binspix.SetEdges(npix1, -0.5, npix1-0.5);
     174    binspix.SetEdges(578, -0.5, 577.5);
    172175
    173176    // Set binnings in histograms
     
    191194{
    192195    Double_t theta = fMcEvt ? fMcEvt->GetTelescopeTheta()*kRad2Deg : 0;
    193     Double_t mysig = fSigmabar->Calc(*fCam, *fPed, *fEvt);
     196    fSigmabar->Calc(*fCam, *fPed, *fEvt);
     197    Double_t mysig = fSigmabar->GetSigmabarInner();
     198
     199    //*fLog << "theta, mysig = " << theta << ",  " << mysig << endl;
    194200
    195201    fSigmaTheta.Fill(theta, mysig);
     
    211217        const Double_t sigma = pix.GetRms();
    212218
    213         fSigmaPixTheta.Fill(theta, (Double_t)id, sigma);
     219        fSigmaPixTheta.Fill(theta, (Double_t)id, sigma*sqrt(ratio));
    214220
    215221        const Double_t diff = sigma*sigma*ratio - mysig*mysig;
Note: See TracChangeset for help on using the changeset viewer.