Changeset 4883 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 09/07/04 13:32:47 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r4601 r4883 82 82 #include "MCamEvent.h" 83 83 84 #include "MArrayD.h" 85 84 86 #define kItemsLegend 48 // see SetPalette(1,0) 85 87 … … 1201 1203 { 1202 1204 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 // 1216 void 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! 1203 1227 1204 1228 if (!used || (*const_cast<TArrayC*>(used))[idx])
Note:
See TracChangeset
for help on using the changeset viewer.