Changeset 19595 for trunk/Mars/msimreflector
- Timestamp:
- 09/02/19 18:39:02 (5 years ago)
- Location:
- trunk/Mars/msimreflector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimreflector/MFresnelLens.cc
r19593 r19595 25 25 ////////////////////////////////////////////////////////////////////////////// 26 26 // 27 // M Lens27 // MFresnelLens 28 28 // 29 29 ////////////////////////////////////////////////////////////////////////////// 30 #include "M Lens.h"30 #include "MFresnelLens.h" 31 31 32 32 #include <fstream> … … 38 38 #include "MLogManip.h" 39 39 40 ClassImp(M Lens);40 ClassImp(MFresnelLens); 41 41 42 42 using namespace std; … … 46 46 // Default constructor 47 47 // 48 M Lens::MLens(const char *name, const char *title)49 { 50 fName = name ? name : "M Lens";48 MFresnelLens::MFresnelLens(const char *name, const char *title) 49 { 50 fName = name ? name : "MFresnelLens"; 51 51 fTitle = title ? title : "Parameter container storing a collection of several mirrors (reflector)"; 52 52 … … 59 59 // with any call. 60 60 // 61 Double_t M Lens::GetA() const61 Double_t MFresnelLens::GetA() const 62 62 { 63 63 return fMaxR*fMaxR*TMath::Pi(); … … 68 68 // Check with a rough estimate whether a photon can hit the reflector. 69 69 // 70 Bool_t M Lens::CanHit(const MQuaternion &p) const70 Bool_t MFresnelLens::CanHit(const MQuaternion &p) const 71 71 { 72 72 // p is given in the reflectory coordinate frame. This is meant as a … … 200 200 } 201 201 202 Int_t M Lens::ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &wavelength) const202 Int_t MFresnelLens::ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &wavelength) const 203 203 { 204 204 const double F = 50; // [mm] focal length -
trunk/Mars/msimreflector/MFresnelLens.h
r19593 r19595 1 #ifndef MARS_M Lens2 #define MARS_M Lens1 #ifndef MARS_MFresnelLens 2 #define MARS_MFresnelLens 3 3 4 4 #ifndef MARS_MOptics … … 8 8 class MQuaternion; 9 9 10 class M Lens : public MOptics10 class MFresnelLens : public MOptics 11 11 { 12 12 private: … … 16 16 17 17 public: 18 M Lens(const char *name=NULL, const char *title=NULL);18 MFresnelLens(const char *name=NULL, const char *title=NULL); 19 19 20 20 Double_t GetMaxR() const { return fMaxR; } … … 27 27 Bool_t IsValid() const { return kTRUE; } 28 28 29 ClassDef(M Lens, 1) // Parameter container storing the description of a lens29 ClassDef(MFresnelLens, 1) // Parameter container storing the description of a lens 30 30 }; 31 31
Note:
See TracChangeset
for help on using the changeset viewer.