Changeset 5807
- Timestamp:
- 01/12/05 13:33:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5804 r5807 20 20 21 21 -*-*- END OF LINE -*-*- 22 2005/01/12 Thomas Bretz 23 24 * manalysis/MMatrixLoop.cc: 25 - changed name to MRead because it now derives from MRead 26 27 * mbase/MEvtLoop.[h,cc]: 28 - implemented an option not to cascade the status display to the 29 parameter list in PreProcess 30 31 * mhflux/MHAlpha.cc: 32 - changed name of "Significance" to "MinimizationValue" 33 - return -significance to have a value being minimized 34 35 * mhist/MHCamera.cc: 36 - fixed output of text in legend 37 38 * mhist/MHEvent.[h,cc]: 39 - implemented new options for calibrated pedestals 40 41 * mmain/MEventDisplay.cc: 42 - fixed to support latest changes in MJCalibrateSignal 43 44 * mpedestal/MPedPhotCam.cc: 45 - added new options in GetPixelContent (4 and 5) to support 46 a correct camera display 47 48 49 22 50 2005/01/11 Abelardo Moralejo 23 51 24 52 * mjobs/Makefile 25 53 - added missing include -I ../mtrigger 54 55 26 56 27 57 2005/01/11 Thomas Bretz -
trunk/MagicSoft/Mars/manalysis/MMatrixLoop.cc
r5803 r5807 38 38 ClassImp(MMatrixLoop); 39 39 40 const TString MMatrixLoop::gsDefName = "M MatrixLoop";40 const TString MMatrixLoop::gsDefName = "MRead"; 41 41 const TString MMatrixLoop::gsDefTitle = "Loop through a MHMatrix (instead of reading from a file)"; 42 42 -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r5382 r5807 244 244 fDisplay->StartUpdate(); 245 245 // Cascade display through childs 246 fParList->SetDisplay(fDisplay); 246 if (!TestBit(kPrivateDisplay)) 247 fParList->SetDisplay(fDisplay); 247 248 } 248 249 #endif -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r4601 r5807 32 32 ULong_t fNumEvents; //! 33 33 34 enum { kIsOwner = BIT(14) };34 enum { kIsOwner = BIT(14), kPrivateDisplay = BIT(15) }; 35 35 36 36 Bool_t HasDuplicateNames(const TString txt) const; … … 54 54 MStatusDisplay *GetDisplay() { return fDisplay; } 55 55 void SetDisplay(MStatusDisplay *d); 56 void SetPrivateDisplay(Bool_t b=kTRUE) { b ? SetBit(kPrivateDisplay) : ResetBit(kPrivateDisplay); } 56 57 57 58 void SetOwner(Bool_t enable=kTRUE); -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r5803 r5807 289 289 *fLog << warn << "MTime not found... ignored." << endl; 290 290 291 fResult = (MParameterD*)const_cast<MParList*>(pl)->FindCreateObj("MParameterD", " Significance");291 fResult = (MParameterD*)const_cast<MParList*>(pl)->FindCreateObj("MParameterD", "MinimizationValue"); 292 292 if (!fResult) 293 293 return kFALSE; … … 824 824 825 825 if (fResult) 826 fResult->SetVal( fFit.GetSignificance());826 fResult->SetVal(-fFit.GetSignificance()); 827 827 828 828 if (!fSkipHistEnergy) -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r5307 r5807 1471 1471 1472 1472 text = ""; 1473 text += (float)((int)(range*.3*fGeomCam->GetConvMm2Deg()*10))/10;1473 text += Form("%.2f", (float)((int)(range*.3*fGeomCam->GetConvMm2Deg()*10))/10); 1474 1474 text += "\\circ"; 1475 1475 text = text.Strip(TString::kLeading); -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r5145 r5807 139 139 fHist->SetYTitle("\\sigma_{P} [au]"); 140 140 break; 141 case kEvtPedPhot: 142 fHist->SetName("Pedestal"); 143 fHist->SetYTitle("P [\\gamma]"); 144 break; 145 case kEvtPedPhotRMS: 146 fHist->SetName("Pedestal RMS"); 147 fHist->SetYTitle("\\sigma_{P} [\\gamma]"); 148 break; 141 149 case kEvtCleaningLevels: 142 150 if (!fImgCleanStd) … … 208 216 case kEvtPedestalRMS: 209 217 fHist->SetCamContent(*event, 1); 218 break; 219 case kEvtPedPhot: 220 fHist->SetCamContent(*event, 4); 221 break; 222 case kEvtPedPhotRMS: 223 fHist->SetCamContent(*event, 5); 210 224 break; 211 225 case kEvtCleaningLevels: -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r5145 r5807 20 20 public: 21 21 enum EventType_t { 22 kEvtSignalRaw, kEvtSignalDensity, kEvtPedestal, 23 kEvtPedestalRMS, kEvtCleaningLevels, 24 kEvtCleaningData, 22 kEvtSignalRaw, kEvtSignalDensity, 23 kEvtPedestal, kEvtPedestalRMS, 24 kEvtPedPhot, kEvtPedPhotRMS, 25 kEvtCleaningLevels, kEvtCleaningData, 25 26 kEvtIdxMax, kEvtArrTime, kEvtTrigPix, kEvtIslandIndex 26 27 }; -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r5307 r5807 258 258 MHEvent *evt01 = new MHEvent(MHEvent::kEvtSignalRaw); 259 259 MHEvent *evt02 = new MHEvent(MHEvent::kEvtSignalRaw); 260 MHEvent *evt03 = new MHEvent( MHEvent::kEvtPedestal);261 MHEvent *evt04 = new MHEvent( MHEvent::kEvtPedestalRMS);260 MHEvent *evt03 = new MHEvent(type==1?MHEvent::kEvtPedPhot:MHEvent::kEvtPedestal); 261 MHEvent *evt04 = new MHEvent(type==1?MHEvent::kEvtPedPhotRMS:MHEvent::kEvtPedestalRMS); 262 262 MHEvent *evt06a= new MHEvent(MHEvent::kEvtCleaningData); 263 263 MHEvent *evt06b= new MHEvent(MHEvent::kEvtCleaningLevels); … … 294 294 MImgCleanStd *clean = new MImgCleanStd; 295 295 MFillH *fill02 = new MFillH(evt02, "MCerPhotEvt", "MFillH02"); 296 MFillH *fill03 = new MFillH(evt03, "MPedPhotCam", "MFillH03");297 MFillH *fill04 = new MFillH(evt04, "MPedPhotCam", "MFillH04");296 MFillH *fill03 = new MFillH(evt03, type==1?"MPedPhotFundamental":"MPedPhotCam", "MFillH03"); 297 MFillH *fill04 = new MFillH(evt04, type==1?"MPedPhotFromExtractorRndm":"MPedPhotCam", "MFillH04"); 298 298 MFillH *fill06a= new MFillH(evt06a, "MCameraData", "MFillH06a"); 299 299 MFillH *fill06b= new MFillH(evt06b, "MCameraData", "MFillH06b"); … … 303 303 MFillH *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09"); 304 304 MFillH *fill10 = new MFillH(evt10, "MCerPhotEvt", "MFillH10"); 305 306 if (type==1) 307 clean->SetNamePedPhotCam("MPedPhotFromExtractorRndm"); 305 308 306 309 // If no pedestal or no calibration file is availble -
trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc
r4752 r5807 321 321 val = (*this)[idx].GetNumEvents()>0 ? (*this)[idx].GetRms()/TMath::Sqrt((Float_t)(*this)[idx].GetNumEvents())/2. : -1; 322 322 break; 323 case 4: 324 val = (*this)[idx].GetMean()*cam.GetPixRatio(idx); 325 break; 326 case 5: 327 val = (*this)[idx].GetRms()*TMath::Sqrt(cam.GetPixRatio(idx)); 328 break; 323 329 default: 324 330 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.