Changeset 5690 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 12/27/04 13:13:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r5557 r5690 325 325 326 326 const TString MImgCleanStd::gsNamePedPhotCam="MPedPhotCam"; // default name of the 'MPedPhotCam' container 327 const TString MImgCleanStd::gsNameCerPhotEvt="MCerPhotEvt"; // default name of the 'MCerPhotEvt' container 328 const TString MImgCleanStd::gsNameGeomCam ="MGeomCam"; // default name of the 'MGeomCam' container 327 329 328 330 // -------------------------------------------------------------------------- … … 337 339 const char *name, const char *title) 338 340 : fCleaningMethod(kStandard), fCleanLvl1(lvl1), 339 fCleanLvl2(lvl2), fCleanRings(1), fNamePedPhotCam(gsNamePedPhotCam) 341 fCleanLvl2(lvl2), fCleanRings(1), fNamePedPhotCam(gsNamePedPhotCam), 342 fNameGeomCam(gsNameGeomCam), fNameCerPhotEvt(gsNameCerPhotEvt) 340 343 341 344 { … … 540 543 Int_t MImgCleanStd::PreProcess (MParList *pList) 541 544 { 542 fCam = (MGeomCam*)pList->FindObject(AddSerialNumber( "MGeomCam"));545 fCam = (MGeomCam*)pList->FindObject(AddSerialNumber(fNameGeomCam), "MGeomCam"); 543 546 if (!fCam) 544 547 { 545 *fLog << err << "MGeomCamnot found (no geometry information available)... aborting." << endl;548 *fLog << err << fNameGeomCam << " [MGeomCam] not found (no geometry information available)... aborting." << endl; 546 549 return kFALSE; 547 550 } 548 551 549 fEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber( "MCerPhotEvt"));552 fEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fNameCerPhotEvt), "MCerPhotEvt"); 550 553 if (!fEvt) 551 554 { 552 *fLog << err << "MCerPhotEvtnot found... aborting." << endl;555 *fLog << err << fNameCerPhotEvt << " [MCerPhotEvt] not found... aborting." << endl; 553 556 return kFALSE; 554 557 } … … 557 560 if (!fPed) 558 561 { 559 *fLog << err << "MPedPhotCamnot found... aborting." << endl;562 *fLog << err << fNamePedPhotCam << " [MPedPhotCam] not found... aborting." << endl; 560 563 return kFALSE; 561 564 } … … 755 758 case kImgCleanLvl1: 756 759 fCleanLvl1 = lvl; 757 *fLog << "Cleaning level 1 set to " << lvl << " sigma." <<endl;760 *fLog << "Cleaning level 1 set to " << lvl << endl; 758 761 return kTRUE; 759 762 760 763 case kImgCleanLvl2: 761 764 fCleanLvl2 = lvl; 762 *fLog << "Cleaning level 2 set to " << lvl << " sigma." <<endl;765 *fLog << "Cleaning level 2 set to " << lvl << endl; 763 766 return kTRUE; 764 767 } … … 805 808 if (gsNamePedPhotCam!=fNamePedPhotCam) 806 809 out << " " << GetUniqueName() << ".SetNamePedPhotCam(\"" << fNamePedPhotCam << "\");" << endl; 810 if (gsNameGeomCam!=fNameGeomCam) 811 out << " " << GetUniqueName() << ".SetNameGeomCam(\"" << fNameGeomCam << "\");" << endl; 812 if (gsNameCerPhotEvt!=fNameCerPhotEvt) 813 out << " " << GetUniqueName() << ".SetNameCerPhotEvt(\"" << fNameCerPhotEvt << "\");" << endl; 807 814 } 808 815 -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.h
r4838 r5690 29 29 private: 30 30 static const TString gsNamePedPhotCam; // default name of the 'MPedPhotCam' container 31 static const TString gsNameGeomCam; // default name of the 'MGeomCam' container 32 static const TString gsNameCerPhotEvt; // default name of the 'MCerPhotEvt' container 31 33 32 34 const MGeomCam *fCam; //! … … 44 46 45 47 TString fNamePedPhotCam; // name of the 'MPedPhotCam' container 48 TString fNameGeomCam; // name of the 'MGeomCam' container 49 TString fNameCerPhotEvt; // name of the 'MCerPhotEvt' container 46 50 47 51 … … 73 77 74 78 Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2); 79 75 80 void SetNamePedPhotCam(const char *name) { fNamePedPhotCam = name; } 81 void SetNameCerPhotEvt(const char *name) { fNameCerPhotEvt = name; } 82 void SetNameGeomCam(const char *name) { fNameGeomCam = name; } 76 83 77 ClassDef(MImgCleanStd, 2) // task doing the image cleaning84 ClassDef(MImgCleanStd, 3) // task doing the image cleaning 78 85 }; 79 86
Note:
See TracChangeset
for help on using the changeset viewer.