Ignore:
Timestamp:
02/02/07 13:50:45 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc

    r8270 r8288  
    3333
    3434#include <TH2.h>
     35#include <TH3.h>
    3536
    3637#include "MLog.h"
     
    5253// --------------------------------------------------------------------------
    5354//
     55// Fill radial photon distance into histogram scaled by scale.
     56//
     57void MRflSinglePhoton::FillRad(TH2 &hist, Double_t z, Float_t scale) const
     58{
     59    hist.Fill(TMath::Hypot(fX, fY)*scale, z);
     60}
     61
     62// --------------------------------------------------------------------------
     63//
    5464// Fill photon position into histogram scaled by scale.
    5565//
    5666void MRflSinglePhoton::Fill(TH2 &hist, Float_t scale) const
     67{
     68    hist.Fill(fX*scale, fY*scale);
     69}
     70
     71// --------------------------------------------------------------------------
     72//
     73// Fill photon position into histogram scaled by scale.
     74//
     75void MRflSinglePhoton::Fill(TH3 &hist, Double_t z, Float_t scale) const
    5776{
    5877    hist.Fill(fX*scale, fY*scale);
Note: See TracChangeset for help on using the changeset viewer.