Ignore:
Timestamp:
04/07/05 11:32:22 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc

    r6824 r6913  
    175175
    176176const TString MExtractPedestal::fgNamePedestalCam = "MPedestalCam";
     177const UInt_t  MExtractPedestal::fgNumDump = 500;
    177178
    178179// --------------------------------------------------------------------------
     
    474475    Bool_t rc=kFALSE;
    475476
     477    // find resource for numdump
     478    if (IsEnvDefined(env, prefix, "NumDump", print))
     479    {
     480        const Int_t num = GetEnvValue(env, prefix, "NumDump", -1);
     481        if (num<=0)
     482        {
     483            *fLog << err << GetDescriptor() << ": ERROR - NumDump invalid!" << endl;
     484            return kERROR;
     485        }
     486
     487        SetNumDump(num);
     488        rc = kTRUE;
     489    }
     490
    476491    // find resource for numeventsdump
    477492    if (IsEnvDefined(env, prefix, "NumEventsDump", print))
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.h

    r6321 r6913  
    2525private:
    2626  static const TString  fgNamePedestalCam;  //! "MPedestalCam"
     27  static const UInt_t   fgNumDump;          //!
    2728
    2829  TString fNamePedestalCamIn;        // Name of the incoming 'MPedestalCam' container
     
    9697  Bool_t SetExtractWindow(UShort_t first, UShort_t size);
    9798
    98   void SetNumEventsDump (UInt_t dumpevents=500)  { fNumEventsDump  = dumpevents; }
    99   void SetNumAreasDump  (UInt_t dumpevents=500)  { fNumAreasDump   = dumpevents; }
    100   void SetNumSectorsDump(UInt_t dumpevents=500)  { fNumSectorsDump = dumpevents; }
    101   void SetNumDump       (UInt_t n=500) { fNumEventsDump=n; fNumAreasDump=n; fNumSectorsDump=n; }
     99  void SetNumEventsDump (UInt_t dumpevents=fgNumDump)  { fNumEventsDump  = dumpevents; }
     100  void SetNumAreasDump  (UInt_t dumpevents=fgNumDump)  { fNumAreasDump   = dumpevents; }
     101  void SetNumSectorsDump(UInt_t dumpevents=fgNumDump)  { fNumSectorsDump = dumpevents; }
     102  void SetNumDump       (UInt_t n=fgNumDump) { fNumEventsDump=n; fNumAreasDump=n; fNumSectorsDump=n; }
    102103
    103104  // names
Note: See TracChangeset for help on using the changeset viewer.