Changeset 8417
- Timestamp:
- 04/18/07 16:34:51 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r8408 r8417 32 32 // MCalibrationIntensityChargeCam 33 33 // MCalibrationIntensityRelTimeCam 34 // MBadPixelsIntensityCam35 34 // 36 35 // Output Containers: 37 36 // MCalibrationIntensityChargeCam 38 37 // MCalibrationIntensityRelTimeCam 39 // MBadPixelsIntensityCam40 38 // 41 39 // Class version 2: … … 64 62 //#include "MCalibrationIntensityRelTimeCam.h" 65 63 66 #include "MBadPixels IntensityCam.h"64 #include "MBadPixelsCam.h" 67 65 68 66 #include "MCalibrationChargePix.h" … … 88 86 MCalibCalcFromPast::MCalibCalcFromPast(const char *name, const char *title) 89 87 : fGeom(NULL), fParList(NULL), fRunHeader(NULL), 90 fIntensCharge(NULL), fIntensBlind(NULL), fIntensRelTime(NULL), 91 fIntensBad(NULL), 88 fIntensCharge(NULL), fIntensBlind(NULL), 92 89 fChargeCalc(NULL), fRelTimeCalc(NULL), fCalibrate(NULL), 93 90 fNumCam(0), fNumEvents(0), fUpdateWithFFactorMethod(kTRUE), fUpdateNumPhes(kTRUE), … … 131 128 // Look for the MBadPixels Intensity Cam 132 129 // 133 fIntensBad = (MBadPixelsIntensityCam*)pList->FindCreateObj("MBadPixelsIntensityCam"); 134 if (fIntensBad) 135 *fLog << inf << "Found MBadPixelsIntensityCam ... " << flush; 136 else 137 return kFALSE; 138 130 fBadPixels = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam"); 131 if (!fBadPixels) 132 { 133 *fLog << err << "MBadPixelsCam not found... abort." << endl; 134 return kFALSE; 135 } 136 139 137 // 140 138 // Look for the MFillH-class "MHCalibrationBlindCam". In case yes, initialize the … … 209 207 { 210 208 211 fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam");212 if (! fIntensRelTime)209 MParContainer *cont = pList->FindCreateObj("MCalibrationIntensityRelTimeCam"); 210 if (!cont) 213 211 { 214 212 *fLog << err << "Could not find nor create MCalibrationIntensityRelTimeCam abort... " << endl; … … 276 274 return kTRUE; 277 275 276 // Replace the old cams by (empty) new ones 277 // MCalibrationChargeCam: fIntensCharge 278 // MCalibrationQECam: fIntensQE 279 // MCalibrationBlindCam: fIntensBlind 278 280 fNumEvents = 0; 279 281 ReInitialize(); … … 382 384 // The "DeleteOldCam" function must not delete the first entry in 383 385 // the array because it is a special cam from the MParList. (see above) 384 385 if (fIntensBad) 386 { 387 *fLog << "MBadPixelsCam..."; 388 MBadPixelsCam *cold = fIntensBad->GetCam(); 389 fIntensBad->AddToList(Form("MBadPixelsCam%04d",fNumCam),*fGeom); 390 if (cold) 391 fIntensBad->DeleteOldCam(cold); 392 } 386 *fLog << "MBadPixelsCam..."; 387 fBadPixels->Clear(); // FIXME:::::: MERGE PreExcl!!!! 393 388 394 389 if (fIntensCharge) -
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.h
r8408 r8417 20 20 class MCalibrationIntensityBlindCam; 21 21 class MCalibrationIntensityQECam; 22 class MCalibrationIntensityRelTimeCam; 23 class MBadPixels IntensityCam;22 23 class MBadPixelsCam; 24 24 25 25 class MCalibCalcFromPast : public MTask … … 35 35 MCalibrationIntensityBlindCam *fIntensBlind; //! Intensity Blind Cam (to be created) 36 36 MCalibrationIntensityQECam *fIntensQE; //! Intensity QE Cam (to be created) 37 MCalibrationIntensityRelTimeCam *fIntensRelTime; //! Intensity Rel. Time Cam (to be created) 38 MBadPixels IntensityCam *fIntensBad; //! Intensity Bad Pixels Cam (to be created)39 37 38 MBadPixelsCam *fBadPixels; 39 40 40 MCalibrationChargeCalc *fChargeCalc; //! Charge Calibration Task 41 41 MCalibrationRelTimeCalc *fRelTimeCalc; //! Rel. Times Calibratio Task -
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc
r7005 r8417 35 35 // MCalibrationIntensityChargeCam 36 36 // MCalibrationIntensityRelTimeCam 37 // MBadPixelsIntensityCam38 37 // 39 38 // Output Containers: 40 39 // MCalibrationIntensityChargeCam 41 40 // MCalibrationIntensityRelTimeCam 42 // MBadPixelsIntensityCam43 41 // 44 42 ////////////////////////////////////////////////////////////////////////////// … … 50 48 #include "MParList.h" 51 49 #include "MTaskList.h" 50 51 #include "MGeomCam.h" 52 #include "MRawRunHeader.h" 52 53 53 54 #include "MHCalibrationCam.h" 54 55 #include "MCalibrationChargeCam.h" 55 56 #include "MCalibrationBlindCam.h" 57 #include "MBadPixelsCam.h" 56 58 57 59 #include "MCalibrationIntensityChargeCam.h" … … 60 62 #include "MCalibrationIntensityRelTimeCam.h" 61 63 62 #include "MBadPixelsIntensityCam.h" 63 64 #include "MCalibrationPattern.h" 64 65 #include "MCalibrationChargeCam.h" 65 66 #include "MCalibrationChargeCalc.h" 66 67 #include "MCalibrationRelTimeCalc.h" 67 68 68 #include "MRawRunHeader.h"69 #include "MCalibrationPattern.h"70 71 #include "MGeomCam.h"72 73 69 ClassImp(MCalibColorSteer); 74 70 … … 81 77 MCalibColorSteer::MCalibColorSteer(const char *name, const char *title) 82 78 : fCalibPattern(NULL), fGeom(NULL), fParList(NULL), 83 fIntensCharge(NULL), fIntensRelTime(NULL), fIntensBad(NULL),79 fIntensCharge(NULL), fIntensRelTime(NULL), 84 80 fBad(NULL), fChargeCalc(NULL), fRelTimeCalc(NULL), fHistCopy(kFALSE) 85 81 { … … 135 131 136 132 // 137 // Look for the MBadPixels Intensity Cam 138 // 139 fIntensBad = (MBadPixelsIntensityCam*)pList->FindCreateObj("MBadPixelsIntensityCam"); 140 if (fIntensBad) 141 *fLog << inf << "Found MBadPixelsIntensityCam ... " << flush; 142 else 143 return kFALSE; 144 145 // 146 // Look for the MBadPixels Intensity Cam 133 // Look for the MBadPixelsCam 147 134 // 148 135 fBad = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam"); 149 if (fBad) 150 { 151 *fLog << inf << "Found also MBadPixelsCam ... " << flush; 152 fIntensBad->GetCam()->Merge(*fBad); 153 } 154 else 155 return kFALSE; 156 136 if (!fBad) 137 { 138 *fLog << err << "MBadPixelsCam not found... abort." << endl; 139 return kFALSE; 140 } 141 157 142 // 158 143 // Look for the MCalibrationIntensityBlindCam 159 144 // 160 145 fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindCreateObj("MCalibrationIntensityBlindCam"); 161 162 if (fIntensBlind)163 *fLog << inf << "Found MCalibrationIntensityBlindCam ... " << flush;164 else165 return kFALSE;146 if (!fIntensBlind) 147 { 148 *fLog << err << "MCalibrationIntensityBlindCam not found... abort." << endl; 149 return kFALSE; 150 } 166 151 167 152 // … … 341 326 TString namep = GetNamePattern(); 342 327 343 if (fIntensBad) 344 { 345 fIntensBad->AddToList(Form("MBadPixelsCam%s",namep.Data()),*fGeom); 346 *fLog << inf << "New MBadPixelsCam with " << namep << endl; 347 fIntensBad->GetCam()->Merge(*fBad); 348 *fLog << inf << "Merged new MBadPixelsCam with first of list" << endl; 349 } 328 fBad->Clear(); // FIXME:::::: MERGE PreExcl!!!! 329 350 330 if (fIntensCharge) 351 331 { -
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.h
r7005 r8417 21 21 class MCalibrationIntensityQECam; 22 22 class MCalibrationIntensityRelTimeCam; 23 class MBadPixelsIntensityCam;24 23 class MBadPixelsCam; 25 24 … … 35 34 MCalibrationIntensityQECam *fIntensQE; //! 36 35 MCalibrationIntensityRelTimeCam *fIntensRelTime; //! 37 MBadPixelsIntensityCam *fIntensBad; //!38 36 MBadPixelsCam *fBad; //! 39 37 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r8398 r8417 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.17 2 2007-04-12 11:47:19tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.173 2007-04-18 15:33:56 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 239 239 #include "MExtractedSignalPINDiode.h" 240 240 241 #include "MBadPixelsIntensityCam.h"242 241 #include "MBadPixelsCam.h" 243 242 … … 364 363 fNumProcessed = 0; 365 364 366 fIntensBad = NULL;367 365 fBadPixels = NULL; 368 366 fIntensCam = NULL; … … 447 445 // - MCalibrationIntensityChargeCam or MCalibrationChargeCam 448 446 // - MCalibrationIntensityQECam or MCalibrationQECam 449 // - MBadPixels IntensityCam or MBadPixelsCam447 // - MBadPixelsCam 450 448 // 451 449 // Search for the following input containers and give a warning if not existing: … … 535 533 *fLog << inf << "No MHCalibrationChargeBlindCam found... no Blind Pixel method!" << endl; 536 534 537 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); 538 if (fIntensBad) 539 *fLog << inf << "Found MBadPixelsIntensityCam... " << flush; 540 else 541 { 542 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 543 if (!fBadPixels) 544 { 545 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 546 return kFALSE; 547 } 548 } 535 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 536 if (!fBadPixels) 537 { 538 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 539 return kFALSE; 540 } 549 541 550 542 // … … 559 551 MCalibrationChargeCam *chargecam = fIntensCam 560 552 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 561 MBadPixelsCam *badcam = fIntensBad562 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;563 553 564 554 UInt_t npixels = fGeom->GetNumPixels(); … … 569 559 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 570 560 MCalibrationQEPix &pqe = (MCalibrationQEPix&) (*qecam) [i]; 571 MBadPixelsPix &bad = (* badcam)[i];561 MBadPixelsPix &bad = (*fBadPixels)[i]; 572 562 573 563 if (bad.IsBad()) … … 750 740 MCalibrationQECam *qecam = fIntensQE ? (MCalibrationQECam*) fIntensQE->GetCam() : fQECam; 751 741 MCalibrationChargeCam *chargecam = fIntensCam ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 752 MBadPixelsCam *badcam = fIntensBad ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;753 742 754 743 // … … 768 757 769 758 MPedestalPix &ped = (*fPedestals)[pixid]; 770 MBadPixelsPix &bad = (* badcam)[pixid];759 MBadPixelsPix &bad = (*fBadPixels)[pixid]; 771 760 772 761 const Int_t aidx = (*fGeom)[pixid].GetAidx(); … … 919 908 chargecam->SetReadyToSave(); 920 909 qecam ->SetReadyToSave(); 921 badcam->SetReadyToSave();910 fBadPixels->SetReadyToSave(); 922 911 923 912 if (blindcam) … … 1158 1147 { 1159 1148 1160 MBadPixelsCam *badcam = fIntensBad ? (MBadPixelsCam*)fIntensBad->GetCam() : fBadPixels; 1161 1162 for (Int_t i=0; i<badcam->GetSize(); i++) 1163 { 1164 1165 MBadPixelsPix &bad = (*badcam)[i]; 1149 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 1150 { 1151 1152 MBadPixelsPix &bad = (*fBadPixels)[i]; 1166 1153 1167 1154 if (IsCheckDeadPixels()) … … 1238 1225 Bool_t MCalibrationChargeCalc::FinalizeFFactorMethod() 1239 1226 { 1240 MBadPixelsCam *badcam = fIntensBad1241 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;1242 1227 MCalibrationChargeCam *chargecam = fIntensCam 1243 1228 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; … … 1266 1251 { 1267 1252 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 1268 MBadPixelsPix &bad = (*badcam)[i]; 1253 1254 MBadPixelsPix &bad = (*fBadPixels)[i]; 1269 1255 1270 1256 if (!pix.IsFFactorMethodValid()) … … 1391 1377 continue; 1392 1378 1393 MBadPixelsPix &bad = (*badcam)[i];1379 MBadPixelsPix &bad = (*fBadPixels)[i]; 1394 1380 1395 1381 if (bad.IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid)) … … 1526 1512 1527 1513 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 1528 MBadPixelsPix &bad = (*badcam)[i]; 1514 1515 MBadPixelsPix &bad = (*fBadPixels)[i]; 1529 1516 1530 1517 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) … … 1734 1721 MCalibrationChargeCam *chargecam = fIntensCam 1735 1722 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 1736 MBadPixelsCam *badcam = fIntensBad1737 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;1738 1723 1739 1724 MCalibrationChargePix &avpix = (MCalibrationChargePix&)chargecam->GetAverageArea(0); … … 1785 1770 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 1786 1771 MCalibrationQEPix &qpix = (MCalibrationQEPix&) (*qecam) [i]; 1787 MBadPixelsPix &bad = (*badcam) [i]; 1772 1773 MBadPixelsPix &bad = (*fBadPixels)[i]; 1788 1774 1789 1775 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) … … 1903 1889 1904 1890 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 1905 MBadPixelsPix &bad = (*badcam) [i]; 1891 1892 MBadPixelsPix &bad = (*fBadPixels)[i]; 1906 1893 1907 1894 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) … … 1928 1915 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i]; 1929 1916 MCalibrationQEPix &qpix = (MCalibrationQEPix&) (*qecam) [i]; 1930 MBadPixelsPix &bad = (*badcam) [i]; 1931 1932 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 1917 1918 if ((*fBadPixels)[i].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 1933 1919 { 1934 1920 qpix.SetFFactorMethodValid(kFALSE,fPulserColor); … … 1964 1950 MCalibrationBlindCam *blindcam = fIntensBlind 1965 1951 ? (MCalibrationBlindCam*) fIntensBlind->GetCam(): fBlindCam; 1966 MBadPixelsCam *badcam = fIntensBad1967 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;1968 1952 MCalibrationQECam *qecam = fIntensQE 1969 1953 ? (MCalibrationQECam*) fIntensQE->GetCam() : fQECam; … … 2007 1991 } 2008 1992 2009 MBadPixelsPix &bad = (*badcam)[i];1993 MBadPixelsPix &bad = (*fBadPixels)[i]; 2010 1994 2011 1995 if (bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun)) … … 2063 2047 MCalibrationChargeCam *chargecam = fIntensCam 2064 2048 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 2065 MBadPixelsCam *badcam = fIntensBad2066 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;2067 2049 2068 2050 if (!fPINDiode) … … 2090 2072 } 2091 2073 2092 MBadPixelsPix &bad = (*badcam)[i];2074 MBadPixelsPix &bad = (*fBadPixels)[i]; 2093 2075 2094 2076 if (!bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun)) … … 2130 2112 MCalibrationQECam *qecam = fIntensQE 2131 2113 ? (MCalibrationQECam*) fIntensQE->GetCam() : fQECam; 2132 MBadPixelsCam *badcam = fIntensBad2133 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;2134 2114 2135 2115 for (UInt_t i=0; i<npixels; i++) … … 2137 2117 2138 2118 MCalibrationQEPix &qepix = (MCalibrationQEPix&) (*qecam) [i]; 2139 MBadPixelsPix &bad = (*badcam) [i]; 2140 2141 if (!bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun)) 2119 2120 if (!(*fBadPixels)[i].IsUnsuitable (MBadPixelsPix::kUnsuitableRun)) 2142 2121 { 2143 2122 qepix.SetPINDiodeMethodValid(kFALSE, fPulserColor); … … 2167 2146 TArrayI unrel(nareas); 2168 2147 2169 const MBadPixelsCam *badcam = fIntensBad ? (MBadPixelsCam*)fIntensBad->GetCam() : fBadPixels;2170 2148 MCalibrationChargeCam *chargecam = fIntensCam ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 2171 2149 … … 2176 2154 for (Int_t aidx=0; aidx<nareas; aidx++) 2177 2155 { 2178 suit[aidx] = badcam->GetNumSuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx);2179 unsuit[aidx] = badcam->GetNumUnsuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx);2180 unrel[aidx] = badcam->GetNumUnsuitable(MBadPixelsPix::kUnreliableRun, fGeom, aidx);2156 suit[aidx] = fBadPixels->GetNumSuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx); 2157 unsuit[aidx] = fBadPixels->GetNumUnsuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx); 2158 unrel[aidx] = fBadPixels->GetNumUnsuitable(MBadPixelsPix::kUnreliableRun, fGeom, aidx); 2181 2159 2182 2160 unsuitcnt += unsuit[aidx]; … … 2237 2215 UInt_t countouter = 0; 2238 2216 2239 MBadPixelsCam *badcam = fIntensBad 2240 ? (MBadPixelsCam*)fIntensBad->GetCam() : fBadPixels; 2241 2242 for (Int_t i=0; i<badcam->GetSize(); i++) 2243 { 2244 MBadPixelsPix &bad = (*badcam)[i]; 2245 2246 if (bad.IsUncalibrated(typ)) 2217 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 2218 { 2219 if ((*fBadPixels)[i].IsUncalibrated(typ)) 2247 2220 { 2248 2221 if (fGeom->GetPixRatio(i) == 1.) -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r8142 r8417 33 33 class MGeomCam; 34 34 class MExtractedSignalCam; 35 class MBadPixelsIntensityCam;36 35 class MBadPixelsCam; 37 36 class MExtractor; … … 85 84 86 85 // Pointers 87 MBadPixelsIntensityCam *fIntensBad; //! Bad Pixels 86 // MBadPixelsIntensityCam *fIntensBad; //! Bad Pixels 88 87 MBadPixelsCam *fBadPixels; //! Bad Pixels 89 88 MCalibrationIntensityChargeCam *fIntensCam; //! Intensity Calibration results of all pixels -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r8355 r8417 75 75 #include "MCalibrationRelTimePix.h" 76 76 77 #include "MBadPixelsIntensityCam.h"78 77 #include "MBadPixelsCam.h" 79 78 #include "MBadPixelsPix.h" … … 124 123 { 125 124 126 fIntensBad = NULL;127 125 fBadPixels = NULL; 128 126 fCam = NULL; … … 136 134 // - MGeomCam 137 135 // - MCalibrationIntensityRelTimeCam or MCalibrationRelTimeCam 138 // - MBadPixels IntensityCam or MBadPixelsCam136 // - MBadPixelsCam 139 137 // 140 138 // It defines the PixId of every pixel in: … … 156 154 } 157 155 158 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); 159 if (fIntensBad) 160 *fLog << inf << "Found MBadPixelsIntensityCam ... " << endl; 161 else 162 { 163 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 164 if (!fBadPixels) 165 { 166 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 167 return kFALSE; 168 } 169 } 156 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 157 if (!fBadPixels) 158 { 159 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 160 return kFALSE; 161 } 170 162 171 163 fIntensCam = (MCalibrationIntensityRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityRelTimeCam")); … … 187 179 MCalibrationRelTimeCam *relcam = fIntensCam 188 180 ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam; 189 MBadPixelsCam *badcam = fIntensBad190 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;191 181 192 182 for (UInt_t i=0; i<npixels; i++) … … 194 184 195 185 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i]; 196 MBadPixelsPix &bad = (*badcam)[i]; 197 198 if (bad.IsBad()) 186 187 if ((*fBadPixels)[i].IsBad()) 199 188 { 200 189 pix.SetExcluded(); … … 258 247 fCam ->SetReadyToSave(); 259 248 260 if (fIntensBad) 261 fIntensBad->SetReadyToSave(); 262 else 263 fBadPixels->SetReadyToSave(); 249 fBadPixels->SetReadyToSave(); 264 250 265 251 *fLog << inf << endl; … … 293 279 MCalibrationRelTimeCam *relcam = fIntensCam 294 280 ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam; 295 MBadPixelsCam *badcam = fIntensBad296 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;297 281 298 282 const UInt_t npixels = fGeom->GetNumPixels(); … … 311 295 for (UInt_t i=0; i<npixels; i++) 312 296 { 313 MBadPixelsPix &bad = (* badcam)[i];297 MBadPixelsPix &bad = (*fBadPixels)[i]; 314 298 const Int_t aidx = (*fGeom)[i].GetAidx(); 315 299 … … 336 320 337 321 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i]; 338 MBadPixelsPix &bad = (*badcam)[i]; 339 322 340 323 if (pix.IsExcluded()) 341 324 continue; 342 325 326 MBadPixelsPix &bad = (*fBadPixels)[i]; 343 327 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 344 328 continue; … … 383 367 384 368 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i]; 385 MBadPixelsPix &bad = (*badcam)[i];386 369 387 370 if (pix.IsExcluded()) 388 371 continue; 389 372 373 MBadPixelsPix &bad = (*fBadPixels)[i]; 390 374 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 391 375 continue; … … 420 404 MCalibrationRelTimeCam *relcam = fIntensCam 421 405 ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam; 422 MBadPixelsCam *badcam = fIntensBad 423 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels; 424 425 for (Int_t i=0; i<badcam->GetSize(); i++) 426 { 427 428 MBadPixelsPix &bad = (*badcam)[i]; 406 407 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 408 { 409 429 410 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i]; 411 412 MBadPixelsPix &bad = (*fBadPixels)[i]; 430 413 431 414 if (IsCheckDeviatingBehavior()) … … 460 443 461 444 MCalibrationRelTimeCam *relcam = fIntensCam ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam; 462 const MBadPixelsCam *badcam = fIntensBad ? (MBadPixelsCam*)fIntensBad->GetCam() : fBadPixels;463 445 464 446 const Int_t nareas = fGeom->GetNumAreas(); … … 469 451 for (int aidx=0; aidx<nareas; aidx++) 470 452 { 471 unsuit[aidx] += badcam->GetNumUnsuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx);472 unrel[aidx] += badcam->GetNumUnsuitable(MBadPixelsPix::kUnreliableRun, fGeom, aidx);453 unsuit[aidx] += fBadPixels->GetNumUnsuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx); 454 unrel[aidx] += fBadPixels->GetNumUnsuitable(MBadPixelsPix::kUnreliableRun, fGeom, aidx); 473 455 relcam->SetNumUnsuitable(unsuit[aidx], aidx); 474 456 relcam->SetNumUnreliable(unrel[aidx], aidx); … … 488 470 void MCalibrationRelTimeCalc::PrintUncalibrated(MBadPixelsPix::UncalibratedType_t typ, const char *text) const 489 471 { 490 const MBadPixelsCam *badcam = fIntensBad ? (MBadPixelsCam*)fIntensBad->GetCam() : fBadPixels;491 492 472 UInt_t countinner = 0; 493 473 UInt_t countouter = 0; 494 for (Int_t i=0; i< badcam->GetSize(); i++)495 { 496 if ((* badcam)[i].IsUncalibrated(typ))474 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 475 { 476 if ((*fBadPixels)[i].IsUncalibrated(typ)) 497 477 { 498 478 if (fGeom->GetPixRatio(i) == 1.) -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h
r8142 r8417 22 22 class MCalibrationRelTimeCam; 23 23 class MGeomCam; 24 class MBadPixelsIntensityCam;24 //class MBadPixelsIntensityCam; 25 25 class MBadPixelsCam; 26 26 … … 35 35 36 36 // Pointers 37 MBadPixelsIntensityCam *fIntensBad; // Bad Pixels Intensity Cam37 //MBadPixelsIntensityCam *fIntensBad; // Bad Pixels Intensity Cam 38 38 MBadPixelsCam *fBadPixels; // Bad Pixels 39 39 MCalibrationIntensityRelTimeCam *fIntensCam; // Calibrated RelTimes for different intensities -
trunk/MagicSoft/Mars/mcalib/MCalibrationTestCalc.cc
r8049 r8417 68 68 #include "MCalibrationTestPix.h" 69 69 70 #include "MBadPixelsIntensityCam.h"71 70 #include "MBadPixelsCam.h" 72 71 #include "MBadPixelsPix.h" … … 90 89 // 91 90 MCalibrationTestCalc::MCalibrationTestCalc(const char *name, const char *title) 92 : fIntensBad(NULL), fBadPixels(NULL), 93 fTestCam(NULL), fIntensCam(NULL), fCam(NULL), 91 : fBadPixels(NULL), fTestCam(NULL), fIntensCam(NULL), fCam(NULL), 94 92 fGeom(NULL) 95 93 { … … 112 110 // - MHCalibrationTestCam 113 111 // - MCalibrationIntensityTestCam or MCalibrationTestCam 114 // - MBadPixels IntensityCam or MBadPixelsCam112 // - MBadPixelsCam 115 113 // 116 114 Bool_t MCalibrationTestCalc::ReInit(MParList *pList ) … … 146 144 } 147 145 148 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); 149 if (fIntensBad) 150 *fLog << inf << "Found MBadPixelsIntensityCam ... " << endl; 151 else 152 { 153 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 154 if (!fBadPixels) 155 { 156 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 157 return kFALSE; 158 } 159 } 160 161 162 return kTRUE; 163 } 164 165 // ---------------------------------------------------------------------------------- 166 // 167 // Nothing to be done in Process, but have a look at MHCalibrationTestCam, instead 168 // 169 Int_t MCalibrationTestCalc::Process() 170 { 146 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 147 if (!fBadPixels) 148 { 149 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 150 return kFALSE; 151 } 152 171 153 return kTRUE; 172 154 } … … 241 223 MCalibrationTestCam *testcam = fIntensCam 242 224 ? (MCalibrationTestCam*)fIntensCam->GetCam() : fCam; 243 MBadPixelsCam *badcam = fIntensBad244 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;245 225 246 226 TArrayD lowlim (nareas); … … 409 389 << Form("%8.2f out of %3.1f sigma limit: ",nphot,fPhotErrLimit) 410 390 << Form("[%8.2f,%8.2f] pixel%4i",lowlim[aidx],upplim[aidx],i) << endl; 411 MBadPixelsPix &bad = (* badcam)[i];391 MBadPixelsPix &bad = (*fBadPixels)[i]; 412 392 bad.SetUncalibrated( MBadPixelsPix::kDeviatingNumPhots ); 413 393 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); -
trunk/MagicSoft/Mars/mcalib/MCalibrationTestCalc.h
r5046 r8417 22 22 class MCalibrationIntensityTestCam; 23 23 class MCalibrationTestCam; 24 class MBadPixelsIntensityCam;25 24 class MBadPixelsCam; 26 25 class MGeomCam; … … 39 38 40 39 // Pointers 41 MBadPixelsIntensityCam *fIntensBad; //! Bad Pixels42 40 MBadPixelsCam *fBadPixels; //! Bad Pixels 43 41 MHCalibrationTestCam *fTestCam; //! Calibrated Photons in the camera … … 55 53 56 54 Bool_t ReInit (MParList *pList); 57 Int_t Process ();58 55 Int_t PostProcess(); 59 56 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r8366 r8417 82 82 #include "MCalibrationPix.h" 83 83 84 #include "MBadPixelsIntensityCam.h"85 84 #include "MBadPixelsCam.h" 86 85 #include "MBadPixelsPix.h" … … 144 143 fHistName(gsHistName),fHistTitle(gsHistTitle), 145 144 fHistXTitle(gsHistXTitle),fHistYTitle(gsHistYTitle), 146 fCurrentNumEvts(0), 147 fColor(MCalibrationCam::kNONE), fIntensBad(NULL), 145 fCurrentNumEvts(0), fColor(MCalibrationCam::kNONE), 148 146 fBadPixels(NULL), fIntensCam(NULL), fCam(NULL), fGeom(NULL), 149 147 fRunHeader(NULL) … … 568 566 // 569 567 // Gets or creates the pointers to: 570 // - MBadPixelsIntensityCam571 568 // - MBadPixelsCam 572 569 // … … 606 603 const Int_t nareas = fGeom->GetNumAreas(); 607 604 608 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); 609 if (fIntensBad) 610 *fLog << inf << "Found MBadPixelsIntensityCam ... " << endl; 611 else 612 { 613 fBadPixels = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam"); 605 fBadPixels = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam"); 606 if (!fBadPixels) 607 { 608 fBadPixels = (MBadPixelsCam*)pList->FindCreateObj(AddSerialNumber("MBadPixelsCam")); 614 609 if (!fBadPixels) 615 { 616 617 fBadPixels = (MBadPixelsCam*)pList->FindCreateObj(AddSerialNumber("MBadPixelsCam")); 618 if (!fBadPixels) 619 return kFALSE; 620 621 fBadPixels->InitSize(npixels); 622 } 623 } 624 610 return kFALSE; 611 612 fBadPixels->InitSize(npixels); 613 } 614 625 615 if (IsAverageing()) 626 616 { … … 644 634 for (Int_t i=0; i<npixels; i++) 645 635 { 646 647 MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i]; 648 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 636 637 if ((*fBadPixels)[i].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 649 638 continue; 650 639 … … 746 735 pix.SetProbLimit(fProbLimit); 747 736 748 MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i]; 749 InitHists(pix,bad,i); 737 InitHists(pix, (*fBadPixels)[i], i); 750 738 751 739 if (fCam) … … 823 811 pix.SetProbLimit(fProbLimit); 824 812 825 MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i]; 826 InitHists(pix,bad,i); 813 InitHists(pix, (*fBadPixels)[i], i); 827 814 } 828 815 } … … 1255 1242 { 1256 1243 *fLog << warn << "Pixel " << setw(4) << pix.GetPixId() << ": Hi-Gain histogram empty." << endl; 1244 bad.SetUncalibrated( fittyp ); 1257 1245 return; 1258 1246 } … … 1260 1248 { 1261 1249 *fLog << warn << "Pixel " << setw(4) << pix.GetPixId() << ": Hi-Gain histogram contains only overflows." << endl; 1250 bad.SetUncalibrated( fittyp ); 1262 1251 return; 1263 1252 } … … 1265 1254 { 1266 1255 *fLog << warn << "Pixel " << setw(4) << pix.GetPixId() << ": Hi-Gain histogram contains only underflows." << endl; 1256 bad.SetUncalibrated( fittyp ); 1267 1257 return; 1268 1258 } … … 1357 1347 { 1358 1348 // *fLog << warn << "Pixel " << setw(4) << pix.GetPixId() << ": Lo-Gain histogram empty." << endl; 1349 bad.SetUncalibrated( fittyp ); 1359 1350 return; 1360 1351 } … … 1362 1353 { 1363 1354 *fLog << warn << "Pixel " << setw(4) << pix.GetPixId() << ": Lo-Gain histogram contains only overflows." << endl; 1355 bad.SetUncalibrated( fittyp ); 1364 1356 return; 1365 1357 } … … 1367 1359 { 1368 1360 *fLog << warn << "Pixel " << setw(4) << pix.GetPixId() << ": Lo-Gain histogram contains only underflows." << endl; 1361 bad.SetUncalibrated( fittyp ); 1369 1362 return; 1370 1363 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r8366 r8417 32 32 class MCalibrationCam; 33 33 class MCalibrationPix; 34 class MBadPixelsIntensityCam;35 34 class MBadPixelsCam; 36 35 class MBadPixelsPix; … … 100 99 MCalibrationCam::PulserColor_t fColor; // Colour of the pulsed LEDs 101 100 102 MBadPixelsIntensityCam *fIntensBad; //! Bad Pixels intensity calibration storage container103 101 MBadPixelsCam *fBadPixels; //! Bad Pixels storage container 104 102 MCalibrationIntensityCam *fIntensCam; //! Intensity Calibration Cam with the results -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r8365 r8417 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.5 5 2007-03-04 14:46:44tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.56 2007-04-18 15:33:56 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 150 150 #include "MGeomPix.h" 151 151 152 #include "MBadPixelsIntensityCam.h"153 152 #include "MBadPixelsCam.h" 154 153 #include "MBadPixelsPix.h" … … 429 428 { 430 429 431 MBadPixelsCam *badcam = fIntensBad432 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;433 434 430 TH1F *h; 435 431 … … 450 446 pix.SetBinningAbsTime(higainsamples, -0.5, higainsamples-0.5); 451 447 452 InitHists(pix,(* badcam)[i],i);448 InitHists(pix,(*fBadPixels)[i], i); 453 449 454 450 h = pix.GetHAbsTime(); … … 541 537 542 538 543 MBadPixelsCam *badcam = fIntensBad544 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels;545 546 539 const Int_t logainsamples = fRunHeader->GetNumSamplesLoGain(); 547 540 … … 564 557 pix.SetBlackoutLimit(fgLoGainBlackoutLimit); 565 558 566 InitHists(pix,(* badcam)[i],i);559 InitHists(pix,(*fBadPixels)[i], i); 567 560 568 561 h = pix.GetHAbsTime(); … … 870 863 871 864 MCalibrationCam *chargecam = fIntensCam ? fIntensCam->GetCam() : fCam; 872 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels;873 865 874 866 const Int_t hifirst = fSignal->GetFirstUsedSliceHiGain(); … … 899 891 } 900 892 901 MBadPixelsPix &bad = (* badcam)[i];893 MBadPixelsPix &bad = (*fBadPixels)[i]; 902 894 903 895 h = histhi.GetHGausHist(); … … 929 921 930 922 MHCalibrationChargePix &histlo = (MHCalibrationChargePix&)(*this)(i); 931 MBadPixelsPix &bad = (*badcam)[i];932 923 933 924 if (histlo.IsExcluded()) 934 925 continue; 935 926 927 MBadPixelsPix &bad = (*fBadPixels)[i]; 936 928 if (histlo.GetSaturated() > fNumLoGainSaturationLimit*histlo.GetHGausHist()->GetEntries()) 937 929 { … … 1055 1047 // Perform the fitting for the High Gain (done in MHCalibrationCam) 1056 1048 // 1057 FitHiGainArrays(*chargecam, * badcam,1049 FitHiGainArrays(*chargecam, *fBadPixels, 1058 1050 MBadPixelsPix::kHiGainNotFitted, 1059 1051 MBadPixelsPix::kHiGainOscillating); … … 1063 1055 // 1064 1056 if (IsLoGain()) 1065 FitLoGainArrays(*chargecam, * badcam,1057 FitLoGainArrays(*chargecam, *fBadPixels, 1066 1058 MBadPixelsPix::kLoGainNotFitted, 1067 1059 MBadPixelsPix::kLoGainOscillating); … … 1090 1082 continue; 1091 1083 1092 MBadPixelsPix &bad = (* badcam)[i];1084 MBadPixelsPix &bad = (*fBadPixels)[i]; 1093 1085 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 1094 1086 bad.SetUncalibrated(MBadPixelsPix::kLoGainBlackout); … … 1151 1143 { 1152 1144 1153 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels;1154 1145 MCalibrationCam *chargecam = fIntensCam ? fIntensCam->GetCam() : fCam; 1155 1146 1156 for (Int_t i=0; i< badcam->GetSize(); i++)1147 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 1157 1148 { 1158 1149 1159 MBadPixelsPix &bad = (* badcam)[i];1150 MBadPixelsPix &bad = (*fBadPixels)[i]; 1160 1151 MCalibrationPix &pix = (*chargecam)[i]; 1161 1152 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc
r8132 r8417 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.2 0 2006-10-19 14:01:49tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.21 2007-04-18 15:33:56 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 116 116 #include "MGeomPix.h" 117 117 118 #include "MBadPixelsIntensityCam.h"119 118 #include "MBadPixelsCam.h" 120 119 #include "MBadPixelsPix.h" … … 718 717 719 718 MCalibrationCam *hilocam = fCam; 720 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels;721 719 722 720 const Int_t nareas = fAverageHiGainAreas->GetSize(); … … 766 764 767 765 768 FitHiGainArrays(*hilocam, *badcam,766 FitHiGainArrays(*hilocam, *fBadPixels, 769 767 MBadPixelsPix::kHiLoNotFitted, 770 768 MBadPixelsPix::kHiLoOscillating); … … 843 841 } 844 842 845 FitLoGainArrays(*hilocam, *badcam,843 FitLoGainArrays(*hilocam, *fBadPixels, 846 844 MBadPixelsPix::kHiLoNotFitted, 847 845 MBadPixelsPix::kHiLoOscillating); … … 859 857 { 860 858 861 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels; 862 863 for (Int_t i=0; i<badcam->GetSize(); i++) 864 { 865 MBadPixelsPix &bad = (*badcam)[i]; 859 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 860 { 861 MBadPixelsPix &bad = (*fBadPixels)[i]; 866 862 867 863 if (bad.IsUncalibrated( MBadPixelsPix::kHiLoNotFitted )) -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8361 r8417 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.3 4 2007-03-04 11:55:55tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.35 2007-04-18 15:33:56 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 124 124 #include "MHCalibrationPix.h" 125 125 #include "MCalibrationIntensityCam.h" 126 #include "MBadPixelsIntensityCam.h"127 126 128 127 #include "MGeomCam.h" … … 308 307 pix.SetBinning(fNbins, fFirst, fLast); 309 308 310 MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i]; 311 InitHists(pix,bad,i); 309 InitHists(pix, (*fBadPixels)[i], i); 312 310 313 311 if (fCam) -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r8359 r8417 107 107 #include "MGeomPix.h" 108 108 109 #include "MBadPixelsIntensityCam.h"110 109 #include "MBadPixelsCam.h" 111 110 #include "MBadPixelsPix.h" … … 448 447 449 448 MCalibrationCam *relcam = fIntensCam ? fIntensCam->GetCam() : fCam; 450 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels;451 449 452 450 const Int_t nareas = fAverageHiGainAreas->GetSize(); … … 542 540 } 543 541 544 FitHiGainArrays(*relcam, *badcam,542 FitHiGainArrays(*relcam, *fBadPixels, 545 543 MBadPixelsPix::kRelTimeNotFitted, 546 544 MBadPixelsPix::kRelTimeOscillating); 547 545 548 546 if (IsLoGain()) 549 FitLoGainArrays(*relcam, *badcam,547 FitLoGainArrays(*relcam, *fBadPixels, 550 548 MBadPixelsPix::kRelTimeNotFitted, 551 549 MBadPixelsPix::kRelTimeOscillating); … … 563 561 { 564 562 565 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels; 566 567 for (Int_t i=0; i<badcam->GetSize(); i++) 568 { 569 MBadPixelsPix &bad = (*badcam)[i]; 563 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 564 { 565 MBadPixelsPix &bad = (*fBadPixels)[i]; 570 566 571 567 if (bad.IsUncalibrated( MBadPixelsPix::kRelTimeNotFitted )) -
trunk/MagicSoft/Mars/mhcalib/MHPedestalCam.cc
r8339 r8417 104 104 #include "MCalibrationPix.h" 105 105 106 #include "MBadPixelsIntensityCam.h"107 106 #include "MBadPixelsCam.h" 108 107 … … 127 126 const TString MHPedestalCam::gsHistYTitle = "Nr. events"; 128 127 const TString MHPedestalCam::fgNamePedestalCam = "MPedestalCam"; 128 129 129 // -------------------------------------------------------------------------- 130 130 // … … 375 375 pix.SetProbLimit(fProbLimit); 376 376 377 MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i]; 378 InitHists(pix,bad,i); 377 InitHists(pix, (*fBadPixels)[i], i); 379 378 } 380 379 } -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r7013 r8417 5 5 #include "MJCalib.h" 6 6 #endif 7 #ifndef MARS_MCalibrationIntensityChargeCam8 #include "MCalibrationIntensityChargeCam.h"9 #endif10 7 #ifndef MARS_MCalibrationChargeCam 11 8 #include "MCalibrationChargeCam.h" 12 #endif13 #ifndef MARS_MCalibrationIntensityBlindCam14 #include "MCalibrationIntensityBlindCam.h"15 9 #endif 16 10 #ifndef MARS_MCalibrationBlindCam … … 20 14 #include "MCalibrationChargePINDiode.h" 21 15 #endif 22 #ifndef MARS_MCalibrationIntensityRelTimeCam23 #include "MCalibrationIntensityRelTimeCam.h"24 #endif25 16 #ifndef MARS_MCalibrationRelTimeCam 26 17 #include "MCalibrationRelTimeCam.h" 27 18 #endif 28 #ifndef MARS_MCalibrationIntensityQECam29 #include "MCalibrationIntensityQECam.h"30 #endif31 19 #ifndef MARS_MCalibrationQECam 32 20 #include "MCalibrationQECam.h" 33 #endif34 #ifndef MARS_MBadPixelsIntensityCam35 #include "MBadPixelsIntensityCam.h"36 21 #endif 37 22 #ifndef MARS_MBadPixelsCam … … 102 87 MExtractTime *fTimeExtractor; // Arrival Time extractor 103 88 104 MBadPixelsIntensityCam fIntensBadCam; // Bad Pixels cam, can be set from previous runs105 89 MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs 106 MCalibrationIntensityChargeCam fIntensCalibCam; // Calibration conversion factors FADC2Phe for diff. intens.107 90 MCalibrationChargeCam fCalibrationCam; // Calibration conversion factors FADC2Phe 108 MCalibrationIntensityBlindCam fIntensBlindCam; // Calibration from Blind Pixel(s)109 91 MCalibrationBlindCam fCalibrationBlindCam; // Calibration from Blind Pixel(s) 110 92 MCalibrationChargePINDiode fCalibrationPINDiode; // Calibration from PIN Diode 111 MCalibrationIntensityQECam fIntensQECam; // Quantum efficiency for diff. intensities,112 93 MCalibrationQECam fQECam; // Quantum efficiency, can be set from previous runs 113 MCalibrationIntensityRelTimeCam fIntensRelTimeCam; // Calibration constants rel. times for diff. intensities114 94 MCalibrationRelTimeCam fRelTimeCam; // Calibration constants rel. times 115 95 … … 127 107 Display_t fDisplayType; // Chosen Display type 128 108 129 enum { kRelTimes, kDebug , kIntensity };// Possible flags109 enum { kRelTimes, kDebug }; // Possible flags 130 110 131 111 Byte_t fFlags; // Bit-field for the flags … … 135 115 Bool_t IsRelTimes () const { return TESTBIT(fFlags,kRelTimes); } 136 116 Bool_t IsDebug () const { return TESTBIT(fFlags,kDebug); } 137 Bool_t IsIntensity () const { return TESTBIT(fFlags,kIntensity); }138 117 139 118 void DrawTab(MParList &plist, const char *cont, const char *name, Option_t *opt); … … 162 141 public: 163 142 MJCalibration(const char *name=NULL, const char *title=NULL); 164 165 MCalibrationIntensityChargeCam &GetIntensCalibrationCam() { return fIntensCalibCam; }166 MCalibrationIntensityRelTimeCam &GetIntensRelTimeCam() { return fIntensRelTimeCam; }167 MCalibrationIntensityQECam &GetIntensQECam() { return fIntensQECam; }168 MBadPixelsIntensityCam &GetIntensBadCam() { return fIntensBadCam; }169 143 170 MCalibrationChargeCam &GetCalibrationCam() { return fCalibrationCam;}171 MCalibrationRelTimeCam &GetRelTimeCam() { return fRelTimeCam;}172 MCalibrationQECam &GetQECam() { return fQECam;}173 MBadPixelsCam &GetBadPixels() { return fBadPixels;}144 const MCalibrationChargeCam &GetCalibrationCam() const { return fCalibrationCam; } 145 const MCalibrationRelTimeCam &GetRelTimeCam() const { return fRelTimeCam; } 146 const MCalibrationQECam &GetQECam() const { return fQECam; } 147 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; } 174 148 175 149 // Containers and pointers … … 192 166 void SetRelTimeCalibration( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kRelTimes) : CLRBIT(fFlags,kRelTimes); } 193 167 void SetDebug ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kDebug) : CLRBIT(fFlags,kDebug); } 194 void SetIntensity ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kIntensity) : CLRBIT(fFlags,kIntensity); }168 //void SetIntensity ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kIntensity) : CLRBIT(fFlags,kIntensity); } 195 169 196 170 // Files
Note:
See TracChangeset
for help on using the changeset viewer.