Changeset 4883
- Timestamp:
- 09/07/04 13:32:47 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4882 r4883 63 63 - implemented intensity recognition 64 64 65 * mhist/MHCamera.[h,cc] 66 - included functions AddCamContent(MArrayD...) and 67 SetCamContent(MArrayD... ) 65 68 66 69 -
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]) -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r4650 r4883 13 13 #ifndef ROOT_TArrayD 14 14 #include <TArrayD.h> 15 #endif 16 #ifndef ROOT_MArrayD 17 #include <MArrayD.h> 15 18 #endif 16 19 #ifndef ROOT_TClonesArray … … 146 149 virtual void AddCamContent(const MHCamera &evt, Int_t type=0); 147 150 virtual void AddCamContent(const TArrayD &arr, const TArrayC *used=NULL); 151 virtual void AddCamContent(const MArrayD &arr, const TArrayC *used=NULL); 148 152 virtual void SetCamContent(const MCamEvent &evt, Int_t type=0) { Reset(); AddCamContent(evt, type); } 153 virtual void SetCamContent(const MHCamera &d, Int_t type=0) { Reset(); AddCamContent(d, type); fEntries=d.fEntries; } 149 154 virtual void SetCamContent(const TArrayD &evt, const TArrayC *used=NULL) { Reset(); AddCamContent(evt, used); } 150 virtual void SetCamContent(const M HCamera &d, Int_t type=0) { Reset(); AddCamContent(d, type); fEntries=d.fEntries; }155 virtual void SetCamContent(const MArrayD &evt, const TArrayC *used=NULL) { Reset(); AddCamContent(evt, used); } 151 156 152 157 virtual void SetCamError(const MCamEvent &evt, Int_t type=0);
Note:
See TracChangeset
for help on using the changeset viewer.