Skip to content

Commit

Permalink
Merge CMSSW_10_5_X into CMSSW_10_5_DEVEL_X.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Feb 4, 2019
2 parents 829c852 + 5a1e9c4 commit a25c02d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ HGCalRecHitProducer::HGCalRecHitProducer(const edm::ParameterSet& ps) :
hebUncalibRecHitCollection_( consumes<HGChebUncalibratedRecHitCollection>( ps.getParameter<edm::InputTag>("HGCHEBuncalibRecHitCollection") ) ),
eeRechitCollection_( ps.getParameter<std::string>("HGCEErechitCollection") ),
hefRechitCollection_( ps.getParameter<std::string>("HGCHEFrechitCollection") ),
hebRechitCollection_( ps.getParameter<std::string>("HGCHEBrechitCollection") ) {
hebRechitCollection_( ps.getParameter<std::string>("HGCHEBrechitCollection") ),
worker_{ HGCalRecHitWorkerFactory::get()->create(ps.getParameter<std::string>("algo"), ps) }
{
produces< HGCeeRecHitCollection >(eeRechitCollection_);
produces< HGChefRecHitCollection >(hefRechitCollection_);
produces< HGChebRecHitCollection >(hebRechitCollection_);

const std::string& componentType = ps.getParameter<std::string>("algo");
worker_.reset( HGCalRecHitWorkerFactory::get()->create(componentType, ps) );
}

HGCalRecHitProducer::~HGCalRecHitProducer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ HGCalUncalibRecHitProducer::HGCalUncalibRecHitProducer(const edm::ParameterSet&
hebDigiCollection_( consumes<HGCalDigiCollection>( ps.getParameter<edm::InputTag>("HGCHEBdigiCollection") ) ),
eeHitCollection_( ps.getParameter<std::string>("HGCEEhitCollection") ),
hefHitCollection_( ps.getParameter<std::string>("HGCHEFhitCollection") ),
hebHitCollection_( ps.getParameter<std::string>("HGCHEBhitCollection") )
hebHitCollection_( ps.getParameter<std::string>("HGCHEBhitCollection") ),
worker_{ HGCalUncalibRecHitWorkerFactory::get()->create(ps.getParameter<std::string>("algo"), ps) }
{

produces< HGCeeUncalibratedRecHitCollection >(eeHitCollection_);
produces< HGChefUncalibratedRecHitCollection >(hefHitCollection_);
produces< HGChebUncalibratedRecHitCollection >(hebHitCollection_);

const std::string& componentType = ps.getParameter<std::string>("algo");
worker_.reset( HGCalUncalibRecHitWorkerFactory::get()->create(componentType, ps) );

}

Expand Down

0 comments on commit a25c02d

Please sign in to comment.