Changeset 4915 for trunk/MagicSoft/Mars
- Timestamp:
- 09/10/04 09:50:55 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4914 r4915 20 20 -*-*- END OF LINE -*-*- 21 21 22 2004/09/10: Thomas Bretz 23 24 * mhist/MHCamera.cc: 25 - removed some obsolete const_casts 26 - fixed an (un)signed comparison warning 27 28 29 22 30 2004/09/09: Markus Gaug 23 31 … … 106 114 - removed some possible bugs in the case that no LoGain is 107 115 available at all. 116 117 108 118 109 119 2004/09/09: Thomas Bretz -
trunk/MagicSoft/Mars/mbase/MArrayB.h
r1014 r4915 168 168 return fArray[i]; 169 169 } 170 const Byte_t &operator[](UInt_t i) const 171 { 172 return fArray[i]; 173 } 170 174 171 175 ClassDef(MArrayB, 1) //Array of Byte_t -
trunk/MagicSoft/Mars/mbase/MArrayD.h
r4747 r4915 151 151 return fArray[i]; 152 152 } 153 const Double_t &operator[](UInt_t i) const 154 { 155 return fArray[i]; 156 } 153 157 154 158 ClassDef(MArrayD, 1) //Array of Double_t -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r4883 r4915 1202 1202 for (Int_t idx=0; idx<fNcells-2; idx++) 1203 1203 { 1204 Fill(idx, const_cast<TArrayD&>(event)[idx]); // FIXME: Slow!1205 1206 if (!used || (* const_cast<TArrayC*>(used))[idx])1204 Fill(idx, event[idx]); // FIXME: Slow! 1205 1206 if (!used || (*used)[idx]) 1207 1207 SetUsed(idx); 1208 1208 } … … 1216 1216 void MHCamera::AddCamContent(const MArrayD &event, const TArrayC *used) 1217 1217 { 1218 if (event.GetSize()!= fNcells-2|| IsFreezed())1218 if (event.GetSize()!=(UInt_t)(fNcells-2) || IsFreezed()) 1219 1219 return; 1220 1220 … … 1224 1224 for (Int_t idx=0; idx<fNcells-2; idx++) 1225 1225 { 1226 Fill(idx, const_cast<MArrayD&>(event)[idx]); // FIXME: Slow!1227 1228 if (!used || (* const_cast<TArrayC*>(used))[idx])1226 Fill(idx, event[idx]); // FIXME: Slow! 1227 1228 if (!used || (*used)[idx]) 1229 1229 SetUsed(idx); 1230 1230 }
Note:
See TracChangeset
for help on using the changeset viewer.