Skip to content

Commit

Permalink
Merge pull request cms-sw#8168 from anorkus/threaded_dqm_migration5
Browse files Browse the repository at this point in the history
Threaded dqm migration5
  • Loading branch information
cmsbuild committed Mar 14, 2015
2 parents 1ad9210 + 1846e18 commit cdef835
Show file tree
Hide file tree
Showing 6 changed files with 637 additions and 575 deletions.
22 changes: 7 additions & 15 deletions DQMOffline/Alignment/interface/MuonAlignmentSummary.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <math.h>

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/Common/interface/Handle.h"
Expand All @@ -23,6 +22,7 @@

#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"

namespace edm {
class ParameterSet;
Expand All @@ -32,28 +32,20 @@ namespace edm {

class TH1F;

class MuonAlignmentSummary : public edm::EDAnalyzer {
class MuonAlignmentSummary : public DQMEDHarvester {
public:

/// Constructor
MuonAlignmentSummary(const edm::ParameterSet&);

/// Destructor
virtual ~MuonAlignmentSummary();

/// Inizialize parameters for histo binning
void beginRun(edm::Run const& run,edm::EventSetup const& iSetup);

/// Get the analysis
void analyze(const edm::Event& event, const edm::EventSetup& iSetup){}

/// Save the histos
void endRun(edm::Run const& run, edm::EventSetup const& iSetup);
//Book histograms
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override; //performed in the endJob

private:
// ----------member data ---------------------------

DQMStore* dbe;

MonitorElement *hLocalPositionDT;
MonitorElement *hLocalPositionRmsDT;
Expand Down Expand Up @@ -90,7 +82,7 @@ class MuonAlignmentSummary : public edm::EDAnalyzer {

// mean and rms histos ranges
double meanPositionRange,rmsPositionRange,meanAngleRange,rmsAngleRange;

// flags to decide on subdetector and summary histograms
bool doDT, doCSC;

Expand All @@ -99,4 +91,4 @@ class MuonAlignmentSummary : public edm::EDAnalyzer {
std::stringstream topFolder;

};
#endif
#endif
Loading

0 comments on commit cdef835

Please sign in to comment.