Changeset 12484 for trunk/FACT++
- Timestamp:
- 11/10/11 00:19:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataWriteFits.cc
r12477 r12484 38 38 return false; 39 39 } 40 41 const int16_t realRoiTM = (h->NroiTM >= 2*h->Nroi && h->Nroi<=512) ? h->Nroi : 0; 40 42 41 43 fFile.AddColumn('I', "EventNum"); … … 50 52 fFile.AddColumn('S', "StartCellTimeMarker", NTMARK); 51 53 fFile.AddColumn('S', "Data", h->NPix*h->Nroi); 52 53 int16_t realRoiTM = (h->NroiTM > h->Nroi) ? h->Nroi : 0; 54 fFile.AddColumn('S', "TimeMarker", h->NTm*realRoiTM);//ETIENNE TM); 54 fFile.AddColumn('S', "TimeMarker", h->NTm*realRoiTM); 55 55 56 56 // Write length of physical pipeline (1024) 57 58 57 fConv = new Converter(Converter::ToFormat(fFile.GetColumnTypes())); 59 58 60 const size_t sz = (h->NPix*h->Nroi + h->NTm*realRoiTM)*2; //ETIENNE TM)*2;59 const size_t sz = (h->NPix*h->Nroi + h->NTm*realRoiTM)*2; 61 60 if (fConv->GetSize()-sz+4!=sizeof(EVENT)) 62 61 { … … 88 87 fFile.WriteKey("BLDVER", h->Version, "Builder version"); 89 88 fFile.WriteKey("RUNID", GetRunId(), "Run number"); 90 fFile.WriteKey("RUNTYPE", h->RunType, "Type of run");89 // fFile.WriteKey("RUNTYPE", h->RunType, "Type of run"); 91 90 fFile.WriteKey("NBOARD", h->NBoard, "Number of acquisition boards"); 92 91 fFile.WriteKey("NPIX", h->NPix, "Number of pixels"); 93 fFile.WriteKey("NTMARK", h->NTm, "Number of Time marks");92 fFile.WriteKey("NTMARK", h->NTm, "Number of time marker channels"); 94 93 fFile.WriteKey("NCELLS", 1024, "Maximum number of slices per pixels"); 95 94 fFile.WriteKey("NROI", h->Nroi, "Number of slices per pixels"); 96 fFile.WriteKey("NROITM", realRoiTM, "Number of slices per time-marker"); //ETIENNE from NroiTMm to Nroi95 fFile.WriteKey("NROITM", realRoiTM, "Number of slices per time-marker"); 97 96 98 97 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 added98 fFile.WriteKey("TMSHIFT", realOffset, "Shift of the start of the time marker readout wrt to data"); 100 99 101 100 //FIXME should we also put the start and stop time of the received data ? 102 101 //now the events header related variables 103 102 fFile.WriteKey("CAMERA", "MGeomCamFACT", ""); 104 fFile.WriteKey("DAQ", "DRS4", "");103 fFile.WriteKey("DAQ", "DRS4", ""); 105 104 fFile.WriteKey("ADCRANGE", 2000, "Dynamic range in mV"); 106 105 fFile.WriteKey("ADC", 12, "Resolution in bits"); 107 fFile.WriteKey(" TYPE", d.name, "File type according to FAD configuration (Config database)");106 fFile.WriteKey("RUNTYPE", d.name, "File type according to FAD configuration"); 108 107 109 108 // Write a single key for: … … 138 137 139 138 fFile.WriteKey("BOARD", i, "Board number for RUN, PRESC, PHASE and DAC"); 140 fFile.WriteKey("RUN", hh.runnumber, "Run number");139 // fFile.WriteKey("RUN", hh.runnumber, "Run number"); 141 140 fFile.WriteKey("PRESC", hh.trigger_generator_prescaler, "Trigger generator prescaler"); 142 141 fFile.WriteKey("PHASE", (int16_t)hh.adc_clock_phase_shift, "ADC clock phase shift");
Note:
See TracChangeset
for help on using the changeset viewer.