Changeset 9564 for trunk/MagicSoft/Mars/msimreflector
- Timestamp:
- 03/30/10 13:52:57 (15 years ago)
- Location:
- trunk/MagicSoft/Mars/msimreflector
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimreflector/MMirror.h
r9371 r9564 49 49 } 50 50 51 void SetZ(Double_t z) { fPos.SetZ(z); } 52 51 53 Double_t X() const { return fPos.X(); } 52 54 Double_t Y() const { return fPos.Y(); } … … 65 67 66 68 TVector3 SimPSF(const TVector3 &n, Double_t F, Double_t psf) const; 69 TVector3 SimPSF(const TVector3 &n) const 70 { 71 return SimPSF(n, fFocalLength, fSigmaPSF/10); // Convert from mm to cm 72 } 67 73 68 74 Bool_t ExecuteMirror(MQuaternion &p, MQuaternion &u) const; -
trunk/MagicSoft/Mars/msimreflector/MSimReflector.cc
r9356 r9564 75 75 : fEvt(0), fMirror0(0), fMirror1(0), fMirror2(0), fMirror3(0), 76 76 fMirror4(0), /*fRunHeader(0),*/ fEvtHeader(0), fReflector(0), 77 fGeomCam(0), fPointing(0), fDetectorMargin(0) 77 fGeomCam(0), fPointing(0), fNameReflector("MReflector"), 78 fDetectorMargin(0) 78 79 { 79 80 fName = name ? name : "MSimReflector"; … … 103 104 return kFALSE; 104 105 105 fReflector = (MReflector*)pList->FindObject( "Reflector", "MReflector");106 fReflector = (MReflector*)pList->FindObject(fNameReflector, "MReflector"); 106 107 if (!fReflector) 107 108 { 108 *fLog << err << "Reflector [MReflector] not found... aborting." << endl;109 *fLog << err << fNameReflector << " [MReflector] not found..." << endl; 109 110 return kFALSE; 110 111 } … … 112 113 if (fReflector->GetNumMirrors()==0) 113 114 { 114 *fLog << err << "ERROR - Reflector doesn't contain a single mirror." << endl;115 *fLog << err << "ERROR - Reflector '" << fNameReflector << "' doesn't contain a single mirror." << endl; 115 116 return kFALSE; 116 117 } … … 119 120 if (!fGeomCam) 120 121 { 121 *fLog << inf << fNameGeomCam << " [MGeomCam] not found..." << endl; 122 if (!fNameGeomCam.IsNull()) 123 *fLog << inf << fNameGeomCam << " [MGeomCam] not found..." << endl; 122 124 123 125 fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam"); … … 300 302 301 303 if (fSigmaPSF>0) 302 n += SimPSF(n , fFocalLength, fSigmaPSF/10); // Convert from mm to cm304 n += SimPSF(n); 303 305 304 306 // Changes also the sign of the z-direction of flight -
trunk/MagicSoft/Mars/msimreflector/MSimReflector.h
r9307 r9564 31 31 32 32 TString fNameGeomCam; // Name of the geometry container storing the APD gemeotry 33 TString fNameReflector; // Name of the container storing the reflector geometry 33 34 34 35 Double_t fDetectorMargin; // A margin around the detector (MGeomCam::HitCamera) in which photons are also stored … … 45 46 46 47 // MSimReflector 47 void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; } 48 void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; } 49 void SetNameReflector(const char *name="MReflector") { fNameReflector = name; } 48 50 49 51 ClassDef(MSimReflector, 0) // Task to calculate reflection on a mirror
Note:
See TracChangeset
for help on using the changeset viewer.