Changeset 13924 for trunk/FACT++
- Timestamp:
- 05/26/12 17:41:52 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r12809 r13924 33 33 } 34 34 35 bool DataCalib::ResetTrgOff(DimDescribedService &dim )35 bool DataCalib::ResetTrgOff(DimDescribedService &dim, DimDescribedService &runs) 36 36 { 37 37 if (fData.fStep!=3) … … 45 45 46 46 fData.fStep = 1; 47 Update(dim );47 Update(dim, runs); 48 48 fData.fStep = 2; 49 49 … … 51 51 } 52 52 53 void DataCalib::Update(DimDescribedService &dim )53 void DataCalib::Update(DimDescribedService &dim, DimDescribedService &runs) 54 54 { 55 55 const uint16_t roi = fData.fRoi; … … 76 76 77 77 dim.Update(buf); 78 79 runs.setData(buf.data(), 4*sizeof(uint32_t)); 80 runs.Update(); 78 81 } 79 82 … … 334 337 WriteFits(); 335 338 336 Update(fDim );339 Update(fDim, fDimRuns); 337 340 338 341 fData.fStep++; -
trunk/FACT++/src/DataCalib.h
r13647 r13924 19 19 static bool fProcessing; 20 20 21 DimDescribedService &fDim; // DimService through which statistics updates are transmitted 21 DimDescribedService &fDim; // DimService through which statistics updates are transmitted 22 DimDescribedService &fDimRuns; // DimService through which statistics updates are transmitted 22 23 23 24 // uint16_t fDAC[8]; … … 28 29 29 30 public: 30 DataCalib(const std::string &path, uint32_t id, DimDescribedService &dim, MessageImp &imp) : DataWriteFits(path, id, imp), fDim(dim)31 DataCalib(const std::string &path, uint32_t id, DimDescribedService &dim, DimDescribedService &runs, MessageImp &imp) : DataWriteFits(path, id, imp), fDim(dim), fDimRuns(runs) 31 32 { 32 33 } 33 34 34 35 static void Restart(); 35 static bool ResetTrgOff(DimDescribedService &dim );36 static void Update(DimDescribedService &dim );36 static bool ResetTrgOff(DimDescribedService &dim, DimDescribedService &runs); 37 static void Update(DimDescribedService &dim, DimDescribedService &runs); 37 38 38 39 bool Open(const RUN_HEAD* h, const FAD::RunDescription &d); -
trunk/FACT++/src/EventBuilderWrapper.h
r13561 r13924 99 99 DimDescribedService fDimRoi; 100 100 DimDescribedService fDimDac; 101 DimDescribedService fDimDrsRuns; 101 102 DimDescribedService fDimDrsCalibration; 102 103 DimDescribedService fDimStatistics1; … … 208 209 "DAC settings of each FAD board" 209 210 "|DAC[int]:DAC counts, sequentially DAC 0 board 0, 0/1, 0/2... (plus min max)"), 211 fDimDrsRuns ("FAD_CONTROL/DRS_RUNS", "I:1;I:3", ""), 210 212 fDimDrsCalibration("FAD_CONTROL/DRS_CALIBRATION", "I:1;I:3;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:163840;F:163840", ""), 211 213 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I:5;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", … … 453 455 { 454 456 DataCalib::Restart(); 455 DataCalib::Update(fDimDrsCalibration );457 DataCalib::Update(fDimDrsCalibration, fDimDrsRuns); 456 458 fMsg.Message("Resetted DRS calibration."); 457 459 } … … 460 462 virtual int ResetSecondaryDrsBaseline() 461 463 { 462 if (DataCalib::ResetTrgOff(fDimDrsCalibration ))464 if (DataCalib::ResetTrgOff(fDimDrsCalibration, fDimDrsRuns)) 463 465 { 464 466 fFileFormat = FAD::kCalib; … … 510 512 return; 511 513 fMsg.Info("Successfully loaded DRS calibration from "+string(fname)); 512 DataCalib::Update(fDimDrsCalibration );514 DataCalib::Update(fDimDrsCalibration, fDimDrsRuns); 513 515 } 514 516 … … 616 618 case FAD::kFits: file = new DataWriteFits2(fPath, runid, fMsg); break; 617 619 case FAD::kRaw: file = new DataWriteRaw(fPath, runid, fMsg); break; 618 case FAD::kCalib: file = new DataCalib(fPath, runid, fDimDrsCalibration, f Msg); break;620 case FAD::kCalib: file = new DataCalib(fPath, runid, fDimDrsCalibration, fDimDrsRuns, fMsg); break; 619 621 } 620 622
Note:
See TracChangeset
for help on using the changeset viewer.