Skip to content

Commit

Permalink
Merge pull request cms-sw#1415 from wmtan/RemoveMutableKeywordFromHiG…
Browse files Browse the repository at this point in the history
…enData

Multithreading fixes -- Remove mutable keyword by removing const declaration from unused function
  • Loading branch information
ktf committed Nov 12, 2013
2 parents f681468 + f2738dc commit f4b04d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SimDataFormats/HiGenData/interface/GenHIEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ namespace edm {
double EtMR() const {return EtMR_;}
int NchargedPtCut() const {return nChargedPtCut_;}
int NchargedPtCutMR() const {return nChargedPtCutMR_;}
void setGenParticles(const reco::GenParticleCollection*) const;
void setGenParticles(const reco::GenParticleCollection*);
const std::vector<reco::GenParticleRef> getSubEvent(unsigned int sub_id) const;

int getNsubs() const {return subevents_.size();}

private:

mutable SubEventCollection subevents_;
SubEventCollection subevents_;
int sel_;

double b_;
Expand Down
2 changes: 1 addition & 1 deletion SimDataFormats/HiGenData/src/GenHIEvent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "SimDataFormats/HiGenData/interface/GenHIEvent.h"
using namespace edm;

void GenHIEvent::setGenParticles(const reco::GenParticleCollection* input) const {
void GenHIEvent::setGenParticles(const reco::GenParticleCollection* input) {
subevents_.reserve(nhard_);
for(int i = 0; i < nhard_; ++i){
std::vector<reco::GenParticleRef> refs;
Expand Down

0 comments on commit f4b04d8

Please sign in to comment.