Changeset 1696 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 01/08/03 09:45:57 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc
r1685 r1696 32 32 33 33 #include "MGeomMirror.h" 34 35 #include "MLog.h" 36 #include "MLogManip.h" 34 37 35 38 ClassImp(MGeomMirror); … … 104 107 } 105 108 109 // -------------------------------------------------------------------------- 110 // 111 // Setting function to store the mirror reflectivity (ref) at different 112 // wavelength (wav). 113 // 114 void 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 } 106 127 107 128 -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.h
r1685 r1696 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 #endif 7 8 #ifndef ROOT_TArrayF 9 #include <TArrayF.h> 6 10 #endif 7 11 … … 31 35 Float_t fDeviationY; // deviation in y [cm] 32 36 // of the spot of a single mirror on the camera plane 37 TArrayF fWavelength; // List of wavelength 38 TArrayF fReflectivity;// Mirror reflectivity 39 33 40 public: 34 41 MGeomMirror(Int_t mir=-1, const char *name=NULL, const char *title=NULL); … … 42 49 void SetMirrorDeviations(Float_t dev_x, Float_t dev_y); 43 50 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 45 54 }; 46 55
Note:
See TracChangeset
for help on using the changeset viewer.