Ignore:
Timestamp:
01/06/11 16:53:13 (12 years ago)
Author:
tbretz
Message:
Implemented improved handling for the obscuration by the detector.
File:
1 edited

Legend:

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

    r9565 r10090  
    2727//  MSimReflector
    2828//
     29//  fDetectorFrame is a radius in centimeter, defining a disk in the focal
     30//  plane around the focal point, in which photons are absorbed. If
     31//  fDetectorFrame<=0 the virtual HitFrame function of the camera
     32//  geometry container is used instead.
     33//
    2934//  fDetectorMargin is a margin (in mm) which is given to the
    3035//  MGeomCam::HitDetector. It should define a margin around the area
     
    7681    fMirror4(0), /*fRunHeader(0),*/ fEvtHeader(0), fReflector(0),
    7782    fGeomCam(0), fPointing(0), fNameReflector("MReflector"),
    78     fDetectorMargin(0)
     83    fDetectorFrame(0), fDetectorMargin(0)
    7984{
    8085    fName  = name  ? name  : "MSimReflector";
     
    502507
    503508        // Check if the photon has hit the camera housing and holding
    504         if (fGeomCam->HitFrame(p, w))
     509        if (fGeomCam->HitFrame(p, w, fDetectorFrame))
    505510            continue;
    506511
     
    579584{
    580585    Bool_t rc = kFALSE;
     586    if (IsEnvDefined(env, prefix, "DetectorFrame", print))
     587    {
     588        rc = kTRUE;
     589        fDetectorFrame = GetEnvValue(env, prefix, "DetectorFrame", 0);
     590    }
    581591    if (IsEnvDefined(env, prefix, "DetectorMargin", print))
    582592    {
Note: See TracChangeset for help on using the changeset viewer.