Changeset 1270
- Timestamp:
- 04/05/02 14:17:06 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1269 r1270 9 9 * mbase/MEvtLoop.h: 10 10 - added GetTaskList 11 12 * mbase/MTaskList.[h,cc]: 13 - introduced fTasksProcess which contains only the tasks 14 which overloads the process function so that processing 15 tasks doesn't waste time if a tasks doesn't have the process 16 function 11 17 12 18 -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1132 r1270 57 57 #include "MTaskList.h" 58 58 59 #include <TClass.h> 59 60 #include <TOrdCollection.h> 60 61 … … 266 267 fParList = pList; 267 268 269 fTasksProcess.Delete(); 270 268 271 // 269 272 // create the Iterator over the tasklist … … 279 282 { 280 283 *fLog << all << task->GetName() << "... " << flush; 284 285 TClass *cls=NULL; 286 TIter NextBase(task->IsA()->GetListOfBases()); 287 while ((cls=(TClass*)NextBase())) 288 { 289 if (cls->GetName()=="MTask") 290 break; 291 292 if (!cls->GetMethodAny("Process")) 293 continue; 294 295 fTasksProcess.Add(task); 296 break; 297 } 281 298 282 299 switch (task->CallPreProcess(fParList)) … … 322 339 // create the Iterator for the TaskList 323 340 // 324 TIter Next( fTasks);341 TIter Next(&fTasksProcess); 325 342 MTask *task=NULL; 326 343 -
trunk/MagicSoft/Mars/mgui/MGeomPix.h
r1204 r1270 9 9 { 10 10 private: 11 Float_t fX; // [mm] the x coordinate 12 Float_t fY; // [mm] the y coordinate 13 Float_t fR; // [mm] the r coordinate 11 Float_t fX; // [mm] the x coordinate of the center 12 Float_t fY; // [mm] the y coordinate of the center 13 Float_t fR; // [mm] the r coordinate of the pixel (dist between two parallel sides) 14 14 15 15 Byte_t fNumNeighbors; // number of valid neighbors … … 35 35 Float_t GetR() const { return fR; } 36 36 37 Float_t GetA() const { return fR*fR*3; } // FIXME: Algorithm! A hexagonal shape is assumed!37 Float_t GetA() const; 38 38 39 39 Byte_t GetNumNeighbors() const { return fNumNeighbors; }
Note:
See TracChangeset
for help on using the changeset viewer.