CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/DQM/EcalCommon/interface/DQWorkerTask.h

Go to the documentation of this file.
00001 #ifndef DQWorkerTask_H
00002 #define DQWorkerTask_H
00003 
00004 #include <string>
00005 
00006 #include "DQM/EcalCommon/interface/DQWorker.h"
00007 #include "DQM/EcalCommon/interface/Collections.h"
00008 
00009 #include "FWCore/Common/interface/TriggerResultsByName.h"
00010 
00011 namespace ecaldqm {
00012   class DQWorkerTask : public DQWorker {
00013   public:
00014     DQWorkerTask(const edm::ParameterSet&, const edm::ParameterSet&, std::string const&);
00015     virtual ~DQWorkerTask() {}
00016 
00017     virtual void beginEvent(const edm::Event &, const edm::EventSetup &) {}
00018     virtual void endEvent(const edm::Event &, const edm::EventSetup &) {}
00019 
00020     virtual bool runsOn(unsigned);
00021     virtual const std::vector<std::pair<Collections, Collections> >& getDependencies();
00022     virtual bool filterRunType(const std::vector<short>&);
00023     virtual bool filterTrigger(const edm::TriggerResultsByName &);
00024 
00025     virtual void analyze(const void*, Collections){}
00026 
00027   protected:
00028     uint32_t collectionMask_;
00029     // list of dependencies between collections
00030     // first element depends on the second
00031     std::vector<std::pair<Collections, Collections> > dependencies_;
00032   };
00033 
00034 }
00035 #endif