Ignore:
Timestamp:
02/04/13 10:02:02 (12 years ago)
Author:
tbretz
Message:
Added the possibility to set name of MSignalCam
Location:
trunk/Mars/mbadpixels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbadpixels/MBadPixelsTreat.cc

    r10166 r14855  
    108108MBadPixelsTreat::MBadPixelsTreat(const char *name, const char *title)
    109109    : fGeomCam(0), fEvt(0), fBadPixels(0), fPedPhot1(0), fPedPhot2(0),
     110    fNameSignalCam("MSignalCam"),
    110111    fFlags(0), fNumMinNeighbors(3), fMaxArrivalTimeDiff(3.)
    111112{
     
    151152    }
    152153
    153     fEvt = (MSignalCam*)pList->FindObject(AddSerialNumber("MSignalCam"));
     154    fEvt = (MSignalCam*)pList->FindObject(AddSerialNumber(fNameSignalCam), "MSignalCam");
    154155    if (!fEvt)
    155156    {
    156         *fLog << err << AddSerialNumber("MSignalCam") << " not found... aborting." << endl;
     157        *fLog << err << AddSerialNumber(fNameSignalCam) << " [MSignalCam] not found... aborting." << endl;
    157158        return kFALSE;
    158159    }
  • trunk/Mars/mbadpixels/MBadPixelsTreat.h

    r14448 r14855  
    2121    MPedPhotCam   *fPedPhot2;      //! Pedestal from extractor used for "no-signal" in InterpolateTimes
    2222
     23    TString fNameSignalCam;
    2324
    2425    TList fPedPhotCams;            // List of PedPhotCams to be treated
     
    99100    void SetNumMinNeighbors(Byte_t num)   { fNumMinNeighbors=num; }
    100101    void SetMaxArrivalTimeDiff(Float_t d) { fMaxArrivalTimeDiff=d; }
     102    void SetNameSignalCam(const char *name="MSignalCam") { fNameSignalCam=name; }
    101103    void AddNamePedPhotCam(const char *name="MPedPhotCam");
    102104    void SetNamePedPhotCam(const char *name)
Note: See TracChangeset for help on using the changeset viewer.