Changeset 5560 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 12/06/04 12:55:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r5158 r5560 89 89 fName = name ? name : gsDefName.Data(); 90 90 fTitle = title ? title : gsDefTitle.Data(); 91 92 fNameGeom = "MGeomCam"; 91 93 } 92 94 … … 150 152 } 151 153 152 MGeomCam *cam = (MGeomCam*)plist->FindObject( "MGeomCam");154 MGeomCam *cam = (MGeomCam*)plist->FindObject(fNameGeom, "MGeomCam"); 153 155 if (!cam) 154 156 { 155 *fLog << err << GetDescriptor() << ": No MGeomCam found." << endl;157 *fLog << err << fNameGeom << " [MGeomCam] not found... abort." << endl; 156 158 return kFALSE; 157 159 } 158 160 159 // Delete a pos ible old histogram from a previous loop161 // Delete a possible old histogram from a previous loop 160 162 if (fSum) 161 163 delete (fSum); -
trunk/MagicSoft/Mars/mhist/MHCamEvent.h
r5156 r5560 18 18 MCamEvent *fEvt; //! the current event 19 19 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 21 22 22 23 Int_t fType; // Type to used for calling GetPixelContent … … 37 38 ~MHCamEvent(); 38 39 39 void SetNameEvt(const TString name) { fNameEvt = name; } 40 void SetNameEvt(const TString name) { fNameEvt = name; } 41 void SetNameGeom(const TString name) { fNameGeom = name; } 40 42 void SetType(Int_t type) { fType = type; } 41 43
Note:
See TracChangeset
for help on using the changeset viewer.