00001 #include "DQM/EcalCommon/interface/DQWorkerTask.h" 00002 00003 namespace ecaldqm { 00004 00005 DQWorkerTask::DQWorkerTask(const edm::ParameterSet& _params, const edm::ParameterSet& _paths, std::string const& _name) : 00006 DQWorker(_params, _paths, _name), 00007 collectionMask_(0), 00008 dependencies_() 00009 { 00010 } 00011 00012 const std::vector<std::pair<Collections, Collections> >& 00013 DQWorkerTask::getDependencies() 00014 { 00015 return dependencies_; 00016 } 00017 00018 bool 00019 DQWorkerTask::runsOn(unsigned _collection) 00020 { 00021 if(_collection >= nProcessedObjects) return false; 00022 return (collectionMask_ >> _collection) & 0x1; 00023 } 00024 00025 bool 00026 DQWorkerTask::filterRunType(const std::vector<short>&) 00027 { 00028 return true; 00029 } 00030 00031 bool 00032 DQWorkerTask::filterTrigger(const edm::TriggerResultsByName &) 00033 { 00034 return true; 00035 } 00036 00037 } 00038