Skip to content

Commit

Permalink
Merge pull request #3861 from deguio/JetMet
Browse files Browse the repository at this point in the history
Jet met DQM and Validation code
  • Loading branch information
davidlange6 committed May 16, 2014
2 parents 381ddf7 + a74dee5 commit c0d5cc8
Show file tree
Hide file tree
Showing 25 changed files with 338 additions and 1,200 deletions.
Expand Up @@ -4,5 +4,4 @@

DQMOfflineHeavyIons_Certification = cms.Sequence(daq_dqmoffline*dcs_dqmoffline*crt_dqmoffline)

DQMOfflineHeavyIons_Certification.remove(jetMETDQMOfflineClient)
DQMOfflineHeavyIons_Certification.remove(dataCertificationJetMET)
2 changes: 0 additions & 2 deletions DQMOffline/JetMET/doc/JetMET.doc
Expand Up @@ -34,7 +34,6 @@
- JetAnalyzerBase
- JetMETAnalyzer
- JetMETDQMDCSFilter
- JetMETDQMOfflineClient
- JetPtAnalyzer
- METAnalyzer
- METAnalyzerBase
Expand Down Expand Up @@ -65,7 +64,6 @@
- ECALRecHitAnalyzer
- BeamHaloAnalyzer
- DataCertificationJetMET
- JetMETDQMOfflineClient
- SUSYDQMAnalyzer

\subsection tests Unit tests and examples
Expand Down
7 changes: 0 additions & 7 deletions DQMOffline/JetMET/interface/CaloTowerAnalyzer.h
Expand Up @@ -7,8 +7,6 @@
// date: 02.28.2007
// note: code rewrite

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

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Utilities/interface/InputTag.h"
Expand All @@ -32,14 +30,9 @@ class CaloTowerAnalyzer: public DQMEDAnalyzer {
virtual void analyze(const edm::Event&, const edm::EventSetup&);
virtual void dqmbeginRun(const edm::Run& ,const edm::EventSetup&);
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
//virtual void beginJob();
virtual void endJob();

private:

// DAQ Tools
DQMStore* dbe_;

// Inputs from Configuration
edm::EDGetTokenT<edm::View<reco::Candidate> > caloTowersLabel_;
std::vector< edm::InputTag > HLTBitLabel_ ;
Expand Down
16 changes: 3 additions & 13 deletions DQMOffline/JetMET/interface/DataCertificationJetMET.h
Expand Up @@ -17,30 +17,21 @@
#include "FWCore/Framework/interface/MakerMacros.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
//
// class decleration
//

class DataCertificationJetMET : public edm::EDAnalyzer {
class DataCertificationJetMET : public DQMEDHarvester {
public:
explicit DataCertificationJetMET(const edm::ParameterSet&);
~DataCertificationJetMET();

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


virtual void endRun(const edm::Run&, const edm::EventSetup&) ;

virtual void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&);
virtual void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&);
virtual void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) ;

MonitorElement* reportSummary;
MonitorElement* CertificationSummary;
Expand All @@ -50,7 +41,6 @@ class DataCertificationJetMET : public edm::EDAnalyzer {
// ----------member data ---------------------------

edm::ParameterSet conf_;
DQMStore * dbe_;
edm::Service<TFileService> fs_;
int verbose_;
bool InMemory_;
Expand Down
79 changes: 0 additions & 79 deletions DQMOffline/JetMET/interface/JetMETDQMOfflineClient.h

This file was deleted.

6 changes: 1 addition & 5 deletions DQMOffline/JetMET/python/dataCertificationJetMET_cff.py
@@ -1,9 +1,5 @@
import FWCore.ParameterSet.Config as cms

from DQMOffline.JetMET.jetMETDQMOfflineClient_cfi import *
from DQMOffline.JetMET.dataCertificationJetMET_cfi import *

dataCertificationJetMETSequence = cms.Sequence(jetMETDQMOfflineClient + qTesterJet + qTesterMET + dataCertificationJetMET)

#dataCertificationJetMETSequence = cms.Sequence(jetMETDQMOfflineClient + qTesterJet + qTesterMET + dataCertificationJetMET)
#dataCertificationJetMETSequence = cms.Sequence(jetMETDQMOfflineClient + qTesterJet + qTesterMET )
dataCertificationJetMETSequence = cms.Sequence(qTesterJet + qTesterMET + dataCertificationJetMET)
11 changes: 0 additions & 11 deletions DQMOffline/JetMET/python/jetMETDQMOfflineClient_cfi.py

This file was deleted.

27 changes: 9 additions & 18 deletions DQMOffline/JetMET/src/CaloTowerAnalyzer.cc
Expand Up @@ -54,7 +54,6 @@
#include <cmath>
#include <memory>
#include <TLorentzVector.h>
#include "DQMServices/Core/interface/DQMStore.h"
#include "CommonTools/RecoAlgos/interface/HBHENoiseFilter.h"

using namespace reco;
Expand Down Expand Up @@ -84,28 +83,23 @@ CaloTowerAnalyzer::CaloTowerAnalyzer(const edm::ParameterSet & iConfig)
void CaloTowerAnalyzer::dqmbeginRun(const edm::Run& iRun, const edm::EventSetup& iSetup)
{
Nevents = 0;
// get ahold of back-end interface
dbe_ = edm::Service<DQMStore>().operator->();
if (dbe_) {

dbe_->setCurrentFolder(FolderName_);
}

void CaloTowerAnalyzer::bookHistograms(DQMStore::IBooker & ibooker,
edm::Run const & iRun,
edm::EventSetup const & )
{
ibooker.setCurrentFolder(FolderName_);

//Store number of events which pass each HLT bit
for(unsigned int i = 0 ; i < HLTBitLabel_.size() ; i++ )
{
if( HLTBitLabel_[i].label().size() )
{
hCT_NEvents_HLT.push_back( dbe_->book1D("METTask_CT_"+HLTBitLabel_[i].label(),HLTBitLabel_[i].label(),2,-0.5,1.5) );
hCT_NEvents_HLT.push_back( ibooker.book1D("METTask_CT_"+HLTBitLabel_[i].label(),HLTBitLabel_[i].label(),2,-0.5,1.5) );
}
}
}
}
}

void CaloTowerAnalyzer::bookHistograms(DQMStore::IBooker & ibooker,
edm::Run const & iRun,
edm::EventSetup const & )
{
ibooker.setCurrentFolder(FolderName_);
//--Store number of events used
hCT_Nevents = ibooker.book1D("METTask_CT_Nevents","",1,0,1);
//--Data integrated over all events and stored by CaloTower(ieta,iphi)
Expand Down Expand Up @@ -396,6 +390,3 @@ void CaloTowerAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup&

}

void CaloTowerAnalyzer::endJob()
{
}

0 comments on commit c0d5cc8

Please sign in to comment.