Skip to content

Commit

Permalink
Finished begin/end/Run/LuminosityBlock API change by making all modul…
Browse files Browse the repository at this point in the history
…es which put data into Run or LuminosityBlock inherit from the new framework module base classes edm::one::EDProducer<> or edm::one::EDFilter<>
  • Loading branch information
Dr15Jones committed May 17, 2013
1 parent cc769be commit b066bc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Validation/GlobalHits/interface/GlobalHitsProdHist.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*
* Class to fill dqm monitor elements from existing EDM file
*
* $Date: 2012/09/04 20:38:33 $
* $Revision: 1.8 $
* $Date: 2013/02/27 13:28:59 $
* $Revision: 1.9 $
* \author M. Strang SUNY-Buffalo
*/

// framework & common header files
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/one/EDProducer.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
Expand Down Expand Up @@ -73,7 +73,7 @@
#include "TString.h"
#include "TH1F.h"

class GlobalHitsProdHist : public edm::EDProducer
class GlobalHitsProdHist : public edm::one::EDProducer<edm::EndRunProducer>
{

public:
Expand All @@ -82,10 +82,10 @@ class GlobalHitsProdHist : public edm::EDProducer

explicit GlobalHitsProdHist(const edm::ParameterSet&);
virtual ~GlobalHitsProdHist();
virtual void beginJob( void );
virtual void endJob();
virtual void beginJob() override;
virtual void endJob() override;
virtual void produce(edm::Event&, const edm::EventSetup&) override;
virtual void endRun(edm::Run&, const edm::EventSetup&) override;
virtual void endRunProduce(edm::Run&, const edm::EventSetup&) override;

private:

Expand Down
8 changes: 4 additions & 4 deletions Validation/GlobalHits/src/GlobalHitsProdHist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
*
* See header file for description of class
*
* $Date: 2010/01/06 14:24:50 $
* $Revision: 1.5 $
* $Date: 2012/09/04 20:38:34 $
* $Revision: 1.6 $
* \author M. Strang SUNY-Buffalo
*/

Expand Down Expand Up @@ -616,7 +616,7 @@ GlobalHitsProdHist::~GlobalHitsProdHist()
{
}

void GlobalHitsProdHist::beginJob( void )
void GlobalHitsProdHist::beginJob()
{
return;
}
Expand Down Expand Up @@ -706,7 +706,7 @@ void GlobalHitsProdHist::produce(edm::Event& iEvent,
return;
}

void GlobalHitsProdHist::endRun(edm::Run& iRun, const edm::EventSetup& iSetup)
void GlobalHitsProdHist::endRunProduce(edm::Run& iRun, const edm::EventSetup& iSetup)
{

std::string MsgLoggerCat = "GlobalHitsProdHist_endRun";
Expand Down

0 comments on commit b066bc4

Please sign in to comment.