Changeset 9261 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 01/25/09 14:32:11 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MSignalCalc.cc
r8939 r9261 127 127 Int_t MSignalCalc::Process() 128 128 { 129 if (!fPedestals) 130 return kFALSE; 131 129 132 const Int_t npix = fRawEvt->GetNumPixels(); 130 133 const Int_t nhi = fRunHeader->GetNumSamplesHiGain(); … … 259 262 // Preliminary: Do not overwrite pedestals calculated by 260 263 // MMcPedestalCopy and MMcPedestalNSBAdd 261 if (fPedestals) 262 (*fPedestals)[i].Set(b/fRunHeader->GetScale(), sigb/fRunHeader->GetScale()); 264 (*fPedestals)[i].Set(b/fRunHeader->GetScale(), sigb/fRunHeader->GetScale()); 263 265 } 264 266 … … 266 268 //fCerPhotEvt->SetReadyToSave(); 267 269 268 if (fPedestals) 269 fPedestals->SetReadyToSave(); 270 fPedestals->SetReadyToSave(); 270 271 271 272 return kTRUE; -
trunk/MagicSoft/Mars/msignal/MSignalCam.cc
r9212 r9261 570 570 // 7: arrival time if signa avove 20phe 571 571 // 8: arrival time 572 // 10: a rrival time if extracted from lo-gain573 // 11: a rrival time if extracted from hi-gain (and signal above 20phe)572 // 10: as 0, but returns kFALSE if signal <=0 573 // 11: as 8, but returns kFALSE if signal <=0 574 574 // 575 575 Bool_t MSignalCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 648 648 */ 649 649 650 case 10: 651 val = pix.GetNumPhotons()*ratio; 652 return val>0; 653 654 case 11: 655 val = pix.GetArrivalTime(); 656 return pix.GetNumPhotons()>0; 657 650 658 case 9: 651 659 default:
Note:
See TracChangeset
for help on using the changeset viewer.