Ignore:
Timestamp:
02/09/09 11:25:21 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimreflector/MSimReflector.cc

    r9285 r9307  
    2727//  MSimReflector
    2828//
     29//  fDetectorMargin is a margin (in mm) which is given to the
     30//  MGeomCam::HitDetector. It should define a margin around the area
     31//  defined in HitDetector on the focal plane in which photons are kept.
     32//  Usually this can be 0 because photons not hitting the detector are
     33//  obsolete except they can later be "moved" inside the detector, e.g.
     34//  if you use MSimPSF to emulate a PSF by moving photons randomly
     35//  on the focal plane.
     36//
    2937//////////////////////////////////////////////////////////////////////////////
    3038#include "MSimReflector.h"
     
    554562}
    555563
     564// --------------------------------------------------------------------------
     565//
     566// DetectorMargin: 0
     567//
     568Int_t MSimReflector::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     569{
     570    Bool_t rc = kFALSE;
     571    if (IsEnvDefined(env, prefix, "DetectorMargin", print))
     572    {
     573        rc = kTRUE;
     574        fDetectorMargin = GetEnvValue(env, prefix, "DetectorMargin", 0);
     575    }
     576
     577    return rc;
     578}
Note: See TracChangeset for help on using the changeset viewer.