Changeset 6913 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 04/07/05 11:32:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r6824 r6913 175 175 176 176 const TString MExtractPedestal::fgNamePedestalCam = "MPedestalCam"; 177 const UInt_t MExtractPedestal::fgNumDump = 500; 177 178 178 179 // -------------------------------------------------------------------------- … … 474 475 Bool_t rc=kFALSE; 475 476 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 476 491 // find resource for numeventsdump 477 492 if (IsEnvDefined(env, prefix, "NumEventsDump", print)) -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.h
r6321 r6913 25 25 private: 26 26 static const TString fgNamePedestalCam; //! "MPedestalCam" 27 static const UInt_t fgNumDump; //! 27 28 28 29 TString fNamePedestalCamIn; // Name of the incoming 'MPedestalCam' container … … 96 97 Bool_t SetExtractWindow(UShort_t first, UShort_t size); 97 98 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; } 102 103 103 104 // names
Note:
See TracChangeset
for help on using the changeset viewer.