Changeset 7276 for trunk/MagicSoft


Ignore:
Timestamp:
08/08/05 17:48:46 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7275 r7276  
    2626   * datacenter/macros/resetallruns.C:
    2727     - fixed small bug
     28
     29   * datacenter/macros/fillstar.C:
     30     - fixed bug
    2831
    2932
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r7252 r7276  
    5353#include "MSQLServer.h"
    5454
     55#include "MHMuonPar.h"
    5556#include "MStatusArray.h"
    5657#include "MGeomCamMagic.h"
     
    105106    }
    106107
    107     MHMuonPar *hmuon = (TProfile*)arr.FindObjectInCanvas("MHMuonPar", "MHMuonPar", "MHMuonPar");
     108    MHMuonPar *hmuon = (MHMuonPar*)arr.FindObjectInCanvas("MHMuonPar", "MHMuonPar", "MHMuonPar");
    108109    if (!hmuon)
    109110    {
     
    112113    }
    113114
    114     Float_t psf   = (muon->GetMeanWidth() - 0.04816)/0.001294;
     115    Float_t psf   = (hmuon->GetMeanWidth() - 0.04816)/0.001294;
    115116    psf = TMath::Nint(psf*10)/10.;
    116117    TString PSF = Form("%5.1f", psf);
    117     Int_t   num = (int)muon.GetEntries();
     118    Int_t   num = (int)hmuon->GetEntries();
    118119
    119120    Float_t integralmc = -1.43*psf + 1035;
    120     Float_t ratiodatamc = (muon->GetMeanSize()/integralmc)*100;
     121    Float_t ratiodatamc = (hmuon->GetMeanSize()/integralmc)*100;
    121122    TString ratio = Form("%5.1f", ratiodatamc);
    122123
Note: See TracChangeset for help on using the changeset viewer.