Ignore:
Timestamp:
01/16/09 13:24:04 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r9153 r9224  
    187187        break;
    188188    }
     189
     190    return kTRUE;
     191}
     192
     193// --------------------------------------------------------------------------
     194//
     195// The geometry read from the RunHeaders might have changed. This does not
     196// effect anything in PreProcess. So we set a new geometry. We don't move
     197// this away from PreProcess to support also loops without calling ReInit.
     198//
     199Bool_t MHEvent::ReInit(MParList *plist)
     200{
     201    MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam");
     202    if (!cam)
     203    {
     204        *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl;
     205        return kFALSE;
     206    }
     207
     208    fHist->SetGeometry(*cam);
    189209
    190210    return kTRUE;
  • trunk/MagicSoft/Mars/mhist/MHEvent.h

    r9153 r9224  
    5353    Bool_t SetupFill(const MParList *plist);
    5454    Int_t  Fill(const MParContainer *par, const Stat_t weight=1);
     55    Bool_t ReInit(MParList *par);
    5556
    5657public:
Note: See TracChangeset for help on using the changeset viewer.