Fork me on GitHub

Changeset 239 in svn


Ignore:
Timestamp:
Feb 3, 2009, 2:36:30 PM (16 years ago)
Author:
Xavier Rouby
Message:

typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Hector/src/H_OpticalElement.cc

    r216 r239  
    9797        xpos = el.xpos;
    9898        ypos = el.ypos;
    99                 txpos = el.txpos;
    100                 typos = el.typos;
     99        txpos = el.txpos;
     100        typos = el.typos;
    101101        betax = el.betax;
    102102        betay = el.betay;
     
    104104        name = el.name;
    105105        typestring = el.typestring;
    106                 element_mat.ResizeTo(MDIM,MDIM);
     106        element_mat.ResizeTo(MDIM,MDIM);
    107107        element_mat = el.element_mat;
    108108        element_aperture = el.element_aperture->clone();
     
    121121        return;
    122122}
     123/*
     124void H_OpticalElement::setAperture(H_Aperture* ap) {
     125        // do NOT use setAperture in your constructor, as element_aperture is not initialized
     126        // this function do not take into account ap if ap=0
     127        // do nothing if element_mat = ap
     128                if (!ap) {cout << "<H_OpticalElement> Trying to set an empty pointer for the aperture ! Nothing done.\n"; return;}
     129                if (element_aperture != ap) {
     130                        delete element_aperture;
     131                        element_aperture = ap; //->clone();
     132                }
     133        return;
     134}
     135*/
     136
     137
    123138
    124139void H_OpticalElement::printProperties() const {
Note: See TracChangeset for help on using the changeset viewer.