Ignore:
Timestamp:
09/07/04 13:32:47 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r4601 r4883  
    8282#include "MCamEvent.h"
    8383
     84#include "MArrayD.h"
     85
    8486#define kItemsLegend 48 // see SetPalette(1,0)
    8587
     
    12011203    {
    12021204        Fill(idx, const_cast<TArrayD&>(event)[idx]); // FIXME: Slow!
     1205
     1206        if (!used || (*const_cast<TArrayC*>(used))[idx])
     1207            SetUsed(idx);
     1208    }
     1209    fEntries++;
     1210}
     1211
     1212// ------------------------------------------------------------------------
     1213//
     1214// Call this function to add a MArrayD on top of the present contents.
     1215//
     1216void MHCamera::AddCamContent(const MArrayD &event, const TArrayC *used)
     1217{
     1218    if (event.GetSize()!=fNcells-2 || IsFreezed())
     1219        return;
     1220
     1221    if (used && used->GetSize()!=fNcells-2)
     1222        return;
     1223
     1224    for (Int_t idx=0; idx<fNcells-2; idx++)
     1225    {
     1226        Fill(idx, const_cast<MArrayD&>(event)[idx]); // FIXME: Slow!
    12031227
    12041228        if (!used || (*const_cast<TArrayC*>(used))[idx])
Note: See TracChangeset for help on using the changeset viewer.