Changeset 340


Ignore:
Timestamp:
01/20/00 18:22:17 (25 years ago)
Author:
petry
Message:
Found little bug which makes camera crash if it finds a photon
of invalid wavelength. This bug is now fixed and the range
of valid wavelengths extended to 290 - 800 nm.
This is in preparation for the NSB simulation to come.
Dirk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r327 r340  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.2 $
    24 // $Author: harald $
    25 // $Date: 1999-11-19 08:40:42 $
     23// $Revision: 1.3 $
     24// $Author: petry $
     25// $Date: 2000-01-20 18:22:17 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    704704
    705705  // initalize the ROOT file
    706   //
    707   //     erzeuge ein Root file
    708706  //
    709707
     
    11721170          wl = cphoton.get_wl();
    11731171         
    1174           if ( wl < 1.0 )
    1175             break;
    1176          
    1177           if ( (wl > 600.0) || (wl < 290.0) )
    1178             break;
    1179          
    1180           // check if photon is inside outermost camera radius
    1181 
    1182           if(sqrt(cx*cx + cy*cy) > (cam.dxc[ct_NPixels-1]+1.5*ct_PixelWidth)){
     1172          // check if photon has valid wavelength and is inside outermost camera radius
     1173
     1174          if( (wl > 800.0) || (wl < 290.0) ||
     1175              (sqrt(cx*cx + cy*cy) > (cam.dxc[ct_NPixels-1]+1.5*ct_PixelWidth)) ){
    11831176           
    11841177            // read next CPhoton
     
    22812274  perror(funct);
    22822275
    2283   abort();
     2276  exit(1);
    22842277}
    22852278//!@}
     
    31113104//
    31123105// $Log: not supported by cvs2svn $
     3106// Revision 1.2  1999/11/19 08:40:42  harald
     3107// Now it is possible to compile the camera programm under osf1.
     3108//
    31133109// Revision 1.1.1.1  1999/11/05 11:59:31  harald
    31143110// This the starting point for CVS controlled further developments of the
Note: See TracChangeset for help on using the changeset viewer.