Changeset 12453 for trunk


Ignore:
Timestamp:
11/08/11 19:58:02 (13 years ago)
Author:
lyard
Message:
set TM channels to zero if not required (for DRS calib consistency)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilder.c

    r12452 r12453  
    12391239                     {
    12401240                         checkRoi = ntohs(rd[i].rBuf->S[  head_len/2 + 2 //header up to first roi
    1241                                                         + kr*(roi[jr-1]+4) //shift up to the next board
     1241                                                        + kr*(roi[jr]+4) //shift up to the next board
    12421242                                                        + 9*jr*(roi[jr-1]+4)]); //shift up to the correct pixel
    12431243                         if (checkRoi != roi[jr])
     
    13581358                              //zero when allocating it
    13591359                              dest = tmS*roi[0] + NPIX*roi[0];
    1360                               memset(&mBuffer[evID].fEvent->Adc_Data[dest],0,roi[0]*2);
     1360                              bzero(&mBuffer[evID].fEvent->Adc_Data[dest],roi[0]*2);
    13611361                           }
    13621362                        }
     
    19161916                  actRun.Nroi = runCtrl[j].roi0;
    19171917                  actRun.NroiTM = runCtrl[j].roi8;
    1918 //ETIENNE don't reset it to zero
     1918//ETIENNE don't reset it to zero as it is taken care of in DataWriteFits
    19191919//                  if (actRun.Nroi == actRun.NroiTM)
    19201920//                     actRun.NroiTM = 0;
     
    19741974
    19751975//make sure unused pixels/tmarks are cleared to zero
    1976 //ETIENNE don't reset it to zero
     1976//ETIENNE don't reset it to zero as it is taken care of in DataWriteFits
    19771977//                  if (roiTM == roi)
    19781978//                     roiTM = 0;
     
    21932193                  actRun.Nroi = runCtrl[j].roi0;
    21942194                  actRun.NroiTM = runCtrl[j].roi8;
    2195 //ETIENNE don't reset it to zero                                 
     2195//ETIENNE don't reset it to zero as it is taken care of in DataWriteFits
    21962196//                  if (actRun.Nroi == actRun.NroiTM)
    21972197//                     actRun.NroiTM = 0;
Note: See TracChangeset for help on using the changeset viewer.