Changeset 12484 for trunk/FACT++/src


Ignore:
Timestamp:
11/10/11 00:19:16 (13 years ago)
Author:
tbretz
Message:
Commented RUN because it should be identical to RUNID; removed the RUNTYPE and renamed TYPE to RUNTYPE; shortened and improved some descriptions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataWriteFits.cc

    r12477 r12484  
    3838        return false;
    3939    }
     40
     41    const int16_t realRoiTM = (h->NroiTM >= 2*h->Nroi && h->Nroi<=512) ? h->Nroi : 0;
    4042
    4143    fFile.AddColumn('I', "EventNum");
     
    5052    fFile.AddColumn('S', "StartCellTimeMarker", NTMARK);
    5153    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);
    5555
    5656    // Write length of physical pipeline (1024)
    57 
    5857    fConv = new Converter(Converter::ToFormat(fFile.GetColumnTypes()));
    5958
    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;
    6160    if (fConv->GetSize()-sz+4!=sizeof(EVENT))
    6261    {
     
    8887        fFile.WriteKey("BLDVER",   h->Version,  "Builder version");
    8988        fFile.WriteKey("RUNID",    GetRunId(),  "Run number");
    90         fFile.WriteKey("RUNTYPE",  h->RunType,  "Type of run");
     89//        fFile.WriteKey("RUNTYPE",  h->RunType,  "Type of run");
    9190        fFile.WriteKey("NBOARD",   h->NBoard,   "Number of acquisition boards");
    9291        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");
    9493        fFile.WriteKey("NCELLS",   1024,        "Maximum number of slices per pixels");
    9594        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 Nroi
     95        fFile.WriteKey("NROITM",   realRoiTM,   "Number of slices per time-marker");
    9796
    9897        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        fFile.WriteKey("TMSHIFT",  realOffset,  "Shift of the start of the time marker readout wrt to data");
    10099
    101100        //FIXME should we also put the start and stop time of the received data ?
    102101        //now the events header related variables
    103102        fFile.WriteKey("CAMERA",   "MGeomCamFACT", "");
    104         fFile.WriteKey("DAQ",      "DRS4", "");
     103        fFile.WriteKey("DAQ",      "DRS4",         "");
    105104        fFile.WriteKey("ADCRANGE", 2000,        "Dynamic range in mV");
    106105        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");
    108107
    109108        // Write a single key for:
     
    138137
    139138            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");
    141140            fFile.WriteKey("PRESC", hh.trigger_generator_prescaler, "Trigger generator prescaler");
    142141            fFile.WriteKey("PHASE", (int16_t)hh.adc_clock_phase_shift, "ADC clock phase shift");
Note: See TracChangeset for help on using the changeset viewer.