Changeset 3710 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 04/13/04 10:27:53 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCorsikaCT.h
r3379 r3710 2 2 #define MARS_MGeomCorsikaCT 3 3 4 #ifndef ROOT_TArrayF5 #include <TArrayF.h>6 #endif7 4 #ifndef MARS_MParContainer 8 5 #include "MParContainer.h" -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc
r3442 r3710 30 30 // 31 31 ///////////////////////////////////////////////////////////////////////////// 32 #include "MGeomMirror.h" 32 33 33 #include "MGeomMirror.h"34 #include <TRotation.h> 34 35 35 36 #include "MLog.h" … … 45 46 // 46 47 MGeomMirror::MGeomMirror(Int_t mir, const char *name, const char *title) 48 : fReflector(0) 47 49 { 48 50 fName = name ? name : "MGeomMirror"; … … 131 133 TVector3 MGeomMirror::GetReflection(const TVector3 &star, Double_t dist) 132 134 { 133 if ( fReflector==TRotation())135 if (!fReflector) 134 136 { 135 fReflector = TRotation(); // unit matrix136 fReflector .Rotate(TMath::Pi(), GetMirrorNorm());137 fReflector = new TRotation; // unit matrix 138 fReflector->Rotate(TMath::Pi(), GetMirrorNorm()); 137 139 } 138 140 … … 140 142 // around the normal vector of the mirror center 141 143 TVector3 light(star); 142 light *= fReflector;144 light *= *fReflector; 143 145 144 146 if (dist<0) -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.h
r3387 r3710 10 10 #endif 11 11 12 #ifndef ROOT_TRotation 13 #include <TRotation.h> 14 #endif 12 class TRotation; 15 13 16 14 class MGeomMirror : public MParContainer … … 37 35 TArrayF fReflectivity; // Mirror reflectivity 38 36 39 TRotation fReflector;//! Store this for acceleration37 TRotation *fReflector; //! Store this for acceleration 40 38 41 39 public:
Note:
See TracChangeset
for help on using the changeset viewer.