- Timestamp:
- 03/30/10 13:52:57 (15 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9563 r9564 24 24 - moved ARCHDEFS from DEFINES to CXXFLAGS otherwise it might get 25 25 ignored 26 27 * mbase/MQuaternion.h: 28 - added member-function to normalize vector part of quaternion 29 30 * mbase/MTime.cc: 31 - issue an error if __LINUX__ is not set 32 33 * mjobs/MJSimulation.cc: 34 - set name of reflector explicitly to "Reflector" 35 36 * msimreflector/MMirror.h: 37 - added member function to set z position (for optimization purpose) 38 - added SimPSF(TVector3&) 39 40 * msimreflector/MSimReflector.[h,cc]: 41 - added name of reflector as data member 26 42 27 43 -
trunk/MagicSoft/Mars/NEWS
r9536 r9564 2 2 3 3 == <cvs> == 4 5 ;general: 6 7 * On some systems (version of make?) the __LINUX__ definition was not set 8 when compiling. This lead to MTime(-1) not working properly. Fixed. 9 10 4 11 5 12 == Version 2.4 (2009/12/23) == -
trunk/MagicSoft/Mars/mbase/MQuaternion.h
r9370 r9564 76 76 //void Normalize() { fVectorPart *= TMath::Sqrt(1 - R2())/Z(); } 77 77 78 void NormalizeVector() { fVectorPart = fVectorPart.Unit(); } 79 78 80 ClassDef(MQuaternion, 1) 79 81 }; -
trunk/MagicSoft/Mars/mbase/MTime.cc
r9302 r9564 692 692 Set(tv); 693 693 #else 694 Clear(); 694 #error __LINUX__ not set 695 695 #endif 696 696 } -
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9525 r9564 398 398 MSimReflector reflect; 399 399 reflect.SetNameGeomCam("GeomCones"); 400 reflect.SetNameReflector("Reflector"); 400 401 // MSimStarField stars; 401 402 -
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.