00001 00002 /*---------------------------------------------------------------------- 00003 $Id: OutputWorker.cc,v 1.39 2012/02/09 22:15:50 chrjones Exp $ 00004 ----------------------------------------------------------------------*/ 00005 00006 #include "FWCore/Framework/interface/OutputModule.h" 00007 #include "FWCore/Framework/src/WorkerParams.h" 00008 #include "FWCore/Framework/src/OutputWorker.h" 00009 00010 namespace edm { 00011 OutputWorker::OutputWorker(std::auto_ptr<OutputModule> mod, 00012 ModuleDescription const& md, 00013 WorkerParams const& wp): 00014 WorkerT<OutputModule>(mod, md, wp) 00015 { 00016 } 00017 00018 OutputWorker::~OutputWorker() { 00019 } 00020 00021 void 00022 OutputWorker::closeFile() { 00023 module().doCloseFile(); 00024 } 00025 00026 bool 00027 OutputWorker::shouldWeCloseFile() const { 00028 return module().shouldWeCloseFile(); 00029 } 00030 00031 void 00032 OutputWorker::openNewFileIfNeeded() { 00033 module().maybeOpenFile(); 00034 } 00035 00036 void 00037 OutputWorker::openFile(FileBlock const& fb) { 00038 module().doOpenFile(fb); 00039 } 00040 00041 void 00042 OutputWorker::writeRun(RunPrincipal const& rp) { 00043 module().doWriteRun(rp); 00044 } 00045 00046 void 00047 OutputWorker::writeLumi(LuminosityBlockPrincipal const& lbp) { 00048 module().doWriteLuminosityBlock(lbp); 00049 } 00050 00051 bool OutputWorker::wantAllEvents() const {return module().wantAllEvents();} 00052 00053 bool OutputWorker::limitReached() const {return module().limitReached();} 00054 00055 void OutputWorker::configure(OutputModuleDescription const& desc) {module().configure(desc);} 00056 00057 SelectionsArray const& OutputWorker::keptProducts() const { 00058 return module().keptProducts(); 00059 } 00060 }