Changeset 1270


Ignore:
Timestamp:
04/05/02 14:17:06 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1269 r1270  
    99   * mbase/MEvtLoop.h:
    1010     - 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
    1117
    1218
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1132 r1270  
    5757#include "MTaskList.h"
    5858
     59#include <TClass.h>
    5960#include <TOrdCollection.h>
    6061
     
    266267    fParList = pList;
    267268
     269    fTasksProcess.Delete();
     270
    268271    //
    269272    //  create the Iterator over the tasklist
     
    279282    {
    280283        *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        }
    281298
    282299        switch (task->CallPreProcess(fParList))
     
    322339    //  create the Iterator for the TaskList
    323340    //
    324     TIter Next(fTasks);
     341    TIter Next(&fTasksProcess);
    325342    MTask *task=NULL;
    326343
  • trunk/MagicSoft/Mars/mgui/MGeomPix.h

    r1204 r1270  
    99{
    1010private:
    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)
    1414
    1515    Byte_t  fNumNeighbors; // number of valid neighbors
     
    3535    Float_t GetR() const  { return fR; }
    3636
    37     Float_t GetA() const  { return fR*fR*3; } // FIXME: Algorithm! A hexagonal shape is assumed!
     37    Float_t GetA() const;
    3838
    3939    Byte_t  GetNumNeighbors() const { return fNumNeighbors; }
Note: See TracChangeset for help on using the changeset viewer.