From f2738dcc7e9d6a67478935fb7d76b257c68e27c7 Mon Sep 17 00:00:00 2001 From: wmtan Date: Tue, 12 Nov 2013 00:57:39 +0100 Subject: [PATCH] Remove mutable keyword by removing const declaration from unused function --- SimDataFormats/HiGenData/interface/GenHIEvent.h | 4 ++-- SimDataFormats/HiGenData/src/GenHIEvent.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SimDataFormats/HiGenData/interface/GenHIEvent.h b/SimDataFormats/HiGenData/interface/GenHIEvent.h index be9ab9ee0ad6f..14c329c28b944 100644 --- a/SimDataFormats/HiGenData/interface/GenHIEvent.h +++ b/SimDataFormats/HiGenData/interface/GenHIEvent.h @@ -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 getSubEvent(unsigned int sub_id) const; int getNsubs() const {return subevents_.size();} private: - mutable SubEventCollection subevents_; + SubEventCollection subevents_; int sel_; double b_; diff --git a/SimDataFormats/HiGenData/src/GenHIEvent.cc b/SimDataFormats/HiGenData/src/GenHIEvent.cc index 1191e6d191d70..5997ff0214fc2 100644 --- a/SimDataFormats/HiGenData/src/GenHIEvent.cc +++ b/SimDataFormats/HiGenData/src/GenHIEvent.cc @@ -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 refs;