Ignore:
Timestamp:
01/08/03 09:45:57 (22 years ago)
Author:
blanch
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc

    r1685 r1696  
    3232
    3333#include "MGeomMirror.h"
     34
     35#include "MLog.h"
     36#include "MLogManip.h"
    3437
    3538ClassImp(MGeomMirror);
     
    104107}
    105108
     109// --------------------------------------------------------------------------
     110//
     111// Setting function to store the mirror reflectivity (ref) at different
     112// wavelength (wav).
     113//
     114void MGeomMirror::SetReflectivity(const TArrayF &wav, const TArrayF &ref)
     115{
     116    if (fWavelength.GetSize()!=wav.GetSize() ||
     117        fReflectivity.GetSize()!=ref.GetSize())
     118    {
     119        *fLog << err << dbginf << " fWavelength or fQE do not have ";
     120        *fLog << "size of setting arrays" << endl;
     121        return;
     122    }
     123
     124    fWavelength = wav;
     125    fReflectivity = ref;
     126}
    106127
    107128
  • trunk/MagicSoft/Mars/mgeom/MGeomMirror.h

    r1685 r1696  
    44#ifndef MARS_MParContainer
    55#include "MParContainer.h"
     6#endif
     7
     8#ifndef ROOT_TArrayF
     9#include <TArrayF.h>
    610#endif
    711
     
    3135    Float_t fDeviationY;  // deviation in y [cm]
    3236                          // of the spot of a single mirror on the camera plane
     37    TArrayF fWavelength;  // List of wavelength
     38    TArrayF fReflectivity;// Mirror reflectivity
     39
    3340public:
    3441    MGeomMirror(Int_t mir=-1, const char *name=NULL, const char *title=NULL);
     
    4249    void  SetMirrorDeviations(Float_t dev_x, Float_t dev_y);
    4350
    44     ClassDef(MGeomMirror, 1)  // geometry class describing one mirror
     51    void  SetReflectivity(const TArrayF &wav, const TArrayF &ref);
     52
     53    ClassDef(MGeomMirror, 2)  // geometry class describing one mirror
    4554};
    4655
Note: See TracChangeset for help on using the changeset viewer.