Ignore:
Timestamp:
04/13/04 10:27:53 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomCorsikaCT.h

    r3379 r3710  
    22#define MARS_MGeomCorsikaCT
    33
    4 #ifndef ROOT_TArrayF
    5 #include <TArrayF.h>
    6 #endif
    74#ifndef MARS_MParContainer
    85#include "MParContainer.h"
  • trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc

    r3442 r3710  
    3030//
    3131/////////////////////////////////////////////////////////////////////////////
     32#include "MGeomMirror.h"
    3233
    33 #include "MGeomMirror.h"
     34#include <TRotation.h>
    3435
    3536#include "MLog.h"
     
    4546//
    4647MGeomMirror::MGeomMirror(Int_t mir, const char *name, const char *title)
     48    : fReflector(0)
    4749{
    4850    fName  = name  ? name  : "MGeomMirror";
     
    131133TVector3 MGeomMirror::GetReflection(const TVector3 &star, Double_t dist)
    132134{
    133     if (fReflector==TRotation())
     135    if (!fReflector)
    134136    {
    135         fReflector = TRotation(); // unit matrix
    136         fReflector.Rotate(TMath::Pi(), GetMirrorNorm());
     137        fReflector = new TRotation; // unit matrix
     138        fReflector->Rotate(TMath::Pi(), GetMirrorNorm());
    137139    }
    138140
     
    140142    // around the normal vector of the mirror center
    141143    TVector3 light(star);
    142     light *= fReflector;
     144    light *= *fReflector;
    143145
    144146    if (dist<0)
  • trunk/MagicSoft/Mars/mgeom/MGeomMirror.h

    r3387 r3710  
    1010#endif
    1111
    12 #ifndef ROOT_TRotation
    13 #include <TRotation.h>
    14 #endif
     12class TRotation;
    1513
    1614class MGeomMirror : public MParContainer
     
    3735    TArrayF fReflectivity; // Mirror reflectivity
    3836
    39     TRotation fReflector; //! Store this for acceleration
     37    TRotation *fReflector; //! Store this for acceleration
    4038
    4139public:
Note: See TracChangeset for help on using the changeset viewer.