Ignore:
Timestamp:
12/27/04 13:13:32 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r5557 r5690  
    325325
    326326const TString MImgCleanStd::gsNamePedPhotCam="MPedPhotCam"; // default name of the 'MPedPhotCam' container
     327const TString MImgCleanStd::gsNameCerPhotEvt="MCerPhotEvt"; // default name of the 'MCerPhotEvt' container
     328const TString MImgCleanStd::gsNameGeomCam   ="MGeomCam";    // default name of the 'MGeomCam' container
    327329
    328330// --------------------------------------------------------------------------
     
    337339                           const char *name, const char *title)
    338340    : fCleaningMethod(kStandard), fCleanLvl1(lvl1),
    339       fCleanLvl2(lvl2), fCleanRings(1), fNamePedPhotCam(gsNamePedPhotCam)
     341    fCleanLvl2(lvl2), fCleanRings(1), fNamePedPhotCam(gsNamePedPhotCam),
     342    fNameGeomCam(gsNameGeomCam), fNameCerPhotEvt(gsNameCerPhotEvt)
    340343
    341344{
     
    540543Int_t MImgCleanStd::PreProcess (MParList *pList)
    541544{
    542     fCam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam"));
     545    fCam = (MGeomCam*)pList->FindObject(AddSerialNumber(fNameGeomCam), "MGeomCam");
    543546    if (!fCam)
    544547    {
    545         *fLog << err << "MGeomCam not found (no geometry information available)... aborting." << endl;
     548        *fLog << err << fNameGeomCam << " [MGeomCam] not found (no geometry information available)... aborting." << endl;
    546549        return kFALSE;
    547550    }
    548551
    549     fEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt"));
     552    fEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fNameCerPhotEvt), "MCerPhotEvt");
    550553    if (!fEvt)
    551554    {
    552         *fLog << err << "MCerPhotEvt not found... aborting." << endl;
     555        *fLog << err << fNameCerPhotEvt << " [MCerPhotEvt] not found... aborting." << endl;
    553556        return kFALSE;
    554557    }
     
    557560    if (!fPed)
    558561    {
    559         *fLog << err << "MPedPhotCam not found... aborting." << endl;
     562        *fLog << err << fNamePedPhotCam << " [MPedPhotCam] not found... aborting." << endl;
    560563        return kFALSE;
    561564    }
     
    755758    case kImgCleanLvl1:
    756759        fCleanLvl1 = lvl;
    757         *fLog << "Cleaning level 1 set to " << lvl << " sigma." << endl;
     760        *fLog << "Cleaning level 1 set to " << lvl << endl;
    758761        return kTRUE;
    759762
    760763    case kImgCleanLvl2:
    761764        fCleanLvl2 = lvl;
    762         *fLog << "Cleaning level 2 set to " << lvl << " sigma." << endl;
     765        *fLog << "Cleaning level 2 set to " << lvl << endl;
    763766        return kTRUE;
    764767    }
     
    805808    if (gsNamePedPhotCam!=fNamePedPhotCam)
    806809        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;
    807814}
    808815
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.h

    r4838 r5690  
    2929private:
    3030    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
    3133
    3234    const MGeomCam     *fCam;  //!
     
    4446
    4547    TString  fNamePedPhotCam; // name of the 'MPedPhotCam' container
     48    TString  fNameGeomCam;    // name of the 'MGeomCam' container
     49    TString  fNameCerPhotEvt; // name of the 'MCerPhotEvt' container
    4650
    4751
     
    7377
    7478    Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
     79
    7580    void SetNamePedPhotCam(const char *name)  { fNamePedPhotCam = name; }
     81    void SetNameCerPhotEvt(const char *name)  { fNameCerPhotEvt = name; }
     82    void SetNameGeomCam(const char *name)     { fNameGeomCam = name; }
    7683
    77     ClassDef(MImgCleanStd, 2)    // task doing the image cleaning
     84    ClassDef(MImgCleanStd, 3)    // task doing the image cleaning
    7885};
    7986
Note: See TracChangeset for help on using the changeset viewer.