Changeset 7565 for trunk/MagicSoft/Mars
- Timestamp:
- 03/03/06 11:45:07 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7564 r7565 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/03/03 Thomas Bretz 21 22 * mjobs/MJCut.cc: 23 - added RemoveFromList for srcposrndm in off-data loop 24 25 * mpointing/MSrcPosRndm.[h,cc]: 26 - fixed the scaling. MSrcPosCam has to be in mm 27 28 29 20 30 2006/03/03 Daniel Hoehne 21 31 -
trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.cc
r7560 r7565 41 41 #include "MParList.h" 42 42 43 #include "MGeomCam.h" 43 44 #include "MSrcPosCam.h" 44 45 #include "MHSrcPosCam.h" … … 54 55 Int_t MSrcPosRndm::PreProcess(MParList *plist) 55 56 { 57 MGeomCam *geom = (MGeomCam*)plist->FindObject("MGeomCam"); 58 if (!geom) 59 { 60 *fLog << err << "ERROR - MGeomCam not found... aborting." << endl; 61 return kFALSE; 62 } 63 56 64 fSrcPos = (MSrcPosCam*)plist->FindCreateObj("MSrcPosCam"); 57 65 if (!fSrcPos) … … 66 74 67 75 *fLog << inf << "MHSrcPosCam found... taken to produce a random distribution." << endl; 76 77 fConvMm2Deg = geom->GetConvMm2Deg(); 68 78 69 79 return kTRUE; … … 80 90 fHist->GetHist().GetRandom2(x, y); 81 91 82 fSrcPos->SetXY(x , y);92 fSrcPos->SetXY(x/fConvMm2Deg, y/fConvMm2Deg); 83 93 84 94 return kTRUE; -
trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h
r7560 r7565 15 15 MHSrcPosCam *fHist; //! 16 16 17 Double_t fConvMm2Deg; 18 17 19 Int_t PreProcess(MParList *plist); 18 20 Int_t Process();
Note:
See TracChangeset
for help on using the changeset viewer.