/**
 * \class BDSpliceModule
 *
 * \ingroup BeamDataUtil
 *
 * \brief Pass records based on RawBeamMonBlock times.
 *
 * This simply fails all records outside of a configured time range.
 * It has these configuration parameters:
 *
 * BeginTime: unix epoc seconds of begin of accepted time range (def: 0)
 * EndTime:   unix epoc seconds of end of accepted time range (def: -1)
 *
 * For human readable setting do something like:
 *
 * VldTimeStamp begin(2005,1,1, 12,30,0);
 *
 * and use begin.GetSec().
 *
 * Remeber, times are all in UTC.
 *
 * \author (last to touch it) $Author: bv $
 *
 * \version $Revision: 1.1 $
 *
 * \date $Date: 2005/08/05 14:42:08 $
 *
 * Contact: bv@bnl.gov
 *
 * Created on: Wed Aug  3 10:02:00 2005
 *
 * $Id: BDSpliceModule.h,v 1.1 2005/08/05 14:42:08 bv Exp $
 *
 */

#ifndef BDSPLICEMODULE_H
#define BDSPLICEMODULE_H

#include <JobControl/JobCModule.h>
#include <Validity/VldTimeStamp.h>

class BDSpliceModule : public JobCModule
{
    VldTimeStamp fBegin, fEnd;

public:
    BDSpliceModule();
    virtual ~BDSpliceModule();

    const Registry& DefaultConfig() const;
    void Config(const Registry& r);
    
    JobCResult Ana(const MomNavigator* mom);
};

#endif  // BDSPLICEMODULE_H
