Skip to content

Commit

Permalink
CalibCalorimetry/HcalAlgos/test fix clang warning hides overloaded vi…
Browse files Browse the repository at this point in the history
…rtual function

Remove unneeded declarations of functions that do not override base class.
Change beginJob -> analyze.
  • Loading branch information
gartung committed Dec 12, 2016
1 parent 6f6136c commit 3d41627
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions CalibCalorimetry/HcalAlgos/test/MapTester.cc
Expand Up @@ -54,9 +54,7 @@ class MapTester : public edm::EDAnalyzer {
bool generateTextfiles_;
bool generateEmap_;

virtual void beginRun(const edm::EventSetup&) ;
virtual void analyze(const edm::Event&, const edm::EventSetup&);
virtual void endJob() ;

// ----------member data ---------------------------
};
Expand All @@ -74,18 +72,10 @@ MapTester::~MapTester()

}

// ------------ method called to for each event ------------
void
MapTester::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
{
using namespace edm;
beginRun(iSetup);
}


// ------------ method called once each job just before starting event loop ------------
// ------------ method called to for each event ------------
void
MapTester::beginRun(const edm::EventSetup& iSetup)
MapTester::analyze( const edm::Event& iEvent, const edm::EventSetup& iSetup)
{
char tempbuff[128];

Expand Down Expand Up @@ -126,10 +116,5 @@ MapTester::beginRun(const edm::EventSetup& iSetup)
HcalDbASCIIIO::dumpObject(outStream,myemap);}
}

// ------------ method called once each job just after ending the event loop ------------
void
MapTester::endJob() {
}

//define this as a plug-in
DEFINE_FWK_MODULE(MapTester);

0 comments on commit 3d41627

Please sign in to comment.