Ignore:
Timestamp:
01/11/05 16:46:58 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfilter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFCosmics.cc

    r3822 r5803  
    6161
    6262using namespace std;
     63
     64const TString MFCosmics::fgNamePedestalCam = "MPedestalCam";
     65
    6366// --------------------------------------------------------------------------
    6467//
     
    6669//
    6770MFCosmics::MFCosmics(const char *name, const char *title)
    68     : fPedestals(NULL), fSignals(NULL),
    69       fRawEvt(NULL), fMaxEmptyPixels(0.2)
     71    : fPedestals(NULL), fSignals(NULL), fRawEvt(NULL),
     72    fNamePedestalCam(fgNamePedestalCam), fMaxEmptyPixels(0.2)
    7073{
    7174    fName  = name  ? name  : "MFCosmics";
     
    8992    }
    9093
    91     fPedestals = (MPedestalCam*)pList->FindObject("MPedestalCam");
     94    fPedestals = (MPedestalCam*)pList->FindObject(fNamePedestalCam, "MPedestalCam");
    9295    if (!fPedestals)
    9396    {
    94         *fLog << err << "MPedestalCam not found... aborting." << endl;
     97        *fLog << err << fNamePedestalCam << " [MPedestalCam] not found... aborting." << endl;
    9598        return kFALSE;
    9699    }
  • trunk/MagicSoft/Mars/mfilter/MFCosmics.h

    r3262 r5803  
    1414{
    1515private:
     16    static const TString fgNamePedestalCam;
     17
    1618    MPedestalCam        *fPedestals; // Pedestals of all pixels in the camera
    1719    MExtractedSignalCam *fSignals;   // Calibration events of all pixels in the camera
    1820
    1921    MRawEvtData         *fRawEvt;    // raw event data (time slices)
     22
     23    TString fNamePedestalCam;
    2024
    2125    Int_t   fCut[2];
     
    4044    Float_t GetMaxEmptyPixels() const          { return fMaxEmptyPixels; }
    4145
     46    void SetNamePedestalCam(const char *name) { fNamePedestalCam = name; }
     47
    4248    ClassDef(MFCosmics, 0)   // Filter to perform a cosmics rejection
    4349};
Note: See TracChangeset for help on using the changeset viewer.