- Timestamp:
- 11/09/11 21:47:01 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r12469 r12475 58 58 } 59 59 60 bool DataCalib::Open( RUN_HEAD* h)60 bool DataCalib::Open(const RUN_HEAD* h, const FAD::RunDescription &d) 61 61 { 62 62 if (h->NPix != 1440) … … 141 141 fData.fNumTm = hastm ? 160 : 0; 142 142 143 return DataWriteFits::Open(h );143 return DataWriteFits::Open(h, d); 144 144 } 145 145 … … 259 259 return; 260 260 261 if (!file.WriteData(buf.data() , (1440*1024*4 + 1440*roi*2 + ntm*roi*2 + 3)*sizeof(float)))261 if (!file.WriteData(buf.data()+sizeof(float), (1440*1024*4 + 1440*roi*2 + ntm*roi*2 + 3)*sizeof(float))) 262 262 return; 263 263 … … 280 280 // Scale ADC data from 12bit to 2000mV 281 281 GetSampleStats(fStats.data()+4, 2000./4096); 282 reinterpret_cast<uint32_t*>(fStats.data())[ 0] = GetRunId();;282 reinterpret_cast<uint32_t*>(fStats.data())[1] = GetRunId();; 283 283 } 284 284 if (fData.fStep==1) … … 298 298 // Scale ADC data from 12bit to 2000mV 299 299 GetSampleStats(fStats.data()+1024*1440*2+4, 2000./4096/fData.fNumOffset);//0.5); 300 reinterpret_cast<uint32_t*>(fStats.data())[ 1] = GetRunId();;300 reinterpret_cast<uint32_t*>(fStats.data())[2] = GetRunId();; 301 301 } 302 302 if (fData.fStep==2) … … 307 307 // Scale ADC data from 12bit to 2000mV 308 308 GetSampleStats(fStats.data()+1024*1440*4+4, 2000./4096/fData.fNumOffset);//0.5); 309 reinterpret_cast<uint32_t*>(fStats.data())[ 2] = GetRunId();310 reinterpret_cast<uint32_t*>(fStats.data())[3] = fNumSamples;309 reinterpret_cast<uint32_t*>(fStats.data())[0] = fNumSamples; 310 reinterpret_cast<uint32_t*>(fStats.data())[3] = GetRunId(); 311 311 } 312 312 -
trunk/FACT++/src/DataCalib.h
r12343 r12475 21 21 DimDescribedService &fDim; // DimService through which statistics updates are transmitted 22 22 23 // uint16_t fDAC[8]; 24 23 25 void WriteFits(); 24 26 … … 31 33 static void Update(DimDescribedService &dim); 32 34 33 bool Open( RUN_HEAD* h);35 bool Open(const RUN_HEAD* h, const FAD::RunDescription &d); 34 36 bool WriteEvt(EVENT *e); 35 37 bool Close(RUN_TAIL * = 0);
Note:
See TracChangeset
for help on using the changeset viewer.