CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
HGCalUncalibRecHitWorkerWeights Class Reference

#include <HGCalUncalibRecHitWorkerWeights.h>

Inheritance diagram for HGCalUncalibRecHitWorkerWeights:
HGCalUncalibRecHitWorkerBaseClass

Public Member Functions

 HGCalUncalibRecHitWorkerWeights (const edm::ParameterSet &, edm::ConsumesCollector iC)
 
bool runHGCEE (const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGCeeUncalibratedRecHitCollection &result) override
 
bool runHGCHEscint (const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGChebUncalibratedRecHitCollection &result) override
 
bool runHGCHEsil (const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGChefUncalibratedRecHitCollection &result) override
 
bool runHGCHFNose (const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGChfnoseUncalibratedRecHitCollection &result) override
 
 ~HGCalUncalibRecHitWorkerWeights () override
 
- Public Member Functions inherited from HGCalUncalibRecHitWorkerBaseClass
 HGCalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &ps, edm::ConsumesCollector iC)
 
virtual ~HGCalUncalibRecHitWorkerBaseClass ()
 

Protected Member Functions

bool run (const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &uncalibMaker, edm::SortedCollection< HGCUncalibratedRecHit > &result)
 

Protected Attributes

HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_ee_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_heb_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_hef_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_hfnose_
 

Detailed Description

Definition at line 25 of file HGCalUncalibRecHitWorkerWeights.h.

Constructor & Destructor Documentation

◆ HGCalUncalibRecHitWorkerWeights()

HGCalUncalibRecHitWorkerWeights::HGCalUncalibRecHitWorkerWeights ( const edm::ParameterSet ps,
edm::ConsumesCollector  iC 
)

Definition at line 62 of file HGCalUncalibRecHitWorkerWeights.cc.

References configureIt(), edm::ParameterSet::getParameterSet(), uncalibMaker_ee_, uncalibMaker_heb_, uncalibMaker_hef_, and uncalibMaker_hfnose_.

64  const edm::ParameterSet& ee_cfg = ps.getParameterSet("HGCEEConfig");
65  const edm::ParameterSet& hef_cfg = ps.getParameterSet("HGCHEFConfig");
66  const edm::ParameterSet& heb_cfg = ps.getParameterSet("HGCHEBConfig");
67  const edm::ParameterSet& hfnose_cfg = ps.getParameterSet("HGCHFNoseConfig");
71  configureIt(hfnose_cfg, uncalibMaker_hfnose_);
72 }
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &ps, edm::ConsumesCollector iC)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_

◆ ~HGCalUncalibRecHitWorkerWeights()

HGCalUncalibRecHitWorkerWeights::~HGCalUncalibRecHitWorkerWeights ( )
inlineoverride

Definition at line 28 of file HGCalUncalibRecHitWorkerWeights.h.

28 {};

Member Function Documentation

◆ run()

bool HGCalUncalibRecHitWorkerWeights::run ( const edm::ESHandle< HGCalGeometry > &  geom,
const HGCalDigiCollection digis,
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &  uncalibMaker,
edm::SortedCollection< HGCUncalibratedRecHit > &  result 
)
protected

Definition at line 74 of file HGCalUncalibRecHitWorkerWeights.cc.

References relativeConstraints::geom, HGCalUncalibRecHitRecWeightsAlgo< C >::makeRecHit(), mps_fire::result, HGCalUncalibRecHitRecWeightsAlgo< C >::setGeometry(), and edm::SortedCollection< T, SORT >::size().

Referenced by runHGCEE(), runHGCHEscint(), runHGCHEsil(), and runHGCHFNose().

77  {
78  uncalibMaker.setGeometry(geom);
79  result.reserve(result.size() + digis.size());
80  for (const auto& digi : digis)
81  result.push_back(uncalibMaker.makeRecHit(digi));
82  return true;
83 }
bool setGeometry(const edm::ESHandle< HGCalGeometry > &geom)
size_type size() const
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame)
Compute HGCUncalibratedRecHit from DataFrame.

◆ runHGCEE()

bool HGCalUncalibRecHitWorkerWeights::runHGCEE ( const edm::ESHandle< HGCalGeometry > &  geom,
const HGCalDigiCollection digis,
HGCeeUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 85 of file HGCalUncalibRecHitWorkerWeights.cc.

References relativeConstraints::geom, mps_fire::result, run(), and uncalibMaker_ee_.

87  {
88  return run(geom, digis, uncalibMaker_ee_, result);
89 }
bool run(const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &uncalibMaker, edm::SortedCollection< HGCUncalibratedRecHit > &result)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_

◆ runHGCHEscint()

bool HGCalUncalibRecHitWorkerWeights::runHGCHEscint ( const edm::ESHandle< HGCalGeometry > &  geom,
const HGCalDigiCollection digis,
HGChebUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 97 of file HGCalUncalibRecHitWorkerWeights.cc.

References relativeConstraints::geom, mps_fire::result, run(), and uncalibMaker_heb_.

99  {
100  return run(geom, digis, uncalibMaker_heb_, result);
101 }
bool run(const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &uncalibMaker, edm::SortedCollection< HGCUncalibratedRecHit > &result)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_

◆ runHGCHEsil()

bool HGCalUncalibRecHitWorkerWeights::runHGCHEsil ( const edm::ESHandle< HGCalGeometry > &  geom,
const HGCalDigiCollection digis,
HGChefUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 91 of file HGCalUncalibRecHitWorkerWeights.cc.

References relativeConstraints::geom, mps_fire::result, run(), and uncalibMaker_hef_.

93  {
94  return run(geom, digis, uncalibMaker_hef_, result);
95 }
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
bool run(const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &uncalibMaker, edm::SortedCollection< HGCUncalibratedRecHit > &result)

◆ runHGCHFNose()

bool HGCalUncalibRecHitWorkerWeights::runHGCHFNose ( const edm::ESHandle< HGCalGeometry > &  geom,
const HGCalDigiCollection digis,
HGChfnoseUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 103 of file HGCalUncalibRecHitWorkerWeights.cc.

References relativeConstraints::geom, mps_fire::result, run(), and uncalibMaker_hfnose_.

105  {
106  return run(geom, digis, uncalibMaker_hfnose_, result);
107 }
bool run(const edm::ESHandle< HGCalGeometry > &geom, const HGCalDigiCollection &digis, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &uncalibMaker, edm::SortedCollection< HGCUncalibratedRecHit > &result)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_

Member Data Documentation

◆ uncalibMaker_ee_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
protected

Definition at line 44 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by HGCalUncalibRecHitWorkerWeights(), and runHGCEE().

◆ uncalibMaker_heb_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
protected

◆ uncalibMaker_hef_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
protected

◆ uncalibMaker_hfnose_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hfnose_
protected