Ignore:
Timestamp:
01/21/09 14:26:15 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msim/MHPhotonEvent.cc

    r9232 r9234  
    4444//
    4545// Type 3:
    46 //   The maximum in x and y is determined from MCamera->GetMaxR();
     46//   The maximum in x and y is determined from MGeomCam->GetMaxR();
    4747//
    4848// Type 4:
    4949//   As type 3 but divided by 10.
    5050//
    51 // Type 5:
    52 //   The maximum in x and y is determined from MGeomCam->GetMaxR();
    53 //
    54 // Type 6:
    55 //   As type 5 but divided by 10.
    56 //
    5751// The binning is optimized using MH::FindGoodLimits. The number of bins
    58 // in 100 in the default case and 50 for type 3-6.
     52// in 100 in the default case and 50 for type 3-4.
    5953//
    6054// Fill expects a MPhotonEvent (the second argumnet in MFillH).
     
    7872#include "MCorsikaRunHeader.h"
    7973
    80 #include "../msimreflector/MSimReflector.h" // MCamera, MReflector
     74#include "MReflector.h"
    8175
    8276ClassImp(MHPhotonEvent);
     
    198192    case 4:
    199193        {
    200             MCamera *c = (MCamera*)pList->FindObject("MCamera");
    201             if (!c)
    202             {
    203                 *fLog << err << "MCamera not found... aborting." << endl;
    204                 return kFALSE;
    205             }
    206             xmax = fType==3 ? c->GetMaxR() : c->GetMaxR()/10;
    207             num  = 50;
    208 
    209             break;
    210         }
    211     case 5:
    212     case 6:
    213         {
    214194            MGeomCam *c = (MGeomCam*)pList->FindObject("MGeomCam");
    215195            if (!c)
     
    218198                return kFALSE;
    219199            }
    220             xmax = fType==5 ? c->GetMaxRadius() : c->GetMaxRadius()/10;
     200            xmax = fType==3 ? c->GetMaxRadius()/10 : c->GetMaxRadius()/100;
    221201            num  = 50;
    222202
Note: See TracChangeset for help on using the changeset viewer.