Changeset 12503 for trunk/Mars/mcore/DrsCalib.h
- Timestamp:
- 11/12/11 16:10:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/DrsCalib.h
r12500 r12503 471 471 fNumTrgOff = file.GetUInt("NBTRGOFF"); 472 472 fRoi = file.GetUInt("NROI"); 473 fNumTm = file. GetUInt("NTM");473 fNumTm = file.HasKey("NTM") ? file.GetUInt("NTM") : 0; 474 474 /* 475 475 fDAC[0] = file.GetUInt("DAC_A"); … … 486 486 file.SetPtrAddress("RunNumberGain", base+2, 1); 487 487 file.SetPtrAddress("RunNumberTriggerOffset", base+3, 1); 488 file.SetPtrAddress("BaselineMean", base+4+0*1024*1440, 1024*1440); 489 file.SetPtrAddress("BaselineRms", base+4+1*1024*1440, 1024*1440); 490 file.SetPtrAddress("GainMean", base+4+2*1024*1440, 1024*1440); 491 file.SetPtrAddress("GainRms", base+4+3*1024*1440, 1024*1440); 492 file.SetPtrAddress("TriggerOffsetMean", base+4+4*1024*1440, fRoi*1440); 493 file.SetPtrAddress("TriggerOffsetRms", base+4+4*1024*1440+ fRoi*1440, fRoi*1440); 494 file.SetPtrAddress("TriggerOffsetTMMean", base+4+4*1024*1440+ 2*fRoi*1440, fRoi*fNumTm); 495 file.SetPtrAddress("TriggerOffsetTMRms", base+4+4*1024*1440+ 2*fRoi*1440+ fRoi*fNumTm, fRoi*fNumTm); 488 file.SetPtrAddress("BaselineMean", base+4+0*1024*1440, 1024*1440); 489 file.SetPtrAddress("BaselineRms", base+4+1*1024*1440, 1024*1440); 490 file.SetPtrAddress("GainMean", base+4+2*1024*1440, 1024*1440); 491 file.SetPtrAddress("GainRms", base+4+3*1024*1440, 1024*1440); 492 file.SetPtrAddress("TriggerOffsetMean", base+4+4*1024*1440, fRoi*1440); 493 file.SetPtrAddress("TriggerOffsetRms", base+4+4*1024*1440+fRoi*1440, fRoi*1440); 494 if (fNumTm>0) 495 { 496 file.SetPtrAddress("TriggerOffsetTMMean", base+4+4*1024*1440+ 2*fRoi*1440, fRoi*fNumTm); 497 file.SetPtrAddress("TriggerOffsetTMRms", base+4+4*1024*1440+ 2*fRoi*1440+ fRoi*fNumTm, fRoi*fNumTm); 498 } 496 499 497 500 if (!file.GetNextRow())
Note:
See TracChangeset
for help on using the changeset viewer.