Changeset 6992 for trunk/MagicSoft
- Timestamp:
- 05/03/05 13:50:24 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6989 r6992 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/05/03 Thomas Bretz 25 26 * mjobs/MJCut.cc: 27 - added histogram <Fake->'OnTime' for MC 28 29 * mpointing/MSrcPosCalc.cc: 30 - removed dependancy on MTime for MC 31 32 23 33 24 34 2005/05/02 Thomas Bretz -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6988 r6992 651 651 hvs.SetTitle("Effective On-Time vs. Zenith Angle;\\Theta [\\circ];T_{on} [s]"); 652 652 MFillH fillvs(&hvs, "", "FillOnTime"); 653 fillvs.SetWeight("MEffectiveOnTime"); 653 if (!fIsMonteCarlo) 654 fillvs.SetWeight("MEffectiveOnTime"); 654 655 fillvs.SetNameTab("OnTime"); 655 656 … … 703 704 if (!fIsMonteCarlo) 704 705 tlist.AddToList(&fillvs, "EffectiveOnTime"); 706 else 707 tlist2.AddToListBefore(&fillvs, &scalc); 705 708 } 706 709 -
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r6914 r6992 188 188 } 189 189 190 fObservatory = (MObservatory*)pList->FindObject("MObservatory");191 if (!fObservatory)192 {193 *fLog << err << "MObservatory not found... aborting." << endl;194 return kFALSE;195 }196 197 fTime = (MTime*)pList->FindObject("MTime");198 if (!fTime)199 {200 *fLog << err << "MTime not found... aborting." << endl;201 return kFALSE;202 }203 204 190 *fLog << inf; 205 191 //*fLog << "Pointing Position: " << GetRaDec(*fPointPos) << endl; … … 247 233 248 234 if (fRunType!=MRawRunHeader::kRTMonteCarlo) 235 { 236 fObservatory = (MObservatory*)plist->FindObject("MObservatory"); 237 if (!fObservatory) 238 { 239 *fLog << err << "MObservatory not found... aborting." << endl; 240 return kFALSE; 241 } 242 fTime = (MTime*)plist->FindObject("MTime"); 243 if (!fTime) 244 { 245 *fLog << err << "MTime not found... aborting." << endl; 246 return kFALSE; 247 } 249 248 return kTRUE; 249 } 250 250 251 251 MMcCorsikaRunHeader *h = (MMcCorsikaRunHeader*)plist->FindObject("MMcCorsikaRunHeader");
Note:
See TracChangeset
for help on using the changeset viewer.