Ignore:
Timestamp:
11/03/04 14:42:15 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Simulation/Detector/ReflectorII
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/Changelog

    r5139 r5336  
    11** Add changes at the beginning! **
     2
     303/11/2004 A. Moralejo
     4
     5reflector.c, header.c: Fixed problem: the correct telescope theta and
     6phi were not written to the output of reflector, because the variables
     7were filled before they were changed in the case of wobble mode. This has
     8been corrected.
    29
    31027/09/2004 A. Moralejo
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/header.c

    r1535 r5336  
    1212  memcpy(r,c,154*sizeof(float));
    1313
    14   if (is_Fixed_Target)  // <- Added in September 2002, AM
    15     {
    16       /* Next 2 variables added in June 2002, AM */
    17       r->telescopePhi      = fixed_Phi;
    18       r->telescopeTheta    = fixed_Theta;
    19     }
    20   // If no fixed target, telescope always points towards shower. AM Sep 2002
    21   else
    22     {
    23       r->telescopePhi      = cheadp->Phi;
    24       r->telescopeTheta    = cheadp->Theta;
    25     }
    2614} /*    end of TranslateHeader  */
    2715
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/reflector.c

    r1725 r5336  
    203203        break;
    204204      }
     205   
     206    /* AM, Nov 2004: in case of wobble mode, change also the telescope
     207     * theta and phi in the container to be written to the output file
     208     * (rheadp) !
     209     */
     210
     211    rheadp->telescopeTheta = tel_theta;
     212    rheadp->telescopePhi = tel_phi;
    205213
    206214    /* Calculate OmegaCT matrices  */
Note: See TracChangeset for help on using the changeset viewer.