Skip to content

Commit

Permalink
changing n*_ variables type to unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiyama committed Oct 6, 2017
1 parent b6c5171 commit 4521566
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions DQMOffline/Trigger/plugins/ObjMonitor.cc
Expand Up @@ -87,7 +87,7 @@ void ObjMonitor::analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup
iEvent.getByToken( jetToken_, jetHandle );
std::vector<reco::PFJet> jets;
std::vector<reco::PFJet> htjets;
if ( int(jetHandle->size()) < njets_ ) return;
if ( jetHandle->size() < njets_ ) return;
for ( auto const & j : *jetHandle ) {
if ( jetSelection_( j ) ) {
if (jetId_=="loose" || jetId_ =="tight"){
Expand All @@ -105,34 +105,34 @@ void ObjMonitor::analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup
}
if ( htjetSelection_( j ) ) htjets.push_back(j);
}
if ( int(jets.size()) < njets_ ) return;
if ( jets.size() < njets_ ) return;

edm::Handle<reco::GsfElectronCollection> eleHandle;
iEvent.getByToken( eleToken_, eleHandle );
std::vector<reco::GsfElectron> electrons;
if ( int(eleHandle->size()) < nelectrons_ ) return;
if ( eleHandle->size() < nelectrons_ ) return;
for ( auto const & e : *eleHandle ) {
if ( eleSelection_( e ) ) electrons.push_back(e);
}
if ( int(electrons.size()) < nelectrons_ ) return;
if ( electrons.size() < nelectrons_ ) return;

edm::Handle<reco::MuonCollection> muoHandle;
iEvent.getByToken( muoToken_, muoHandle );
if ( int(muoHandle->size()) < nmuons_ ) return;
if ( muoHandle->size() < nmuons_ ) return;
std::vector<reco::Muon> muons;
for ( auto const & m : *muoHandle ) {
if ( muoSelection_( m ) ) muons.push_back(m);
}
if ( int(muons.size()) < nmuons_ ) return;
if ( muons.size() < nmuons_ ) return;

edm::Handle<reco::PhotonCollection> phoHandle;
iEvent.getByToken( phoToken_, phoHandle );
if ( int(phoHandle->size()) < nphotons_ ) return;
if ( phoHandle->size() < nphotons_ ) return;
std::vector<reco::Photon> photons;
for ( auto const & m : *phoHandle ) {
if ( phoSelection_( m ) ) photons.push_back(m);
}
if ( int(photons.size()) < nphotons_ ) return;
if ( photons.size() < nphotons_ ) return;


bool passNumCond = num_genTriggerEventFlag_->off() || num_genTriggerEventFlag_->accept( iEvent, iSetup);
Expand Down
8 changes: 4 additions & 4 deletions DQMOffline/Trigger/plugins/ObjMonitor.h
Expand Up @@ -109,10 +109,10 @@ class ObjMonitor : public DQMEDAnalyzer
StringCutObjectSelector<reco::GsfElectron,true> eleSelection_;
StringCutObjectSelector<reco::Muon,true> muoSelection_;
StringCutObjectSelector<reco::Photon,true> phoSelection_;
int njets_;
int nelectrons_;
int nmuons_;
int nphotons_;
unsigned njets_;
unsigned nelectrons_;
unsigned nmuons_;
unsigned nphotons_;

};

Expand Down

0 comments on commit 4521566

Please sign in to comment.