Changeset 12477 for trunk/FACT++/src/DataWriteFits.cc
- Timestamp:
- 11/09/11 21:51:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataWriteFits.cc
r12454 r12477 1 1 #include "DataWriteFits.h" 2 2 3 #include "HeadersFAD.h" 3 4 #include "FAD.h" 4 5 #include "Converter.h" … … 30 31 //! @param h a pointer to the RUN_HEAD structure that contains the informations relative to this run 31 32 // 32 bool DataWriteFits::Open( RUN_HEAD* h)33 bool DataWriteFits::Open(const RUN_HEAD* h, const FAD::RunDescription &d) 33 34 { 34 35 if (fConv) … … 94 95 fFile.WriteKey("NROI", h->Nroi, "Number of slices per pixels"); 95 96 fFile.WriteKey("NROITM", realRoiTM, "Number of slices per time-marker"); //ETIENNE from NroiTMm to Nroi 96 int realOffset = (h->NroiTM > h->Nroi) ? h->NroiTM - 2*h->Nroi : 0; 97 fFile.WriteKey("OFFSET", realOffset, "Offset between pixels ROI and TM ROi"); //ETIENNE added 97 98 const uint16_t realOffset = (h->NroiTM > h->Nroi) ? h->NroiTM - 2*h->Nroi : 0; 99 fFile.WriteKey("OFFSET", realOffset, "Offset between pixels ROI and TM ROi"); //ETIENNE added 98 100 99 101 //FIXME should we also put the start and stop time of the received data ? … … 103 105 fFile.WriteKey("ADCRANGE", 2000, "Dynamic range in mV"); 104 106 fFile.WriteKey("ADC", 12, "Resolution in bits"); 105 107 fFile.WriteKey("TYPE", d.name, "File type according to FAD configuration (Config database)"); 106 108 107 109 // Write a single key for:
Note:
See TracChangeset
for help on using the changeset viewer.