Ignore:
Timestamp:
12/06/04 12:55:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

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

    r5158 r5560  
    8989    fName  = name  ? name  : gsDefName.Data();
    9090    fTitle = title ? title : gsDefTitle.Data();
     91
     92    fNameGeom = "MGeomCam";
    9193}
    9294
     
    150152    }
    151153
    152     MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam");
     154    MGeomCam *cam = (MGeomCam*)plist->FindObject(fNameGeom, "MGeomCam");
    153155    if (!cam)
    154156    {
    155         *fLog << err << GetDescriptor() << ": No MGeomCam found." << endl;
     157        *fLog << err << fNameGeom << " [MGeomCam] not found... abort." << endl;
    156158        return kFALSE;
    157159    }
    158160
    159     // Delete a posible old histogram from a previous loop
     161    // Delete a possible old histogram from a previous loop
    160162    if (fSum)
    161163        delete (fSum);
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.h

    r5156 r5560  
    1818    MCamEvent *fEvt;       //! the current event
    1919
    20     TString fNameEvt;      // Nameof MCamEvent to fill into histogram
     20    TString fNameEvt;      // Name of MCamEvent to fill into histogram
     21    TString fNameGeom;     // Name of geometry container
    2122
    2223    Int_t fType;           // Type to used for calling GetPixelContent
     
    3738    ~MHCamEvent();
    3839
    39     void SetNameEvt(const TString name) { fNameEvt = name; }
     40    void SetNameEvt(const TString name)  { fNameEvt = name; }
     41    void SetNameGeom(const TString name) { fNameGeom = name; }
    4042    void SetType(Int_t type) { fType = type; }
    4143
Note: See TracChangeset for help on using the changeset viewer.