- Timestamp:
- 04/06/04 13:58:05 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3665 r3667 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/04/06: Thomas Bretz 22 23 * mcalib/MCalibrationCam.[h,cc]: 24 - simplified call to initialization by new function Init() 25 26 * mcalib/MH*.cc: 27 - fixed some warnings (comparision between signed and unsigned) 28 29 * manalysis/MGeomApply.cc: 30 - use new Init-funtion of MCalibrationCam 31 32 * mastro/MAstro.cc: 33 - some fixes to the conversion functions 34 35 * mastro/MAstroCamera.[h,cc]: 36 - added comments 37 - changed argument type of AddPrimitives 38 39 * mastro/MAstroCatalog.[h,cc]: 40 - many changes to make it possible to overlay the 41 catalog on top of a 2D histogram 42 43 * mbase/MEvtLoop.cc: 44 - fixed estimation of run-time 45 46 * mbase/MMath.[h,cc]: 47 - added member functions for signed significances 48 49 * mbase/MParContainer.cc: 50 - changed GetterMethod() to support double reference data mebers 51 52 * mbase/MStatusDisplay.cc: 53 - removed some obsolete debug outputs 54 55 * mbase/MTask.[h,cc]: 56 - removed fNumExecutions, fStopwatch already counts the calls 57 - slight chagnes to output of PrintStatistics 58 59 * mbase/MTaskList.[h,cc]: 60 - slight chagnes to output of PrintStatistics 61 62 * mbase/MTime.cc: 63 - removed +TwoPi from GetGmst 64 65 * mcamera/MCameraAUX.h, mcamera/MCameraHV.h, mcamera/MCameraLV.h, 66 mcamera/MCameraLid.h, mcamera/MCameraLids.h, 67 mcamera/MCameraPowerSupply.h: 68 - added missing Getter functions 69 70 * mcamera/MCameraHV.h: 71 - removed obsolete data-meber fMean 72 73 * mdata/DataLinkDef.h: 74 - added MDataFormula 75 76 * mdata/MDataChain.cc, mdata/Makefile: 77 - enhanced dosumentation 78 - implemented use of multi argument functions 79 - added ^-operator 80 81 * mdata/MDataList.[h,cc]: 82 - added ^-operator 83 - enhanced IsValid 84 85 * mfbase/MFilterList.cc: 86 - changed a warn-output to inf 87 88 * mgeom/MGeomCam.[h,cc]: 89 - added getter returning index corresponding to XY 90 91 * mgeom/MGeomPix.[h,cc]: 92 - added getter IsInside 93 94 * mhist/MHCamera.cc: 95 - Return 0 in GetMean if no entries 96 97 * mhist/MHFalseSource.[h,cc]: 98 - removed conversion stuff (mm/deg) 99 - slight change to calculation of significance 100 - added dist-cuts 101 - added histogram showing number of entries 102 - added display of catalog 103 104 * mhist/MHStarMap.cc: 105 - added comment 106 107 * mimage/MHillasExt.[h,cc]: 108 - changed class version to 3 109 - added new data-member fMaxDist 110 111 * mimage/MNewImagePar.[h,cc]: 112 - added new data member fUsedArea and fCoreArea 113 114 * mmc/MMcConfigRunHeader.h: 115 - readded GetMirrors (WHY WAS IT GONE?) 116 117 * mpointing/MPointingPos.[h,cc] 118 - implemented Getter to get coordinates in rad 119 120 * mpointing/MSrcPosCalc.[h,cc]: 121 - fixed direction of rotation 122 - for the moment do use fTime 123 124 20 125 21 126 2004/04/06: Markus Gaug … … 856 961 857 962 * mcalib/MCalibrationChargeCam.[h,cc] 858 * mcalib/MCalibrationChargePix.h 859 * mcalib/MCalibrationChargeCalc.cc 963 mcalib/MCalibrationChargePix.h, mcalib/MCalibrationChargeCalc.cc: 860 964 - removed pointers to MGeomCam and MBadPixelsCam in MCalibrationChargeCam 861 965 - use two loops over pixels in order to determine mean flux of phe;s to -
trunk/MagicSoft/Mars/NEWS
r3574 r3667 1 1 -*-*- END -*-*- 2 2 *** Version <cvs> 3 3 4 - implementes multi-argument support in MDataChain 5 ("pow(a, b)") 6 7 - implemented double reference support in MDataChain 8 ("MCameraLV.fPowerSupplyA.fVoltagePos5V") 9 4 10 - added support in MF for expressiond like 5 11 "MHillas.fWidth<2*<MHillas.fLength" -
trunk/MagicSoft/Mars/manalysis/MGeomApply.cc
r3660 r3667 75 75 #include "MGeomCam.h" 76 76 #include "MPedestalCam.h" 77 #include "MCalibrationChargeCam.h" 78 #include "MCalibrationRelTimeCam.h" 79 #include "MCalibrationQECam.h" 80 #include "MCalibrationPedCam.h" 77 #include "MCalibrationCam.h" 81 78 #include "MPedPhotCam.h" 82 79 #include "MExtractedSignalCam.h" … … 140 137 ped->InitSize(cam->GetNumPixels()); 141 138 142 MCalibrationChargeCam *cal = 143 (MCalibrationChargeCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam")); 139 MCalibrationCam *cal = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam")); 144 140 if (cal) 145 { 146 cal->InitSize ( cam->GetNumPixels() ); 147 cal->InitAverageAreas ( cam->GetNumAreas() ); 148 cal->InitAverageSectors( cam->GetNumSectors() ); 149 } 141 cal->Init(*cam); 150 142 151 MCalibrationRelTimeCam *cat = 152 (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam")); 143 MCalibrationCam *cat = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam")); 153 144 if (cat) 154 { 155 cat->InitSize ( cam->GetNumPixels() ); 156 cat->InitAverageAreas ( cam->GetNumAreas() ); 157 cat->InitAverageSectors( cam->GetNumSectors() ); 158 } 159 160 MCalibrationQECam *qe = 161 (MCalibrationQECam*)pList->FindObject(AddSerialNumber("MCalibrationQECam")); 145 cat->Init(*cam); 146 147 MCalibrationCam *qe = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationQECam")); 162 148 if (qe) 163 { 164 qe->InitSize ( cam->GetNumPixels() ); 165 qe->InitAverageAreas ( cam->GetNumAreas() ); 166 qe->InitAverageSectors ( cam->GetNumSectors() ); 167 } 168 169 MCalibrationPedCam *pcam = 170 (MCalibrationPedCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam")); 149 qe->Init(*cam); 150 151 MCalibrationCam *pcam = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam")); 171 152 if (pcam) 172 { 173 pcam->InitSize ( cam->GetNumPixels() ); 174 pcam->InitAverageAreas ( cam->GetNumAreas() ); 175 pcam->InitAverageSectors ( cam->GetNumSectors() ); 176 } 177 153 pcam->Init(*cam); 154 178 155 MPedPhotCam *pedphot = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam")); 179 156 if (pedphot) 180 157 pedphot->InitSize(cam->GetNumPixels()); 181 158 182 183 159 MExtractedSignalCam *ext = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam")); 184 160 if (ext) 185 161 ext->InitSize(cam->GetNumPixels()); 186 187 162 188 163 MBlindPixels *bnd = (MBlindPixels*)pList->FindObject(AddSerialNumber("MBlindPixels")); -
trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc
r3651 r3667 189 189 fCam = (MCalibrationCam*)pList->FindObject("MCalibrationPedCam"); 190 190 if (!fCam) 191 191 { 192 192 fCam = (MCalibrationCam*)pList->FindCreateObj(AddSerialNumber("MCalibrationPedCam")); 193 193 if (!fCam) 194 {195 gLog << err << "Cannot find nor create MCalibrationPedCam ... abort." << endl;196 194 return kFALSE; 197 } 198 else 199 { 200 fCam->InitSize(npixels); 201 fCam->InitAverageAreas(nareas); 202 fCam->InitAverageSectors(nsectors); 203 } 204 } 195 196 fCam->Init(*fGeom); 197 } 205 198 206 199 Float_t sliceshi = signal->GetNumUsedHiGainFADCSlices(); … … 369 362 } 370 363 371 const Int_t npixels = fGeom->GetNumPixels(); 372 const Int_t nareas = fGeom->GetNumAreas(); 373 const Int_t nsectors = fGeom->GetNumSectors(); 374 375 Float_t sumareahi [nareas], sumarealo [nareas]; 376 Float_t sumsectorhi[nsectors], sumsectorlo[nsectors]; 377 Int_t numareahi [nareas], numarealo [nareas]; 378 Int_t numsectorhi[nsectors], numsectorlo[nsectors]; 379 380 for (UInt_t j=0; j<nareas; j++) 381 { 382 sumareahi[j] = sumarealo[j] = 0.; 383 numareahi[j] = numarealo[j] = 0; 384 } 385 386 for (UInt_t j=0; j<nsectors; j++) 387 { 388 sumsectorhi[j] = sumsectorlo[j] = 0.; 389 numsectorhi[j] = numsectorlo[j] = 0; 390 } 391 392 393 for (Int_t i=0; i<npixels; i++) 394 { 395 364 const UInt_t npixels = fGeom->GetNumPixels(); 365 const UInt_t nareas = fGeom->GetNumAreas(); 366 const UInt_t nsectors = fGeom->GetNumSectors(); 367 368 TArrayF sumareahi(nareas); 369 TArrayF sumarealo(nareas); 370 TArrayF sumsectorhi(nsectors); 371 TArrayD sumsectorlo(nsectors); 372 TArrayI numareahi(nareas); 373 TArrayI numarealo(nareas); 374 TArrayI numsectorhi(nsectors); 375 TArrayI numsectorlo(nsectors); 376 377 for (UInt_t i=0; i<npixels; i++) 378 { 396 379 MHGausEvents &histhi = (*this)[i]; 397 380 MHGausEvents &histlo = (*this)(i); 398 381 399 382 if (histhi.IsExcluded()) 400 383 continue; 401 384 402 385 const MExtractedSignalPix &pix = (*signal)[i]; 403 386 404 387 const Float_t pedhi = pix.GetExtractedSignalHiGain(); 405 388 const Float_t pedlo = pix.GetExtractedSignalLoGain(); -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r3645 r3667 196 196 } 197 197 198 void MCalibrationCam::Init(const MGeomCam &geom) 199 { 200 InitSize (geom.GetNumPixels() ); 201 InitAverageAreas (geom.GetNumAreas() ); 202 InitAverageSectors(geom.GetNumSectors()); 203 } 204 198 205 // -------------------------------------------------------------------------- 199 206 // -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r3646 r3667 14 14 class MBadPixelsPix; 15 15 class MBadPixelsCam; 16 class MGeomCam; 17 16 18 class MCalibrationCam : public MParContainer, public MCamEvent 17 19 { … … 31 33 32 34 virtual void Clear( Option_t *o="" ); 35 void Init(const MGeomCam &geom); 33 36 void InitSize( const UInt_t i ); 34 37 void InitAverageAreas( const UInt_t i ); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.cc
r3650 r3667 639 639 { 640 640 641 for ( Int_t j=0; j<fGeom->GetNumAreas(); j++)641 for (UInt_t j=0; j<fGeom->GetNumAreas(); j++) 642 642 { 643 643 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3650 r3667 387 387 } 388 388 389 const Int_t npixels = fGeom->GetNumPixels();390 const Int_t nareas = fGeom->GetNumAreas();391 const Int_t nsectors = fGeom->GetNumSectors();392 const Int_t lofirst = signal->GetFirstUsedSliceLoGain();389 const UInt_t npixels = fGeom->GetNumPixels(); 390 const UInt_t nareas = fGeom->GetNumAreas(); 391 const UInt_t nsectors = fGeom->GetNumSectors(); 392 const UInt_t lofirst = signal->GetFirstUsedSliceLoGain(); 393 393 394 394 Float_t sumhiarea [nareas], sumloarea [nareas], timehiarea [nareas], timeloarea [nareas]; … … 410 410 411 411 412 for ( Int_t i=0; i<npixels; i++)412 for (UInt_t i=0; i<npixels; i++) 413 413 { 414 414 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
r3653 r3667 297 297 } 298 298 299 const Int_t npixels = fGeom->GetNumPixels();300 const Int_t nareas = fGeom->GetNumAreas();301 const Int_t nsectors = fGeom->GetNumSectors();299 const UInt_t npixels = fGeom->GetNumPixels(); 300 const UInt_t nareas = fGeom->GetNumAreas(); 301 const UInt_t nsectors = fGeom->GetNumSectors(); 302 302 303 303 Float_t sumareahi [nareas], sumarealo [nareas]; -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r3551 r3667 289 289 } 290 290 291 return Profile(mean/n);291 return n==0 ? 0 : Profile(mean/n); 292 292 } 293 293 … … 316 316 } 317 317 } 318 319 if (n==0) 320 return 0; 318 321 319 322 sum /= n; -
trunk/MagicSoft/Mars/mreport/MReportDrive.cc
r2892 r3667 81 81 { 82 82 fName = "MReportDrive"; 83 fTitle = "Class for DRIVE-REPORT information ";83 fTitle = "Class for DRIVE-REPORT information (raw telescope position)"; 84 84 } 85 85
Note:
See TracChangeset
for help on using the changeset viewer.