- Timestamp:
- 01/30/04 15:39:47 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2990 r2991 55 55 with rnd = R * (r2-r1)/2 to make sure that we cannot 56 56 devide by 0 57 58 * manalysis/MPedCalcPedRun.cc: 59 - added some comments 57 60 58 61 -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r2971 r2991 30 30 // MPedCalcPedRun 31 31 // 32 // This task takes a pedestal run file and fills MPedestalCam during 33 // the Process() with the pedestal and rms computed in an event basis. 34 // In the PostProcess() MPedestalCam is finally filled with the pedestal 35 // mean and rms computed in a run basis. 36 // More than one run (file) can be merged 37 // 32 // This task takes a pedestal run file and fills MPedestalCam during 33 // the Process() with the pedestal and rms computed in an event basis. 34 // In the PostProcess() MPedestalCam is finally filled with the pedestal 35 // mean and rms computed in a run basis. 36 // More than one run (file) can be merged 37 // 38 // 39 // Actually, MPedCalcPedRun applies the following formula (1): 40 // 41 // PedRMS = Sqrt( (sum(x_i2) - sum(x_i)/n) / n-1 / 14 ) 42 // 43 // where x_i is the sum of 14 FADC slices and sum means the sum over all 44 // events, n is the number of events. 45 // 46 // For a high number of events, this formula is equivalent to formula (2): 47 // 48 // PedRMS = Sqrt( (<x_i*x_i> - <x_i>*<x_i>*n) / 14 ) 49 // 50 // where <> is the mean over all events and x_i again the sum over the 14 51 // slices. 52 // 53 // If you assume statistical equivalence of all slices (say, all have equal 54 // offset and are not correlated and fluctuate Gaussian), it should also be 55 // equivalent to (old formula) (3): 56 // 57 // PedRMS = Sqrt( (<p_i*p_i> - <p_i>*<p_i>*m) / m ) * Sqrt(14) 58 // 59 // which is the RMS of a single slice (p_i) with m being the total number of 60 // measurements, i.e. m = n*14, later re-scaled to the number of used slices 61 // (the factor sqrt(14)). 62 // 63 // If we assume that at least our pairs fluctuate independently and Gaussian, 64 // then we can use the actual formula (1) in order to get what you call 65 // fluctuations of pairs by the transformation: 66 // 67 // PedRMS/pair = PedRMS (form. (3)) / Sqrt(7) 68 // 69 // (However, we know that our slice-to-slice fluctuations are not Gaussian 70 // (and moreover asymmetric) and that they are also correlated.) 71 // 72 // We could still measure also the pair-to-pair fluctuations and add another 73 // value to be investigated. What do you think? 74 // 75 // 38 76 // Input Containers: 39 77 // MRawEvtData
Note:
See TracChangeset
for help on using the changeset viewer.