Skip to content

Commit

Permalink
Merge pull request #2945 from thomreis/dqmedanalyzer_migration
Browse files Browse the repository at this point in the history
HLTriggerOffline/Egamma -- DQMEDAnalyzer migration
  • Loading branch information
nclopezo committed Mar 27, 2014
2 parents b4906fb + c6bcb78 commit 8f4573b
Show file tree
Hide file tree
Showing 6 changed files with 249 additions and 251 deletions.
7 changes: 4 additions & 3 deletions HLTriggerOffline/Egamma/interface/EmDQM.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "DataFormats/Common/interface/RefToBase.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
Expand Down Expand Up @@ -59,7 +60,7 @@ class HistoFiller {
EmDQM* dqm;
};

class EmDQM : public edm::EDAnalyzer{
class EmDQM : public DQMEDAnalyzer{
public:

friend class HistoFiller<reco::ElectronCollection>;
Expand All @@ -78,12 +79,12 @@ class EmDQM : public edm::EDAnalyzer{
void beginJob();
void endJob();

void beginRun(edm::Run const&, edm::EventSetup const&);
void dqmBeginRun(edm::Run const&, edm::EventSetup const&);
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
void endRun(edm::Run const&, edm::EventSetup const&);

private:
// interface to DQM framework
DQMStore * dbe;
std::string dirname_;

HistoFiller<reco::ElectronCollection>* histoFillerEle;
Expand Down
8 changes: 5 additions & 3 deletions HLTriggerOffline/Egamma/interface/EmDQMReco.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "DataFormats/Common/interface/RefToBase.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include <vector>
Expand All @@ -39,7 +40,7 @@ class HistoFillerReco {
EmDQMReco* dqm;
};

class EmDQMReco : public edm::EDAnalyzer{
class EmDQMReco : public DQMEDAnalyzer{

//----------------------------------------

Expand All @@ -57,6 +58,7 @@ class EmDQMReco : public edm::EDAnalyzer{
* for the histogram TITLE where the first %s is replaced with et,eta or phi.
*/
FourVectorMonitorElements(EmDQMReco *_parent,
DQMStore::IBooker &iBooker,
const std::string &histogramNameTemplate,
const std::string &histogramTitleTemplate);

Expand Down Expand Up @@ -91,7 +93,8 @@ class EmDQMReco : public edm::EDAnalyzer{
void analyze(const edm::Event & event, const edm::EventSetup&);
void beginJob();
void endJob();
void beginRun( const edm::Run&, const edm::EventSetup& );
void dqmBeginRun( const edm::Run&, const edm::EventSetup& );
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;

private:
// Input from cfg file
Expand Down Expand Up @@ -222,7 +225,6 @@ class EmDQMReco : public edm::EDAnalyzer{
// int prescale;

// interface to DQM framework
DQMStore * dbe;
std::string dirname_;

HistoFillerReco<reco::ElectronCollection>* histoFillerEle;
Expand Down

0 comments on commit 8f4573b

Please sign in to comment.