- Timestamp:
- 04/29/05 12:39:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6980 r6985 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/04/29 Thomas Bretz 25 26 * manalysis/MEventRateCalc.cc: 27 - fixed jumps when a new run is initiated 28 - set as time a time which represents the starting point 29 of the calculation interval in all cases 30 31 32 33 2005/04/28 Thomas Bretz 34 35 * manalysis/MMultiDimDistCalc.[h,cc]: 36 - replaced MHadronness by MParameterD 37 38 * mhflux/MHEnergyEst.cc: 39 - removed obsolete include of MEnergyEst 40 41 * mmuon/MHMuonPar.cc: 42 - fixed a type in an axis label 43 44 23 45 24 46 2005/04/27 Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r6980 r6985 43 43 different results with different compiler optimiztaion options 44 44 due to rounding errors. 45 46 - MEventRateCalc handles the calculation of the event rate more 47 accurate now in case of the start of a new run inside a sequence 45 48 46 49 -
trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
r6455 r6985 155 155 Int_t MEventRateCalc::Process() 156 156 { 157 const ULong_t exec = GetNumExecutions()- 1;157 const ULong_t exec = GetNumExecutions()-fNumFirstEvent-1; 158 158 159 159 //*fLog << all << fNumFirstEvent << " " << exec << endl; … … 172 172 const UInt_t cnt = n1<n2 ? n : n1-n2; 173 173 174 if (cnt<n/10) 175 return kTRUE; 176 177 174 178 // Calculate the rate 175 179 const Double_t rate = (Double_t)cnt/(fTimes[n1%n]-fTimes[n2%n]); … … 190 194 fRate->SetRate(exec>1?rate:0, cnt); 191 195 fRate->SetReadyToSave(); 196 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; 199 200 fTimeRate->SetMean(time, time); 201 202 //if (cnt>1000) 203 //*fLog << all << *fTimeRate << " " << *fTime << " " << diff << " " << cnt << " " << n << " " << (float)(cnt-n/2)/n << endl; 192 204 193 205 // Store the corresponding time -
trunk/MagicSoft/Mars/mjobs/MJCalib.cc
r6913 r6985 44 44 // Sets: 45 45 // - fDataFlag to kIsUseRootData 46 // - fRuns to NULL47 46 // - fCheckedPixId to fgCheckedPixId 48 47 // - fPixelCheck to kFALSE … … 51 50 MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fStorage(0), 52 51 fIsPixelCheck(kFALSE), fIsPulsePosCheck(kFALSE), 53 fIsHiLoCalibration(kFALSE), 54 fRuns(NULL) 52 fIsHiLoCalibration(kFALSE) 55 53 { 56 54 SetUseBlindPixel(kFALSE); -
trunk/MagicSoft/Mars/mjobs/MJCalib.h
r6913 r6985 48 48 Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains 49 49 50 MRunIter *fRuns; // Data files, only used for test applications, default is sequence files!51 52 50 Bool_t CheckEnvLocal(); 53 51 Byte_t GetDataFlag() { return fDataFlag; } … … 59 57 60 58 MJCalib(); 61 62 void SetInput(MRunIter *iter) { fRuns = iter; }63 59 64 60 Bool_t IsUseRawData() const { return fDataFlag==kIsUseRawData; }
Note:
See TracChangeset
for help on using the changeset viewer.