Changeset 14931 for trunk/Mars
- Timestamp:
- 02/15/13 21:02:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mdrs/MHDrsCalibration.cc
r14922 r14931 286 286 // Scale ADC data from 12bit to 2000mV 287 287 fData.GetSampleStats(fBuffer.data()+4, 2000./4096); 288 reinterpret_cast<uint32_t*>(fBuffer.data())[1] = fRun->Get RunNumber();288 reinterpret_cast<uint32_t*>(fBuffer.data())[1] = fRun->GetFileNumber(); 289 289 } 290 290 … … 308 308 // Scale ADC data from 12bit to 2000mV 309 309 fData.GetSampleStats(fBuffer.data()+1024*1440*2+4, 2000./4096/fResult->fNumOffset);//0.5); 310 reinterpret_cast<uint32_t*>(fBuffer.data())[2] = fRun->Get RunNumber();310 reinterpret_cast<uint32_t*>(fBuffer.data())[2] = fRun->GetFileNumber(); 311 311 } 312 312 … … 315 315 { 316 316 fResult->fNumTrgOff = fData.GetNumEntries();//*fResult->fNumCellOffset; 317 318 const vector<int64_t> &sum = fData.GetSum(); 317 319 if (!CopyData(fResult->fTrgOff)) 318 320 return kFALSE; … … 322 324 fData.GetSampleStats(fBuffer.data()+1024*1440*4+4, 2000./4096/fResult->fNumOffset);//0.5); 323 325 reinterpret_cast<uint32_t*>(fBuffer.data())[0] = fNumSamples; 324 reinterpret_cast<uint32_t*>(fBuffer.data())[3] = fRun->Get RunNumber();326 reinterpret_cast<uint32_t*>(fBuffer.data())[3] = fRun->GetFileNumber(); 325 327 } 326 328 … … 333 335 334 336 const std::string fname(Form("%s/%d_%03d.drs.fits", fOutputPath.Data(), 335 fRun->GetRun Start().GetNightAsInt(), fRun->GetFileNumber()));337 fRun->GetRunNumber(), fRun->GetFileNumber())); 336 338 337 339 const Bool_t exists = !gSystem->AccessPathName(fname.c_str(), kFileExists); … … 342 344 } 343 345 344 std::string msg = fResult->WriteFitsImp(fname, fBuffer);346 const std::string msg = fResult->WriteFitsImp(fname, fBuffer); 345 347 346 348 if (msg.empty())
Note:
See TracChangeset
for help on using the changeset viewer.