Changeset 19940 for trunk/Mars


Ignore:
Timestamp:
04/02/20 11:39:25 (5 years ago)
Author:
tbretz
Message:
For the DRS Electronics the 'number of crates' is 160, therefore, for HE, it should be 8. An incomplete event for HE is therefore an event which has not two boards.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawFitsRead.cc

    r19823 r19940  
    170170        fRawRunHeader->InitFact(fin.GetUInt("NPIX")/9, 9, fin.GetUInt("NROI"), mmap);
    171171    else
    172         fRawRunHeader->InitFact(1, fin.GetUInt("NPIX"), fin.GetUInt("NROI"), mmap);
     172        fRawRunHeader->InitFact(8, fin.GetUInt("NPIX"), fin.GetUInt("NROI"), mmap);
    173173
    174174    fRawRunHeader->SetFormat(0xf172, fIsMc ? 0 : fin.GetUInt("BLDVER"));
     
    263263    if (!fIsMc)
    264264    {
    265         // Skip incomplete events
    266         if (fNumBoards!=40)
     265        // Skip incomplete events (FACT: 160 'crates', 40 boards, HAWC's Eye: 8 'crate', 2 board)
     266        if ((fRawRunheader->GetNumCrates()==160 && fNumBoards!=40) ||
     267            (fRawRunheader->GetNumCrates()==8   && fNumBoards!=2))
    267268            return kCONTINUE;
    268269
Note: See TracChangeset for help on using the changeset viewer.