- Timestamp:
- 12/19/07 18:53:03 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8794 r8795 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/12/19 Thomas Bretz 22 23 * callisto.cc: 24 - commented out the obsolete unsused code for moon observations 25 26 * mbase/MStatusDisplay.cc: 27 - added (obsolete?) initialization of fBar suggested by valgrind 28 29 * mcalib/MCalibCalcFromPast.cc: 30 - replaced some floats in sums by doubles 31 32 * mextralgo/MExtralgoSpline.[h,cc]: 33 - fixed some typos in a comment 34 - removed the first and obsolete argument (sat) from the 35 Extract member function 36 - initialize x1 and x2 in GetMax as suggested by valgrind 37 (should not be necessary) 38 39 * mhcalib/HCalibLinkDef.h, mhcalib/Makefile: 40 - removed obsolete MHPedestal class 41 42 * mjobs/MJCalibrateSignal.cc: 43 - resorted includes, removed obsolete ones 44 45 * mjobs/MJPedestal.[h,cc]: 46 - resorted includes, removed obsolete ones 47 - removed obsolete fIsUseHists and corresponding code 48 49 * mjobs/MSequence.cc: 50 - allow also NoMoon in addition to No_Moon (which was anyhow 51 printed if Print was called) 52 53 * mpedestal/MExtractPedestal.cc: 54 - replaced a float in a sum-loop by a double 55 56 * mpedestal/MPedestalCam.[h,cc]: 57 - tiny change to Print function 58 - some improvements to comments 59 60 * mpedestal/MPedestalSubtract.cc: 61 - removed an obsolete cast in memcpy 62 - fixed a bug (the *src-ptr was not increased when no pedestal 63 was given) 64 65 * msignal/MExtractTimeAndChargeSpline.cc: 66 - removed the first argument from call to the Extracy function 67 68 20 69 21 70 2007/12/18 Daniela Dorner -
trunk/MagicSoft/Mars/callisto.cc
r8741 r8795 85 85 gLog << " --movie Write a movie in addition to Mode-Y (this might " << endl; 86 86 gLog << " stop the eventloop before all evts are processed)" << endl; 87 gLog << " --moon Force using pedestal fits instead of calculated RMS" << endl;87 // gLog << " --moon Force using pedestal fits instead of calculated RMS" << endl; 88 88 gLog << " --config=callisto.rc Resource file [default=callisto.rc]" << endl; 89 89 gLog << endl; … … 174 174 const Bool_t kMovie = arg.HasOnlyAndRemove("--movie"); 175 175 const Bool_t kDebugMem = arg.HasOnlyAndRemove("--debug-mem"); 176 Bool_t kMoon = arg.HasOnlyAndRemove("--moon");176 // Bool_t kMoon = arg.HasOnlyAndRemove("--moon"); 177 177 Int_t kDebugEnv = arg.HasOnlyAndRemove("--debug-env") ? 1 : 0; 178 178 kDebugEnv = arg.GetIntAndRemove("--debug-env=", kDebugEnv); … … 312 312 PrintFiles(seq, kInpathD, !seq.IsMonteCarlo(), kTRUE); 313 313 314 if (seq.HasMoon())315 kMoon = kTRUE;314 // if (seq.HasMoon()) 315 // kMoon = kTRUE; 316 316 317 317 … … 372 372 job1.SetDisplay(d); 373 373 job1.SetOverwrite(kOverwrite); 374 job1.SetUseHists(kMoon);374 // job1.SetUseHists(kMoon); 375 375 376 376 … … 401 401 job2.SetDisplay(d);; 402 402 job2.SetOverwrite(kOverwrite); 403 job2.SetUseHists(kMoon);403 // job2.SetUseHists(kMoon); 404 404 job2.SetDeadPixelCheck(); 405 405 // job1.SetPathOut(kOutpathC); // not yet needed … … 504 504 job1.SetUseData(); 505 505 job1.SetExtractionFundamental(); 506 job1.SetUseHists(kMoon);506 // job1.SetUseHists(kMoon); 507 507 508 508 if (!job1.Process()) … … 538 538 job2.SetPedestals(job1.GetPedestalCam()); 539 539 job2.SetBadPixels(job1.GetBadPixels()); 540 job2.SetUseHists(kMoon);540 // job2.SetUseHists(kMoon); 541 541 542 542 // Please check the Changelog of 2005/04/20 about further deatils of the next comment … … 593 593 job3.SetPedestals(job1.GetPedestalCam()); 594 594 job3.SetBadPixels(job1.GetBadPixels()); 595 job3.SetUseHists(kMoon);595 // job3.SetUseHists(kMoon); 596 596 597 597 if (!job3.Process()) -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r8746 r8795 685 685 // 686 686 MStatusDisplay::MStatusDisplay(Int_t w, Int_t h, Long_t t) 687 : TGMainFrame(NULL, 1, 1), fName("MStatusDisplay"), fLog(&gLog), f Tab(NULL), fTimer(this, t, kTRUE), fStatus(kLoopNone), fLogIdx(-1), fLogTimer(this, 250, kTRUE), fLogBox(NULL), fIsLocked(0)687 : TGMainFrame(NULL, 1, 1), fName("MStatusDisplay"), fLog(&gLog), fBar(NULL), fTab(NULL), fTimer(this, t, kTRUE), fStatus(kLoopNone), fLogIdx(-1), fLogTimer(this, 250, kTRUE), fLogBox(NULL), fIsLocked(0) 688 688 { 689 689 // p==NULL means: Take gClient->GetRoot() if not in batch mode -
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r8452 r8795 414 414 Bool_t MCalibCalcFromPast::UpdateMeanPhes() 415 415 { 416 Float_t sumw = 0.;417 Float_t sum = 0.;416 Double_t sumw = 0.; 417 Double_t sum = 0.; 418 418 419 419 for (Int_t i=0; i<fPhes.GetSize(); i++) -
trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc
r8549 r8795 76 76 static MArrayF lut; 77 77 78 // If the lut is not et large enoughresize and reclaculate78 // If the lut is not yet large enough: resize and reclaculate 79 79 if (fNum>(Int_t)lut.GetSize()) 80 80 { … … 246 246 } 247 247 248 void MExtralgoSpline::Extract( Byte_t sat,Int_t maxbin, Bool_t width)248 void MExtralgoSpline::Extract(Int_t maxbin, Bool_t width) 249 249 { 250 250 fSignal = 0; -
trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.h
r8549 r8795 262 262 // Find analytical maximum in the bin i in the interval [min,max[ 263 263 264 Double_t x1, x2; 264 Double_t x1=-1; // This initialisation should not really be 265 Double_t x2=-1; // necessary but makes valgriund happy. 266 265 267 if (!EvalDerivEq0(i, x1, x2)) 266 268 return kFALSE; … … 318 320 319 321 Float_t ExtractNoise(/*Int_t iter*/); 320 void Extract( Byte_t sat,Int_t maxpos, Bool_t width=kFALSE);322 void Extract(Int_t maxpos, Bool_t width=kFALSE); 321 323 322 324 Float_t EvalAt(const Float_t x) const; -
trunk/MagicSoft/Mars/mhcalib/HCalibLinkDef.h
r8300 r8795 14 14 #pragma link C++ class MHCalibrationRelTimeCam+; 15 15 #pragma link C++ class MHCalibrationTestCam+; 16 #pragma link C++ class MHCalibrationTestTimeCam+; 17 #pragma link C++ class MHCalibrationPulseTimeCam+; 16 18 //#pragma link C++ class MHCalibrationHiLoCam+; 17 19 //#pragma link C++ class MHCalibrationHiLoPix+; 18 #pragma link C++ class MHCalibrationPulseTimeCam+; 19 #pragma link C++ class MHPedestalCam+; 20 #pragma link C++ class MHPedestalPix+; 21 #pragma link C++ class MHCalibrationTestTimeCam+; 20 //#pragma link C++ class MHPedestalCam+; 21 //#pragma link C++ class MHPedestalPix+; 22 22 23 23 #pragma link C++ class MHGausEvents+; -
trunk/MagicSoft/Mars/mhcalib/Makefile
r8300 r8795 42 42 MHCalibrationTestCam.cc \ 43 43 MHCalibrationPulseTimeCam.cc \ 44 MHPedestalCam.cc \45 MHPedestalPix.cc \46 44 MHCalibrationTestTimeCam.cc \ 47 45 MHGausEvents.cc 46 47 # MHPedestalCam.cc \ 48 # MHPedestalPix.cc \ 48 49 49 50 ############################################################ -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8790 r8795 40 40 #include <TFile.h> 41 41 42 // Core 42 43 #include "MLog.h" 43 44 #include "MLogManip.h" 44 45 45 46 #include "MDirIter.h" 46 #include "M RunIter.h"47 #include "MTaskList.h" 47 48 #include "MParList.h" 48 #include "MTaskList.h"49 49 #include "MEvtLoop.h" 50 50 51 51 #include "MStatusDisplay.h" 52 52 53 // General containers 53 54 #include "MGeomCam.h" 55 #include "MBadPixelsCam.h" 56 #include "MCalibConstCam.h" 57 #include "MPedestalCam.h" 58 #include "MArrivalTimeCam.h" 59 60 // General histograms 54 61 #include "MHCamEvent.h" 55 #include "MPedestalCam.h" 56 #include "MBadPixelsCam.h" 57 #include "MArrivalTimeCam.h" 58 62 #include "MHVsTime.h" 63 64 // Calibration containers 59 65 #include "MCalibrationQECam.h" 60 66 #include "MCalibrationBlindCam.h" … … 62 68 #include "MCalibrationRelTimeCam.h" 63 69 #include "MCalibrationChargePINDiode.h" 64 #include "MCalibrationPatternDecode.h" 65 66 #include "MCalibrationChargeCalc.h" 67 #include "MCalibrationRelTimeCalc.h" 68 69 #include "MCalibConstCam.h" 70 70 71 // Calibration histograms 71 72 #include "MHCalibrationChargeCam.h" 72 73 #include "MHCalibrationChargeBlindCam.h" 73 74 #include "MHCalibrationChargePINDiode.h" 74 75 #include "MHCalibrationRelTimeCam.h" 75 #include "MHCalibrationPulseTimeCam.h" 76 #include "MHVsTime.h" 77 #include "MHCamera.h" 78 79 #include "MCalibCalcFromPast.h" 80 76 77 // Tasks 81 78 #include "MReadMarsFile.h" 82 79 #include "MRawFileRead.h" 80 #include "MTaskEnv.h" 83 81 #include "MContinue.h" 82 #include "MFillH.h" 83 #include "MGeomApply.h" 84 #include "MExtractTimeAndCharge.h" 84 85 #include "MTriggerPatternDecode.h" 85 #include "M FTriggerPattern.h"86 #include "M FDataPhrase.h"87 #include "M FilterList.h"88 #include "M GeomApply.h"86 #include "MCalibrationPatternDecode.h" 87 #include "MCalibrationChargeCalc.h" 88 #include "MCalibrationRelTimeCalc.h" 89 #include "MCalibCalcFromPast.h" 89 90 #include "MPedestalSubtract.h" 90 #include "MPointingPosCalc.h"91 91 #include "MPedCalcFromLoGain.h" 92 #include "MPedestalSubtract.h" 93 #include "MExtractor.h" 94 #include "MExtractTimeAndCharge.h" 92 #include "MCalibrateData.h" 95 93 #include "MExtractPINDiode.h" 96 94 #include "MExtractBlindPixel.h" 97 #include "MFCosmics.h"98 #include "MTaskEnv.h"99 #include "MCalibrateData.h"100 95 #include "MCalibrateRelTimes.h" 101 96 #include "MBadPixelsCalc.h" 102 97 #include "MBadPixelsTreat.h" 103 #include "MFillH.h"104 98 #include "MWriteRootFile.h" 105 99 100 // Filter 101 #include "MFTriggerPattern.h" 102 #include "MFCosmics.h" 103 #include "MFilterList.h" 104 #include "MFDataPhrase.h" 105 106 // Classes for writing movies 106 107 #include "MFEvtNumber.h" 107 108 #include "MMoviePrepare.h" 108 109 #include "MMovieWrite.h" 109 110 #include "MImgCleanStd.h" 111 110 112 111 113 ClassImp(MJCalibrateSignal); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8788 r8795 41 41 // root classes 42 42 #include <TF1.h> 43 #include <TLine.h> 44 #include <TLatex.h> 45 #include <TLegend.h> 46 43 47 #include <TEnv.h> 44 48 #include <TFile.h> 45 #include <TLine.h>46 #include <TLatex.h>47 #include <TString.h>48 #include <TCanvas.h>49 #include <TSystem.h>50 #include <TLegend.h>51 #include <TPad.h>52 #include <TEnv.h>53 #include <TH2F.h>54 49 55 50 // mars core … … 74 69 #include "MPedestalPix.h" 75 70 71 //#include "MHPedestalPix.h" 76 72 #include "MCalibrationPix.h" 77 #include "MHPedestalPix.h"78 73 #include "MHCalibrationPulseTimeCam.h" 79 74 #include "MCalibrationPulseTimeCam.h" … … 92 87 #include "MFTriggerPattern.h" 93 88 #include "MBadPixelsCalc.h" 94 95 #include "MPedPhotCam.h"96 #include "MPedPhotPix.h"97 #include "MPedestalCam.h"98 #include "MPedestalPix.h"99 89 #include "MPedestalSubtract.h" 100 90 … … 121 111 : fExtractor(NULL), fDisplayType(kDisplayDataCheck), 122 112 fExtractType(kUsePedRun), fExtractionType(kFundamental), 123 fIsUseHists(kFALSE),fDeadPixelCheck(kFALSE), fMinEvents(50)113 /*fIsUseHists(kFALSE),*/ fDeadPixelCheck(kFALSE), fMinEvents(50) 124 114 { 125 115 fName = name ? name : "MJPedestal"; … … 337 327 } 338 328 339 #if 0 329 /* 340 330 if (fIsUseHists) 341 331 { … … 353 343 disp5.CamDraw(c4, 2, 2, 5); 354 344 355 /* 356 TCanvas &c5 = fDisplay->AddTab("Difference Hist."); 357 c5.Divide(2,3); 358 359 disp6.CamDraw(c5, 1, 2, 1); 360 disp7.CamDraw(c5, 2, 2, 5); 361 */ 345 //TCanvas &c5 = fDisplay->AddTab("Difference Hist."); 346 //c5.Divide(2,3); 347 // 348 //disp6.CamDraw(c5, 1, 2, 1); 349 //disp7.CamDraw(c5, 2, 2, 5); 362 350 363 351 TCanvas &c6 = fDisplay->AddTab("Difference Calc."); … … 368 356 return; 369 357 } 370 #endif 358 */ 371 359 if (fDisplayType == kDisplayDataCheck) 372 360 { … … 785 773 } 786 774 787 788 if (HasEnv("UseHists")) 789 if (GetEnv("UseHists",kFALSE)) 790 fIsUseHists = kTRUE; 791 775 // fIsUseHists = GetEnv("UseHists", fIsUseHists); 776 792 777 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); 793 778 … … 844 829 Int_t MJPedestal::PulsePosCheck(const MParList &plist) const 845 830 { 831 /* 846 832 if (fIsPixelCheck) 847 833 { … … 853 839 } 854 840 } 855 841 */ 856 842 if (!fIsPulsePosCheck) 857 843 return kTRUE; … … 869 855 MCalibrationPulseTimeCam *cam = NULL; 870 856 if (!fSequence.IsMonteCarlo()) 871 { 857 { /* 872 858 if (fIsPixelCheck) 873 859 { … … 885 871 gPad->SaveAs(Form("%s/PulsePosTest_Pixel%04d.root",fPathOut.Data(),fCheckedPixId)); 886 872 } 887 873 */ 888 874 cam = (MCalibrationPulseTimeCam*)plist.FindObject("MCalibrationPulseTimeCam"); 889 875 if (!cam) … … 1066 1052 pedlogain.SetPedestalUpdate(kFALSE); 1067 1053 1068 MHPedestalCam hpedcam;1069 hpedcam.SetPedestalsOut(&fPedestalCamOut);1070 if (fExtractionType != kFundamental)1071 hpedcam.SetRenorm(kTRUE);1054 // MHPedestalCam hpedcam; 1055 // hpedcam.SetPedestalsOut(&fPedestalCamOut); 1056 // if (fExtractionType != kFundamental) 1057 // hpedcam.SetRenorm(kTRUE); 1072 1058 1073 1059 // To have it in the parlist for MEnv! … … 1172 1158 break; 1173 1159 } 1174 1160 /* 1175 1161 if (fIsUseHists && fExtractor) 1176 1162 { … … 1188 1174 plist.AddToList(&hpedcam); 1189 1175 } 1190 1176 */ 1191 1177 pedcalc.SetPedestalsOut(&fPedestalCamOut); 1192 1178 pedlogain.SetPedestalsOut(&fPedestalCamOut); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r8788 r8795 71 71 Int_t fExtractionType; // Flag if the extractor is used to calculate the pedestals 72 72 73 Bool_t fIsUseHists; // Switch on histogramming or not73 // Bool_t fIsUseHists; // Switch on histogramming or not 74 74 Bool_t fDeadPixelCheck; // Should the dead pixel check be done? 75 75 … … 113 113 void SetExtractor(MExtractor* ext); 114 114 void SetUseData() { fExtractType = kUseData; } 115 void SetUseHists( const Bool_t b=kTRUE) { fIsUseHists = b; }115 // void SetUseHists( const Bool_t b=kTRUE) { fIsUseHists = b; } 116 116 void SetDeadPixelCheck(const Bool_t b=kTRUE) { fDeadPixelCheck = b; } 117 117 void SetUsePedRun() { fExtractType = kUsePedRun; } -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r8780 r8795 406 406 if (!str.CompareTo("No_Moon", TString::kIgnoreCase)) 407 407 return kNoMoon; 408 if (!str.CompareTo("NoMoon", TString::kIgnoreCase)) 409 return kNoMoon; 408 410 if (!str.CompareTo("Twilight", TString::kIgnoreCase)) 409 411 return kTwilight; -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r8788 r8795 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.3 7 2007-12-14 09:56:03tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.38 2007-12-19 18:53:02 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 749 749 (*fPedestalsInter)[idx].Set(sum, 0, 0, fNumEventsUsed[idx]); 750 750 751 const Float_t sqrsum = sum*sum;751 const Double_t sqrsum = sum*sum; 752 752 753 753 fSumx[idx] += sum; -
trunk/MagicSoft/Mars/mpedestal/MPedestalCam.h
r8788 r8795 24 24 25 25 UInt_t fNumSlices; // Total number of slices 26 UInt_t fNumEvents; // Number of events used for pedestal calculation 26 UInt_t fNumEvents; // Number of events used for pedestal calculation (be careful, it has no predefined meaning!) 27 27 28 28 void PrintArr(const TCollection &list) const; -
trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.cc
r8633 r8795 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1. 8 2007-07-14 00:02:24tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1.9 2007-12-19 18:53:03 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 132 132 { 133 133 if (fRawEvt->GetNumBytesPerSample()==2) 134 memcpy( (UShort_t*)dest, src, cnt*2);134 memcpy(dest, src, cnt*2); 135 135 else 136 136 { … … 186 186 { 187 187 while (beg<end) 188 *beg++ = *src ;//Float_t(*src++)/scale;188 *beg++ = *src++;//Float_t(*src++)/scale; 189 189 continue; 190 190 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r8679 r8795 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1. 69 2007-08-19 21:40:03 tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.70 2007-12-19 18:53:03 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 346 346 } 347 347 348 s.Extract( sat,maxpos);348 s.Extract(maxpos); 349 349 s.GetTime(time, dtime); 350 350 s.GetSignal(sum, dsum); … … 369 369 } 370 370 371 s.Extract( sat,maxpos);371 s.Extract(maxpos); 372 372 s.GetTime(time, dtime); 373 373 s.GetSignal(sum, dsum);
Note:
See TracChangeset
for help on using the changeset viewer.