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 useTime)
 
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, bool localTime)
 
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_
 

Additional Inherited Members

- Public Attributes inherited from HGCalUncalibRecHitWorkerBaseClass
bool computeLocalTime_ = false
 

Detailed Description

Definition at line 25 of file HGCalUncalibRecHitWorkerWeights.h.

Constructor & Destructor Documentation

◆ HGCalUncalibRecHitWorkerWeights()

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

Definition at line 62 of file HGCalUncalibRecHitWorkerWeights.cc.

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

65  : HGCalUncalibRecHitWorkerBaseClass(ps, iC, useTime) {
66  const edm::ParameterSet& ee_cfg = ps.getParameterSet("HGCEEConfig");
67  const edm::ParameterSet& hef_cfg = ps.getParameterSet("HGCHEFConfig");
68  const edm::ParameterSet& heb_cfg = ps.getParameterSet("HGCHEBConfig");
69  const edm::ParameterSet& hfnose_cfg = ps.getParameterSet("HGCHFNoseConfig");
73  configureIt(hfnose_cfg, uncalibMaker_hfnose_);
74  computeLocalTime_ = useTime;
75 }
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &ps, edm::ConsumesCollector iC, bool localTime)
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 77 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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

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

◆ runHGCEE()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 88 of file HGCalUncalibRecHitWorkerWeights.cc.

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

90  {
91  return run(geom, digis, uncalibMaker_ee_, result);
92 }
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 100 of file HGCalUncalibRecHitWorkerWeights.cc.

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

102  {
103  return run(geom, digis, uncalibMaker_heb_, result);
104 }
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 94 of file HGCalUncalibRecHitWorkerWeights.cc.

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

96  {
97  return run(geom, digis, uncalibMaker_hef_, result);
98 }
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 106 of file HGCalUncalibRecHitWorkerWeights.cc.

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

108  {
109  return run(geom, digis, uncalibMaker_hfnose_, result);
110 }
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