- Timestamp:
- 04/14/04 16:35:59 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3733 r3734 18 18 19 19 -*-*- END OF LINE -*-*- 20 2004/04/14: Thomas Bretz 21 22 * manalysis/MCerPhotEvt.[h,cc]: 23 - fixed a bug which caused a missing last pixel (in most cases 24 Index 576) 25 26 * manalysis/MCerPhotPix.cc: 27 - fixed output in Print 28 29 * macros/mccalibrate.C, mmain/MEventDisplay.cc: 30 - added missing SetCalibrationMethod 31 32 * mbadpixels/MBadPixelsCam.[h,cc]: 33 - added copy constructor 34 35 * mbadpixels/MBadPixelsMerge.cc: 36 - added comments 37 38 * mraw/MRawRunHeader.[h,cc]: 39 - added new run-type (kRTPointRun=7) 40 41 42 20 43 2004/04/14: Markus Gaug 21 44 … … 40 63 41 64 65 42 66 2004/04/13: Markus Gaug 43 67 … … 78 102 - set the possibility to choose different displays 79 103 80 81 104 * mcalib/MCalibrationChargeCalc.cc 82 105 - set the pulser colour (now obligatory) 83 106 84 85 107 * mcalib/MCalibrationChargePix.[h,cc] 86 108 - put GetRSigmaPerCharge into this class 109 87 110 88 111 -
trunk/MagicSoft/Mars/macros/mccalibrate.C
r3441 r3734 101 101 102 102 MCalibrate calib; // Transforms signals from ADC counts into photons. 103 calib.SetCalibrationMethod(MCalibrate::kDummy); 103 104 104 105 // MBlindPixelCalc blind; … … 169 170 } 170 171 172 calib.SetCalibrationMethod(MCalibrate::kFfactor); 173 171 174 // 172 175 // Second loop: analysis loop -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r3541 r3734 96 96 void MCerPhotEvt::Reset() 97 97 { 98 fNumPixels = 0;99 fMaxIndex = 0;98 fNumPixels = 0; 99 fMaxIndex = -1; 100 100 fLut.Set(0); 101 101 // fPixels->Delete(); … … 104 104 void MCerPhotEvt::FixSize() 105 105 { 106 fLut.Set(fMaxIndex );106 fLut.Set(fMaxIndex+1); 107 107 108 108 if (fPixels->GetEntriesFast() == (Int_t)fNumPixels) … … 401 401 402 402 fLut[idx] = fNumPixels; 403 if ( (UInt_t)idx>fMaxIndex)404 fMaxIndex= (UInt_t)idx;403 if (idx>fMaxIndex) 404 fMaxIndex=idx; 405 405 406 406 return new ((*fPixels)[fNumPixels++]) MCerPhotPix(idx, nph, er); -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r3541 r3734 24 24 private: 25 25 UInt_t fNumPixels; 26 UInt_t fMaxIndex;26 Int_t fMaxIndex; 27 27 TArrayI fLut; // Lookup tabel to lookup pixel by index 28 28 TClonesArray *fPixels; //-> FIXME: Change TClonesArray away from a pointer? -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r3466 r3734 73 73 gLog << (fRing>0?" Used ":" Unused "); 74 74 gLog << (fIsCore?" Core ":" "); 75 gLog << "High gain " << (fIsHGSaturated?" ":"not") << " saturated";76 gLog << (fIsSaturated?" ":"Not") << " saturated";77 gLog << " 75 gLog << (fIsSaturated?" ":"not") << " saturated "; 76 gLog << "High gain " << (fIsHGSaturated?" ":"not") << " saturated "; 77 gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl; 78 78 } -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3732 r3734 53 53 { 54 54 fName = name ? name : "MBadPixelsCam"; 55 fTitle = title ? title : " ";55 fTitle = title ? title : "Storage container to store bad pixel information"; 56 56 57 57 fArray = new TClonesArray("MBadPixelsPix", 1); 58 } 59 60 MBadPixelsCam::MBadPixelsCam(const MBadPixelsCam &cam) 61 { 62 fName = "MBadPixelsCam"; 63 fTitle = "Storage container to store bad pixel information"; 64 65 fArray = new TClonesArray("MBadPixelsPix", 1); 66 cam.Copy(*fArray); 58 67 } 59 68 … … 342 351 val = (*this)[idx].GetInfo()[0]; 343 352 return (*this)[idx].IsOK(); 344 break;345 353 case 1: 346 354 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun); 347 355 return val; 348 break;349 356 case 2: 350 357 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt); 351 358 return val; 352 break;353 359 case 3: 354 360 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun); 355 361 return val; 356 break;357 362 case 4: 358 363 val = (*this)[idx].IsHiGainBad(); 359 364 return val; 360 break;361 365 case 5: 362 366 val = (*this)[idx].IsLoGainBad(); 363 367 return val; 364 break;365 368 case 6: 366 369 val = !(*this)[idx].IsCalibrationSignalOK(); 367 370 return val; 368 break;369 371 case 7: 370 372 val = !(*this)[idx].IsCalibrationResultOK(); 371 373 return val; 372 break;373 374 case 8: 374 375 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted); 375 376 return val; 376 break;377 377 case 9: 378 378 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainNotFitted); 379 379 return val; 380 break;381 380 case 10: 382 381 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainOscillating); 383 382 return val; 384 break;385 383 case 11: 386 384 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainOscillating); 387 385 return val; 388 break;389 386 case 12: 390 387 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainSaturation ); 391 388 return val; 392 break;393 389 case 13: 394 390 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal ); 395 391 return val; 396 break;397 392 case 14: 398 393 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeErrNotValid); 399 394 return val; 400 break;401 395 case 15: 402 396 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid); 403 397 return val; 404 break;405 398 case 16: 406 399 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid ); 407 400 return val; 408 break;409 401 case 17: 410 402 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin ); 411 403 return val; 412 break;413 404 case 18: 414 405 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins ); 415 406 return val; 416 break;417 407 case 19: 418 408 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes ); 419 409 return val; 420 break;421 410 case 20: 422 411 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeNotFitted ); 423 412 return val; 424 break;425 413 case 21: 426 414 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeOscillating ); 427 415 return val; 428 break;429 416 default: 430 417 return kFALSE; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h
r3068 r3734 19 19 public: 20 20 MBadPixelsCam(const char *name=NULL, const char *title=NULL); 21 MBadPixelsCam(const MBadPixelsCam &cam); 21 22 ~MBadPixelsCam(); 22 23 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsMerge.cc
r3461 r3734 26 26 // 27 27 // MBadPixelsMerge 28 // =============== 28 29 // 29 30 // Merges in ReInit two bad pixel containers together: … … 33 34 // into the container given in the constructor. While the contents 34 35 // to which 1) refers are still untouched. 36 // 37 // 38 // An explanation taken from Mantis: 39 // -------------------------------- 40 // In my eyes everything works a supposed to do. We have different sources 41 // for bad-pixels, eg from Pedestal calculation, from the calibration 42 // constant calculation, manual setting and so on. If processing data we 43 // have to take care of all this different sources. Therefor we have to 44 // store the bad pixels from this sources (eg. from calibration). In 45 // addition MBadPixelsCam is read from the file containing the data (once 46 // per file). Now always after a new (data-)file has been opened the bad 47 // pixels from (for example) the calibration file have to be merged into 48 // the container loaded from the (data-)file which is stored in the 49 // parameter list. Copying the pointer would totally overwrite the pixels 50 // loaded (automatically by MReadMarsFile) from the data-file. All this is 51 // done using a copy of the original MBadPixelsCam (fSource). In addition 52 // fDest is initialized to the pointer given as argument to the 53 // constructor. To keep track of all bad pixels the instance this pointer 54 // is pointing to is used to collect all bad pixels used so far. 55 // 35 56 // 36 57 // Input Containers: … … 69 90 fTitle = title ? title : fgDefTitle.Data(); 70 91 71 fSource = new MBadPixelsCam; 72 bad->Copy(*fSource); 92 fSource = new MBadPixelsCam(*bad); 73 93 } 74 94 -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r3682 r3734 243 243 MCerPhotAnal2 *nanal = new MCerPhotAnal2; 244 244 MFillH *fill1 = new MFillH(evt1, "MCerPhotEvt", "MFillH1"); 245 MImgCleanStd *clean = new MImgCleanStd ;245 MImgCleanStd *clean = new MImgCleanStd(6.5, 6.5); 246 246 MFillH *fill2 = new MFillH(evt2, "MCerPhotEvt", "MFillH2"); 247 247 MFillH *fill3 = new MFillH(evt3, "MPedPhotCam", "MFillH3"); … … 271 271 272 272 MCalibrate* mccal = new MCalibrate; 273 mccal->SetCalibrationMethod(MCalibrate::kDummy); 273 274 274 275 // MC -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r3374 r3734 190 190 case kRTCalibration: 191 191 return "Calibration"; 192 case kRTPointRun: 193 return "Point-Run"; 192 194 case kRTMonteCarlo: 193 195 return "Monte Carlo"; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r3389 r3734 25 25 kRTPedestal = 0x0001, 26 26 kRTCalibration = 0x0002, 27 kRTPointRun = 0x0007, 27 28 kRTMonteCarlo = 0x0100, 28 29 kRTNone = 0xffff
Note:
See TracChangeset
for help on using the changeset viewer.