Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72702
b: "refs/heads/CMSSW_7_1_X"
c: 1c8f18e
h: "refs/heads/CMSSW_7_1_X"
v: v3
  • Loading branch information
Vladimir Rekovic committed Aug 30, 2009
1 parent 39e0ce0 commit 3345b1e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": fd97a97dc24cd3c17a3642e0633fc1b516deba40
"refs/heads/CMSSW_7_1_X": 1c8f18e7ece26c2ce1336d9882a61836e3544b96
3 changes: 2 additions & 1 deletion trunk/DQMOffline/Trigger/interface/FourVectorHLTOffline.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// Rewritten by: Vladimir Rekovic
// Date: May 2009
//
// $Id: FourVectorHLTOffline.h,v 1.26 2009/07/10 01:16:37 rekovic Exp $
// $Id: FourVectorHLTOffline.h,v 1.27 2009/08/05 16:31:24 rekovic Exp $
//
//

Expand Down Expand Up @@ -167,6 +167,7 @@ class FourVectorHLTOffline : public edm::EDAnalyzer {

std::string dirname_;
std::string processname_;
std::string muonRecoCollectionName_;
bool monitorDaemon_;
int theHLTOutputType;
edm::InputTag triggerSummaryLabel_;
Expand Down
3 changes: 2 additions & 1 deletion trunk/DQMOffline/Trigger/python/FourVectorHLTOffline_cfi.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import FWCore.ParameterSet.Config as cms

# $Id: FourVectorHLTOffline_cfi.py,v 1.21 2009/06/04 22:28:48 rekovic Exp $
# $Id: FourVectorHLTOffline_cfi.py,v 1.22 2009/08/06 06:30:02 rekovic Exp $
hltResults = cms.EDFilter("FourVectorHLTOffline",
dirname = cms.untracked.string("HLT/FourVector/source"),
muonRecoCollectionName = cms.untracked.string("muons"),
plotAll = cms.untracked.bool(False),
ptMax = cms.untracked.double(100.0),
ptMin = cms.untracked.double(0.0),
Expand Down
27 changes: 24 additions & 3 deletions trunk/DQMOffline/Trigger/src/FourVectorHLTOffline.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $Id: FourVectorHLTOffline.cc,v 1.38 2009/07/10 01:16:38 rekovic Exp $
// $Id: FourVectorHLTOffline.cc,v 1.39 2009/08/05 16:31:24 rekovic Exp $
// See header file for information.
#include "TMath.h"
#include "DQMOffline/Trigger/interface/FourVectorHLTOffline.h"
Expand Down Expand Up @@ -65,6 +65,8 @@ FourVectorHLTOffline::FourVectorHLTOffline(const edm::ParameterSet& iConfig):
iConfig.getParameter<edm::InputTag>("triggerSummaryLabel");
triggerResultsLabel_ =
iConfig.getParameter<edm::InputTag>("triggerResultsLabel");
muonRecoCollectionName_ =
iConfig.getUntrackedParameter("muonRecoCollectionName", std::string("muons"));

electronEtaMax_ = iConfig.getUntrackedParameter<double>("electronEtaMax",2.5);
electronEtMin_ = iConfig.getUntrackedParameter<double>("electronEtMin",3.0);
Expand Down Expand Up @@ -182,12 +184,31 @@ FourVectorHLTOffline::analyze(const edm::Event& iEvent, const edm::EventSetup& i
}

edm::Handle<reco::MuonCollection> muonHandle;
iEvent.getByLabel("muons",muonHandle);
//iEvent.getByLabel("muons",muonHandle);
iEvent.getByLabel(muonRecoCollectionName_,muonHandle);
if(!muonHandle.isValid()) {
edm::LogInfo("FourVectorHLTOffline") << "muonHandle not found, ";
// "skipping event";
// return;
}
}
if(muonHandle.isValid()) {
for( reco::MuonCollection::const_iterator iter = muonHandle->begin(), iend = muonHandle->end(); iter != iend; ++iter )
{


LogTrace("FourVectorHLTOffline")<< "Found a reco muon" << endl;
if (iter->isStandAloneMuon()) {
LogTrace("FourVectorHLTOffline") << "This muon is STA" <<endl;
}
else if (iter->isGlobalMuon()){
LogTrace("FourVectorHLTOffline") << "This muon is Global" <<endl;
}
else if (iter->isTrackerMuon()){
LogTrace("FourVectorHLTOffline") << "This muon is Tracker" <<endl;
}

} // end for
}

edm::Handle<reco::GsfElectronCollection> gsfElectrons;
iEvent.getByLabel("gsfElectrons",gsfElectrons);
Expand Down

0 comments on commit 3345b1e

Please sign in to comment.