Skip to content

Commit f4b04d8

Browse files
committed
Merge pull request cms-sw#1415 from wmtan/RemoveMutableKeywordFromHiGenData
Multithreading fixes -- Remove mutable keyword by removing const declaration from unused function
2 parents f681468 + f2738dc commit f4b04d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SimDataFormats/HiGenData/interface/GenHIEvent.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ namespace edm {
6464
double EtMR() const {return EtMR_;}
6565
int NchargedPtCut() const {return nChargedPtCut_;}
6666
int NchargedPtCutMR() const {return nChargedPtCutMR_;}
67-
void setGenParticles(const reco::GenParticleCollection*) const;
67+
void setGenParticles(const reco::GenParticleCollection*);
6868
const std::vector<reco::GenParticleRef> getSubEvent(unsigned int sub_id) const;
6969

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

7272
private:
7373

74-
mutable SubEventCollection subevents_;
74+
SubEventCollection subevents_;
7575
int sel_;
7676

7777
double b_;

SimDataFormats/HiGenData/src/GenHIEvent.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "SimDataFormats/HiGenData/interface/GenHIEvent.h"
33
using namespace edm;
44

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

0 commit comments

Comments
 (0)