- Timestamp:
- 04/13/04 18:21:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3720 r3721 45 45 * msignal/MExtractedSignalCam.cc 46 46 - intialize variables by default to 0. 47 48 * mcalib/MHCalibrationChargeCam.[h,cc] 49 - pointer to fSig is not stored, somehow, when running MJCalibration 50 Don't know why. Removed and stored some variables instead 47 51 48 52 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3697 r3721 160 160 // 161 161 MHCalibrationChargeCam::MHCalibrationChargeCam(const char *name, const char *title) 162 : fRawEvt(NULL) , fSig(NULL)162 : fRawEvt(NULL) 163 163 { 164 164 fName = name ? name : "MHCalibrationChargeCam"; … … 175 175 // Gets the pointers to: 176 176 // - MRawEvtData 177 // - MExtractedSignalCam178 177 // 179 178 Bool_t MHCalibrationChargeCam::SetupHists(const MParList *pList) 180 179 { 181 180 182 181 fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData"); 183 182 if (!fRawEvt) … … 187 186 } 188 187 189 MExtractedSignalCam *fSig = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam");190 if (!fSig)191 {192 *fLog << err << "MExtractedSignalCam not found... abort." << endl;193 return kFALSE;194 }195 196 188 return kTRUE; 197 189 } … … 200 192 // 201 193 // Gets or creates the pointers to: 194 // - MExtractedSignalCam 202 195 // - MCalibrationChargeCam 203 196 // - MBadPixelsCam … … 231 224 { 232 225 226 MExtractedSignalCam *signal = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam"); 227 if (!signal) 228 { 229 *fLog << err << "MExtractedSignalCam not found... abort." << endl; 230 return kFALSE; 231 } 232 233 233 fCam = (MCalibrationCam*)pList->FindObject("MCalibrationChargeCam"); 234 234 if (!fCam) … … 244 244 } 245 245 246 const Float_t numhigain = fSig->GetNumUsedHiGainFADCSlices(); 247 const Float_t numlogain = fSig->GetNumUsedLoGainFADCSlices(); 246 fFirstHiGain = signal->GetFirstUsedSliceHiGain(); 247 fLastHiGain = signal->GetLastUsedSliceHiGain(); 248 fFirstLoGain = signal->GetFirstUsedSliceLoGain(); 249 fLastLoGain = signal->GetLastUsedSliceLoGain(); 250 251 const Float_t numhigain = signal->GetNumUsedHiGainFADCSlices(); 252 const Float_t numlogain = signal->GetNumUsedLoGainFADCSlices(); 248 253 249 254 if (fCam->GetNumHiGainFADCSlices() == 0.) … … 252 257 { 253 258 *fLog << err << GetDescriptor() 254 << ": Number of High Gain FADC extraction slices has change s, abort..." << endl;259 << ": Number of High Gain FADC extraction slices has changed, abort..." << endl; 255 260 return kFALSE; 256 261 } 257 262 258 263 if (fCam->GetNumLoGainFADCSlices() == 0.) 259 264 fCam->SetNumLoGainFADCSlices ( numlogain ); … … 310 315 } 311 316 } 317 312 318 313 319 if (fAverageLoGainAreas->GetEntries()==0) … … 561 567 { 562 568 563 const Byte_t firsthi = fSig->GetFirstUsedSliceHiGain();564 const Byte_t lasthi = fSig->GetLastUsedSliceHiGain();565 const Byte_t firstlo = fSig->GetFirstUsedSliceLoGain();566 const Byte_t lastlo = fSig->GetLastUsedSliceLoGain();567 568 569 569 for (Int_t i=0; i<fHiGainArray->GetSize(); i++) 570 570 { … … 584 584 } 585 585 586 FinalizeAbsTimes(histhi, pix, bad, f irsthi, lasthi);586 FinalizeAbsTimes(histhi, pix, bad, fFirstHiGain, fLastHiGain); 587 587 } 588 588 … … 607 607 608 608 if (pix.IsHiGainSaturation()) 609 FinalizeAbsTimes(histlo, pix, bad, f irstlo, lastlo);609 FinalizeAbsTimes(histlo, pix, bad, fFirstLoGain, fLastLoGain); 610 610 } 611 611 … … 624 624 } 625 625 626 FinalizeAbsTimes(histhi, pix, bad, f irsthi, lasthi);626 FinalizeAbsTimes(histhi, pix, bad, fFirstHiGain, fLastHiGain); 627 627 } 628 628 … … 642 642 643 643 if (pix.IsHiGainSaturation()) 644 FinalizeAbsTimes(histlo, pix, bad, f irstlo, lastlo);644 FinalizeAbsTimes(histlo, pix, bad, fFirstLoGain, fLastLoGain); 645 645 } 646 646 … … 659 659 } 660 660 661 FinalizeAbsTimes(histhi, pix, bad, f irsthi, lasthi);661 FinalizeAbsTimes(histhi, pix, bad, fFirstHiGain, fLastHiGain); 662 662 } 663 663 … … 678 678 679 679 if (pix.IsHiGainSaturation()) 680 FinalizeAbsTimes(histlo, pix, bad, f irstlo, lastlo);680 FinalizeAbsTimes(histlo, pix, bad, fFirstLoGain, fLastLoGain); 681 681 } 682 682 … … 721 721 { 722 722 *fLog << warn << GetDescriptor() 723 << Form("%s%3.1f%s%2 i%s%4i",": Mean ArrivalTime: ",mean," smaller than ",fTimeLowerLimit,723 << Form("%s%3.1f%s%2.0f%s%4i",": Mean ArrivalTime: ",mean," smaller than ",fTimeLowerLimit, 724 724 " FADC slices from lower edge in pixel ",hist.GetPixId()) << endl; 725 725 bad.SetUncalibrated( MBadPixelsPix::kMeanTimeInFirstBin ); … … 729 729 { 730 730 *fLog << warn << GetDescriptor() 731 << Form("%s%3.1f%s%2 i%s%4i",": Mean ArrivalTime: ",mean," greater than ",fTimeUpperLimit,731 << Form("%s%3.1f%s%2.0f%s%4i",": Mean ArrivalTime: ",mean," greater than ",fTimeUpperLimit, 732 732 " FADC slices from upper edge in pixel ",hist.GetPixId()) << endl; 733 733 bad.SetUncalibrated( MBadPixelsPix::kMeanTimeInLast2Bins ); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r3696 r3721 23 23 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices) 24 24 Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices) 25 25 Byte_t fFirstHiGain; // First used slice High Gain 26 Byte_t fLastHiGain; // Last used slice High Gain 27 Byte_t fFirstLoGain; // First used slice Low Gain 28 Byte_t fLastLoGain; // Last used slice Low Gain 29 26 30 MRawEvtData *fRawEvt; //! Raw event data 27 MExtractedSignalCam *fSig; //! Signal Extractor28 31 29 32 Bool_t SetupHists(const MParList *pList);
Note:
See TracChangeset
for help on using the changeset viewer.