Changeset 2893
- Timestamp:
- 01/23/04 16:13:57 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r2878 r2893 153 153 fSignals->Clear(); 154 154 155 UInt_t satlo=0; 156 155 157 while (pixel.Next()) 156 158 { … … 196 198 Byte_t maxlo = 0; 197 199 Byte_t midlo = 0; 198 200 199 201 for (ptr=first;ptr<last;ptr++) 200 202 { … … 208 210 sumLo += *ptr; 209 211 210 211 satLo++;212 if (*ptr >= fSaturationLimit) 213 satLo++; 212 214 } 213 215 214 216 if (satLo) 215 *fLog << warn << "WARNING: Saturation of Lo Gain reached in " 216 << satLo << " time slices in pixel " << pixid << endl; 217 satlo++; 217 218 218 219 pix.SetExtractedSignal((Float_t)sumHi - pedes*(Float_t)fNumHiGainSamples, … … 231 232 } /* while (pixel.Next()) */ 232 233 234 if (satlo) 235 *fLog << warn << "WARNING - Lo Gain saturated in " << satlo << " pixels." << endl; 236 233 237 234 238 fSignals->SetReadyToSave(); -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r2805 r2893 1548 1548 TCanvas *c; 1549 1549 while ((c=(TCanvas*)Next())) 1550 DrawClonePad(AddTab(c->GetName()), *c); 1550 if (!GetCanvas(c->GetName())) 1551 DrawClonePad(AddTab(c->GetName()), *c); 1551 1552 1552 1553 *fLog << inf << "MStatusDisplay: Key " << name << " with " << n << " keys read from file." << endl; -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r2885 r2893 161 161 nphotErr = TMath::Sqrt(nphotErr); 162 162 163 fCerPhotEvt->AddPixel(pixid, nphot, nphotErr);163 MCerPhotPix *cpix = fCerPhotEvt->AddPixel(pixid, nphot, nphotErr); 164 164 165 165 if (sig.GetNumLoGainSaturated() > 0) 166 (*fCerPhotEvt)[pixid].SetPixelSaturated();166 cpix->SetPixelSaturated(); 167 167 } 168 168 -
trunk/MagicSoft/Mars/mcamera/MCameraDC.cc
r2632 r2893 52 52 // -------------------------------------------------------------------------- 53 53 // 54 // Print the hillas Parameters to *fLog54 // Print the dc currents 55 55 // 56 56 void MCameraDC::Print(Option_t *) const … … 62 62 } 63 63 64 // -------------------------------------------------------------------------- 65 // 66 // Return the minimum dc current 67 // 64 68 Float_t MCameraDC::GetMin() const 65 69 { … … 70 74 } 71 75 76 // -------------------------------------------------------------------------- 77 // 78 // Return the maximum dc current 79 // 72 80 Float_t MCameraDC::GetMax() const 73 81 { -
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r2816 r2893 97 97 MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam"); 98 98 if (!cam) 99 *fLog << warn << GetDescriptor() << ": No MGeomCam found." << endl; 99 { 100 *fLog << err << GetDescriptor() << ": No MGeomCam found." << endl; 101 return kFALSE; 102 } 100 103 101 104 if (fSum) … … 114 117 fRms = new MHCamera(*cam, name+";rms", fTitle); 115 118 fRms->SetYTitle("a.u."); 119 116 120 return kTRUE; 117 121 }
Note:
See TracChangeset
for help on using the changeset viewer.