Changeset 717 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 04/03/01 13:28:36 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.cc
r716 r717 156 156 157 157 if (val > 0.0) 158 (*fPedest)[i].Set Sigma(val);158 (*fPedest)[i].SetMeanRms(val); 159 159 } 160 160 } … … 188 188 189 189 if (nphot > 0.0) 190 fNphot->AddPixel(i, nphot, (*fPedest)[i].Get Sigma());190 fNphot->AddPixel(i, nphot, (*fPedest)[i].GetMeanRms()); 191 191 } 192 192 -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r698 r717 65 65 66 66 const Float_t nphot = (Float_t)pixel.GetSumHiGainFadcSamples() - ped.GetMean(); 67 fCerPhotEvt->AddPixel(pixid, nphot, 0); 67 68 fCerPhotEvt->AddPixel(pixid, nphot, ped.GetMeanRms()); 68 69 69 70 // FIXME! Handling of Lo Gains is missing! -
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc
r716 r717 18 18 // the default constructor 19 19 // 20 21 20 *fName = name ? name : "MImgCleanStd"; 22 21 *fTitle = title ? title : "Task which does a standard image cleaning"; 22 23 *fLog << "Cleaning initialized. Using noise level " << lvl1 << " and " << lvl2 << endl; 23 24 } 24 25 … … 44 45 const Float_t noise = pix.GetErrorPhot(); 45 46 46 if (entry < fCleanLvl1 * noise ) 47 // COBB: '<=' to skip entry=noise=0 48 if (entry <= fCleanLvl1 * noise ) 47 49 pix.SetPixelUnused(); 48 50 } … … 113 115 pix.SetCorePixel(); 114 116 } 115 116 117 } 117 118 … … 124 125 // 125 126 const Int_t entries = fEvt->GetNumPixels(); 126 127 127 for (Int_t i=0; i<entries; i++) 128 128 { … … 174 174 } 175 175 } 176 176 177 } 177 178 -
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
r698 r717 41 41 Bool_t MMcPedestalCopy::Process() 42 42 { 43 fPedestals->InitSize(fMcPedestals->GetNumPixel());43 const int num = fMcPedestals->GetNumPixel(); 44 44 45 for (int i=0; i<MFADC_CHANNELS; i++) 45 fPedestals->InitSize(num); 46 47 for (int i=0; i<num; i++) 46 48 { 47 49 MPedestalPix &pix = (*fPedestals)[i]; 48 50 49 pix.SetPedestal(fMcPedestals->GetPedestal(i), 0); 50 pix.SetPedestalRms(fMcPedestals->GetPedestalRms(i), 0); 51 const Float_t pedest = fMcPedestals->GetPedestal(i); 52 const Float_t pedrms = fMcPedestals->GetPedestalRms(i); 53 54 const Float_t sigma = pedest*sqrt(num); 55 const Float_t sigrms = sigma/sqrt(2*num); 56 57 pix.SetPedestal(pedest, sigma); 58 pix.SetPedestalRms(pedrms, sigrms); 59 60 *fLog << pedest << " " << sigma << " " << pedrms << " " << sigrms << endl; 51 61 } 52 62
Note:
See TracChangeset
for help on using the changeset viewer.