Changeset 7033
- Timestamp:
- 05/13/05 19:26:28 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7031 r7033 51 51 - integration ranges were shifted by 0.2 FADC slices to the right. 52 52 Fixed in the new algorithm according to Markus' change. 53 54 * mcalib/MCalibrationChargeCalc.h: 55 - Incremented ClassVersion number by 1 56 57 * mhcalib/MHCalibrationPulseTimeCam.cc: 58 - removed a commented debug output 59 60 * mjobs/MJCalibration.cc 61 - new undocumented adjust of "Unsuitable"- and "Unreliable"-displays 62 for new exclusion criteria taken from bcn 63 64 * manalysis/MEventRateCalc.cc: 65 - some fixes. In some cases the event rate wasn't calculated 66 anymore 67 68 * mbadpixels/MBadPixelsCalc.cc: 69 - fixed a bug when checking whether the check should be done 70 or not (>0 was missing) 71 72 * mhist/Makefile: 73 - added MHWeather 74 75 * mhvstime/MHVsTime.[h,cc]: 76 - implemented new function the set minimum 77 78 * mjobs/MJStar.cc: 79 - read weather data (CC tree) 80 - set minimum of rate-display to 0 81 - display weather data for non-MC files 82 83 * mmuon/MHSingleMuon.cc: 84 - slight change to a comment 85 86 87 88 2005/05/13 Markus Gaug (2005/05/12) 89 90 * msignal/MExtractTimeAndChargeDigitalFilter.cc 91 - set default extraction range in the high gain to 4. 92 - set default weights file to cosmics_weights46.dat 93 94 * mhcalib/MHCalibrationHiLoCam.cc 95 - set Oscillations to kFALSE 96 97 * mhcalib/MHCalibrationChargeCam.cc 98 - set default for fNumHiGainSaturationLimit to 0.15 99 100 * mjobs/MJCalibrateSignal.[h,cc] 101 - put MHCalibrationHiLoCam and MHCalibrationPulseTimeCam directly 102 into tasklist if needed. Otherwise, it does not read the 103 resources from the config. file. 104 105 106 2005/05/11 Markus Gaug (2005/05/11) 107 108 * mjobs/MJPedestal.cc 109 - adjust the fit ranges for the histogramming with moon data slightly. 110 111 * mcalib/MCalibrationChargeCam.cc, mcalib/MCalibrationChargeCalc.cc 112 - make a distinction between newly excluded pixels (by calibration) 113 and previously excluded pixels in the displays and print-functions 114 115 * mcalib/MCalibrationChargeCalc.cc 116 - introduce the check for fluctuating arrival times. 117 - set charge limit to from 2.5 to 4.5 118 - introduce asymmetric exclusion due to "deviating number of phes": 119 Default: -9.0 +4.5 120 - make deviating number of phes unsuitable (see David's findings). 121 122 * mbadpixels/MBadPixelsPix.h 123 - add kDeviatingNumPhes to function GetUnsuitableCalLevel() 53 124 54 125 -
trunk/MagicSoft/Mars/NEWS
r7029 r7033 108 108 Default: -9.0 +4.5 109 109 + make deviating number of phes unsuitable (see David's findings). 110 111 - The weather data is now displayed in star 110 112 111 113 -
trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
r6985 r7033 172 172 const UInt_t cnt = n1<n2 ? n : n1-n2; 173 173 174 if (cnt<n/10)175 return kTRUE;176 177 178 // Calculate the rate179 const Double_t rate = (Double_t)cnt/(fTimes[n1%n]-fTimes[n2%n]);180 181 174 // Store the time difference between two consecutive events 182 175 fTimeDiff->SetVal(exec==0 ? -1 : fTimes[n1%n] - fTimes[(n1+n-1)%n]); … … 185 178 // Make sure, that the beginning of data-takeing (open 186 179 // a new file) doesn't effect the rate too much 187 if (exec<fNumFirstEvent+n) 188 { 189 fRate->SetRate(-1, 0); 180 if (cnt<n/10) 190 181 return kTRUE; 191 } 182 183 // Calculate the rate 184 const Double_t rate = (Double_t)cnt/(fTimes[n1%n]-fTimes[n2%n]); 192 185 193 186 // Store the rate … … 195 188 fRate->SetReadyToSave(); 196 189 197 Double_t diff = fTimes[n1%n]- fTimes[n2%n]; 198 Double_t time = fTimes[n2%n]+ (cnt-n/10.)/(n-n/10.)*diff/2; 190 // Calculate and store the corresponding time 191 const Double_t diff = fTimes[n1%n] - fTimes[n2%n]; 192 const Double_t time = fTimes[n2%n] + (cnt-n/10.)/(n-n/10.)*diff/2; 199 193 200 194 fTimeRate->SetMean(time, time); 201 202 //if (cnt>1000) 203 //*fLog << all << *fTimeRate << " " << *fTime << " " << diff << " " << cnt << " " << n << " " << (float)(cnt-n/2)/n << endl; 204 195 fTimeRate->SetReadyToSave(); 196 197 /* 205 198 // Store the corresponding time 206 199 if (exec==fNumFirstEvent+n) … … 208 201 else 209 202 fTimeRate->SetMean(fTimes[n1%n], fTimes[n2%n]); 203 */ 210 204 211 205 return kTRUE; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
r6948 r7033 208 208 209 209 //Calculate the corrected means: 210 211 210 if (rms<=0.5*meanrms[aidx] || rms>=1.5*meanrms[aidx]) 212 211 continue; … … 254 253 const Byte_t aidx = (*fGeomCam)[i].GetAidx(); 255 254 256 if ((fPedestalLevel< 0 || (rms>lolim1[aidx] && rms<=uplim1[aidx])) &&257 (fPedestalLevelVariance< 0 || (rms>lolim2[aidx] && rms<=uplim2[aidx])))255 if ((fPedestalLevel<=0 || (rms>lolim1[aidx] && rms<=uplim1[aidx])) && 256 (fPedestalLevelVariance<=0 || (rms>lolim2[aidx] && rms<=uplim2[aidx]))) 258 257 continue; 259 258 … … 261 260 bads++; 262 261 } 263 264 262 265 263 // Check if the number of pixels to blind is > 60% of total number of pixels … … 280 278 Int_t MBadPixelsCalc::Process() 281 279 { 282 if (fPedestalLevel>0 || fPedestalLevelVariance) 283 { 280 if (fPedestalLevel>0 || fPedestalLevelVariance>0) 284 281 CheckPedestalRms(); 285 //fPedPhotCam->ReCalc(*fGeomCam, fBadPixels);286 }287 282 288 283 return kTRUE; -
trunk/MagicSoft/Mars/mhist/HistLinkDef.h
r6881 r7033 10 10 #pragma link C++ class MHEvent+; 11 11 #pragma link C++ class MHCamEvent+; 12 #pragma link C++ class MHCamEventRot+; 12 13 #pragma link C++ class MHTriggerLvl0+; 13 14 … … 19 20 #pragma link C++ class MHCamera+; 20 21 21 #pragma link C++ class MH CamEventRot+;22 #pragma link C++ class MHWeather+; 22 23 23 24 #endif -
trunk/MagicSoft/Mars/mhist/Makefile
r6884 r7033 21 21 INCLUDES = -I. -I../mbase -I../mhbase -I../mraw -I../manalysis \ 22 22 -I../mgui -I../mgeom -I../mdata -I../mfilter -I../mimage \ 23 -I../mmain -I../mmc -I../mreflector -I../mpointing \ 24 -I../mastro -I../mpedestal -I../msignal -I../mbadpixels \ 25 -I../mcalib 23 -I../mpointing -I../mmc -I../mastro -I../msignal \ 24 -I../mbadpixels -I../mcalib -I../mreport 26 25 27 26 SRCFILES = MHEvent.cc \ … … 34 33 MHHadronness.cc \ 35 34 MHTriggerLvl0.cc \ 36 MHCamera.cc 35 MHCamera.cc \ 36 MHWeather.cc 37 37 38 38 ############################################################ -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc
r5756 r7033 121 121 // -------------------------------------------------------------------------- 122 122 // 123 // Call SetMinimum of fGraph 124 // 125 void MHVsTime::SetMinimum(Double_t min) 126 { 127 if (fGraph) 128 fGraph->SetMinimum(0); 129 } 130 131 // -------------------------------------------------------------------------- 132 // 123 133 // Return the data members used by the data chain to be used in 124 134 // MTask::AddBranchToList … … 151 161 fGraph->SetPoint(0, 0, 0); // Dummy point! 152 162 fGraph->SetEditable(); // Used as flag: First point? yes/no 153 154 163 155 164 TString title(fData ? GetRule() : (TString)"Graph"); -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.h
r4891 r7033 45 45 46 46 void SetScale(Double_t scale) { fScale = scale; } 47 void SetMinimum(Double_t min=-1111); 47 48 48 49 Int_t GetNbins() const; -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7018 r7033 193 193 readreal.AddTree("Events", "MTime.", kTRUE); 194 194 readreal.AddTree("Drive"); 195 readreal.AddTree("CC"); 195 196 //read.AddTree("Trigger"); 196 197 //read.AddTree("Camera"); 197 //read.AddTree("CC");198 198 //read.AddTree("Currents"); 199 199 readreal.AddFiles(iter); … … 260 260 hvs.SetTitle("Rate per 500 events;;R [Hz]"); 261 261 hvs.SetNumEvents(500); 262 hvs.SetMinimum(0); 262 263 263 264 //MContinue cont1("MEventRate2.fRate/MEventRate.fRate>1.1"); … … 423 424 // ------------------------------------------------------------ 424 425 426 MFillH fillw("MHWeather", "MTimeCC", "FillWeather"); 425 427 //tlist2.AddToList(&fill6); 426 428 //tlist2.AddToList(&fill7); … … 432 434 tlist.AddToList(&pcalc, ismc ? "Events" : "Drive"); 433 435 tlist.AddToList(&tlist2, "Events"); 436 if (!ismc) 437 tlist.AddToList(&fillw, "CC"); 434 438 tlist.AddToList(&write); 435 439 -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r7009 r7033 204 204 fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons()); 205 205 206 // use only the inner pixles. This is geometry dependent. This has to 207 // be fixed! 206 // use only the inner pixles. FIXME: This is geometry dependent 208 207 if(i>397) 209 208 continue;
Note:
See TracChangeset
for help on using the changeset viewer.