Ignore:
Timestamp:
12/13/07 14:19:38 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8582 r8787  
    1919!   Author(s): Markus Gaug, 4/2004 <mailto:markus@ifae.es>
    2020!
    21 !   Copyright: MAGIC Software Development, 2000-2005
     21!   Copyright: MAGIC Software Development, 2000-2007
    2222!
    2323!
     
    2929//
    3030// Resource file entries are case sensitive!
     31//
     32// We require at least fMinEvents (def=50) to be processed by the
     33// ExtractPedestal-task. If not an error is returned.
    3134//
    3235/////////////////////////////////////////////////////////////////////////////
     
    118121    : fExtractor(NULL), fDisplayType(kDisplayDataCheck),
    119122    fExtractType(kUsePedRun), fExtractionType(kFundamental),
    120     fIsUseHists(kFALSE), fDeadPixelCheck(kFALSE)
     123    fIsUseHists(kFALSE), fDeadPixelCheck(kFALSE), fMinEvents(50)
    121124{
    122125    fName  = name  ? name  : "MJPedestal";
     
    761764    SetExtractWinRight(GetEnv("ExtractWinRight", fExtractWinRight));
    762765
     766    SetMinEvents(GetEnv("MinEvents", (Int_t)fMinEvents));
     767
    763768    if (!MJCalib::CheckEnvLocal())
    764769        return kFALSE;
     
    12521257    }
    12531258
     1259    if (taskenv.GetNumExecutions()<fMinEvents)
     1260    {
     1261        *fLog << err << GetDescriptor() << ": Failed. Less than the required " << fMinEvents << " evts processed." << endl;
     1262        return kFALSE;
     1263    }
     1264
    12541265    if (fDeadPixelCheck)
    12551266    {
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r8518 r8787  
    5151    Float_t fExtractWinLeft;                 //  Number of FADC slices to extract leftward from mean pulse pos. 
    5252    Float_t fExtractWinRight;                //  Number of FADC slices to extract rightward from mean pulse pos.
    53    
     53
    5454    TString fReferenceFile;                  // File name containing the reference values
    5555    TString fBadPixelsFile;                  // File name containing the bad pixels excluded beforehand
    56    
     56
    5757    MExtractor *fExtractor;                  // Signal extractor, used to find the nr. of used FADC slices
    5858
     
    7373    Bool_t fIsUseHists;                      // Switch on histogramming or not
    7474    Bool_t fDeadPixelCheck;                  // Should the dead pixel check be done?
     75
     76    UInt_t  fMinEvents;                      // Minimum number of events
    7577
    7678    MExtractor *ReadCalibration();
     
    9395
    9496    Bool_t WriteExtractor() const;
    95    
     97
    9698public:
    9799    MJPedestal(const char *name=NULL, const char *title=NULL);
     
    128130    void SetExtractWinRight( const Float_t f=fgExtractWinRight ) { fExtractWinRight = f; }   
    129131
     132    void SetMinEvents(UInt_t min) { fMinEvents = min; }
     133
    130134    MExtractor *GetExtractor() const { return fExtractor; }
    131135
Note: See TracChangeset for help on using the changeset viewer.