Changeset 19595


Ignore:
Timestamp:
Sep 2, 2019, 6:39:02 PM (2 weeks ago)
Author:
tbretz
Message:
Renames class from MLens to MFresnelLens
Location:
trunk/Mars/msimreflector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimreflector/MFresnelLens.cc

    r19593 r19595  
    2525//////////////////////////////////////////////////////////////////////////////
    2626//
    27 //  MLens
     27//  MFresnelLens
    2828//
    2929//////////////////////////////////////////////////////////////////////////////
    30 #include "MLens.h"
     30#include "MFresnelLens.h"
    3131
    3232#include <fstream>
     
    3838#include "MLogManip.h"
    3939
    40 ClassImp(MLens);
     40ClassImp(MFresnelLens);
    4141
    4242using namespace std;
     
    4646// Default constructor
    4747//
    48 MLens::MLens(const char *name, const char *title)
    49 {
    50     fName  = name  ? name  : "MLens";
     48MFresnelLens::MFresnelLens(const char *name, const char *title)
     49{
     50    fName  = name  ? name  : "MFresnelLens";
    5151    fTitle = title ? title : "Parameter container storing a collection of several mirrors (reflector)";
    5252
     
    5959// with any call.
    6060//
    61 Double_t MLens::GetA() const
     61Double_t MFresnelLens::GetA() const
    6262{
    6363    return fMaxR*fMaxR*TMath::Pi();
     
    6868// Check with a rough estimate whether a photon can hit the reflector.
    6969//
    70 Bool_t MLens::CanHit(const MQuaternion &p) const
     70Bool_t MFresnelLens::CanHit(const MQuaternion &p) const
    7171{
    7272    // p is given in the reflectory coordinate frame. This is meant as a
     
    200200}
    201201
    202 Int_t MLens::ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &wavelength) const
     202Int_t MFresnelLens::ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &wavelength) const
    203203{
    204204    const double F = 50;    // [mm] focal length
  • trunk/Mars/msimreflector/MFresnelLens.h

    r19593 r19595  
    1 #ifndef MARS_MLens
    2 #define MARS_MLens
     1#ifndef MARS_MFresnelLens
     2#define MARS_MFresnelLens
    33
    44#ifndef MARS_MOptics
     
    88class MQuaternion;
    99
    10 class MLens : public MOptics
     10class MFresnelLens : public MOptics
    1111{
    1212private:
     
    1616
    1717public:
    18     MLens(const char *name=NULL, const char *title=NULL);
     18    MFresnelLens(const char *name=NULL, const char *title=NULL);
    1919
    2020    Double_t GetMaxR() const { return fMaxR; }
     
    2727    Bool_t IsValid() const { return kTRUE; }
    2828
    29     ClassDef(MLens, 1) // Parameter container storing the description of a lens
     29    ClassDef(MFresnelLens, 1) // Parameter container storing the description of a lens
    3030};
    3131   
Note: See TracChangeset for help on using the changeset viewer.