Changeset 19544 for trunk/Mars
- Timestamp:
- 06/04/19 10:27:34 (5 years ago)
- Location:
- trunk/Mars/msimreflector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimreflector/MSimReflector.cc
r18957 r19544 55 55 #include "MQuaternion.h" 56 56 #include "MMirror.h" 57 #include "MOptics.h" 57 58 #include "MReflector.h" 58 59 #include "MReflection.h" … … 109 110 return kFALSE; 110 111 111 fReflector = (M Reflector*)pList->FindObject(fNameReflector, "MReflector");112 fReflector = (MOptics*)pList->FindObject(fNameReflector, "MOptics"); 112 113 if (!fReflector) 113 114 { 114 *fLog << err << fNameReflector << " [M Reflector] not found..." << endl;115 return kFALSE; 116 } 117 118 if ( fReflector->GetNumMirrors()==0)119 { 120 *fLog << err << "ERROR - Reflector '" << fNameReflector << "' doesn't contain a single mirror." << endl;115 *fLog << err << fNameReflector << " [MOptics] not found..." << endl; 116 return kFALSE; 117 } 118 119 if (!fReflector->IsValid()) 120 { 121 *fLog << err << "ERROR - Optics '" << fNameReflector << "' invalid." << endl; 121 122 return kFALSE; 122 123 } … … 376 377 // this could be accelerated a lot. 377 378 // 378 Int_t MReflector::Execute Reflector(MQuaternion &p, MQuaternion &u) const379 Int_t MReflector::ExecuteOptics(MQuaternion &p, MQuaternion &u) const 379 380 { 380 381 //static const TObjArray *arr = &((MMirror*)fMirrors[0])->fNeighbors; … … 522 523 523 524 // Now execute the reflection of the photon on the mirrors' surfaces 524 const Int_t num = fReflector->Execute Reflector(p, w);525 const Int_t num = fReflector->ExecuteOptics(p, w); 525 526 if (num<0) 526 527 continue; -
trunk/Mars/msimreflector/MSimReflector.h
r10090 r19544 12 12 class MCorsikaEvtHeader; 13 13 14 class M Reflector;14 class MOptics; 15 15 16 16 class MSimReflector : public MTask … … 26 26 MCorsikaEvtHeader *fEvtHeader; //! Header storing event information 27 27 28 M Reflector*fReflector; //!28 MOptics *fReflector; //! 29 29 MGeomCam *fGeomCam; //! 30 30 MPointingPos *fPointing; //!
Note:
See TracChangeset
for help on using the changeset viewer.