CMS 3D CMS Logo

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

#include <HGCalUncalibRecHitWorkerWeights.h>

Inheritance diagram for HGCalUncalibRecHitWorkerWeights:
HGCalUncalibRecHitWorkerBaseClass

Public Member Functions

 HGCalUncalibRecHitWorkerWeights (const edm::ParameterSet &)
 
bool runHGCEE (const HGCalDigiCollection::const_iterator &digi, HGCeeUncalibratedRecHitCollection &result) override
 
bool runHGCHEscint (const HGCalDigiCollection::const_iterator &digi, HGChebUncalibratedRecHitCollection &result) override
 
bool runHGCHEsil (const HGCalDigiCollection::const_iterator &digi, HGChefUncalibratedRecHitCollection &result) override
 
bool runHGCHFNose (const HGCalDigiCollection::const_iterator &digi, HGChfnoseUncalibratedRecHitCollection &result) override
 
void set (const edm::EventSetup &es) override
 
 ~HGCalUncalibRecHitWorkerWeights () override
 
- Public Member Functions inherited from HGCalUncalibRecHitWorkerBaseClass
 HGCalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &)
 
virtual ~HGCalUncalibRecHitWorkerBaseClass ()
 

Protected Attributes

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

Detailed Description

Definition at line 24 of file HGCalUncalibRecHitWorkerWeights.h.

Constructor & Destructor Documentation

◆ HGCalUncalibRecHitWorkerWeights()

HGCalUncalibRecHitWorkerWeights::HGCalUncalibRecHitWorkerWeights ( const edm::ParameterSet ps)

Definition at line 59 of file HGCalUncalibRecHitWorkerWeights.cc.

61  const edm::ParameterSet& ee_cfg = ps.getParameterSet("HGCEEConfig");
62  const edm::ParameterSet& hef_cfg = ps.getParameterSet("HGCHEFConfig");
63  const edm::ParameterSet& heb_cfg = ps.getParameterSet("HGCHEBConfig");
64  const edm::ParameterSet& hfnose_cfg = ps.getParameterSet("HGCHFNoseConfig");
68  configureIt(hfnose_cfg, uncalibMaker_hfnose_);
69 }

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

◆ ~HGCalUncalibRecHitWorkerWeights()

HGCalUncalibRecHitWorkerWeights::~HGCalUncalibRecHitWorkerWeights ( )
inlineoverride

Definition at line 27 of file HGCalUncalibRecHitWorkerWeights.h.

27 {};

Member Function Documentation

◆ runHGCEE()

bool HGCalUncalibRecHitWorkerWeights::runHGCEE ( const HGCalDigiCollection::const_iterator digi,
HGCeeUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 90 of file HGCalUncalibRecHitWorkerWeights.cc.

91  {
92  result.push_back(uncalibMaker_ee_.makeRecHit(*itdg));
93  return true;
94 }

References mps_fire::result, and uncalibMaker_ee_.

◆ runHGCHEscint()

bool HGCalUncalibRecHitWorkerWeights::runHGCHEscint ( const HGCalDigiCollection::const_iterator digi,
HGChebUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 102 of file HGCalUncalibRecHitWorkerWeights.cc.

103  {
104  result.push_back(uncalibMaker_heb_.makeRecHit(*itdg));
105  return true;
106 }

References mps_fire::result, and uncalibMaker_heb_.

◆ runHGCHEsil()

bool HGCalUncalibRecHitWorkerWeights::runHGCHEsil ( const HGCalDigiCollection::const_iterator digi,
HGChefUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 96 of file HGCalUncalibRecHitWorkerWeights.cc.

97  {
98  result.push_back(uncalibMaker_hef_.makeRecHit(*itdg));
99  return true;
100 }

References mps_fire::result, and uncalibMaker_hef_.

◆ runHGCHFNose()

bool HGCalUncalibRecHitWorkerWeights::runHGCHFNose ( const HGCalDigiCollection::const_iterator digi,
HGChfnoseUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 108 of file HGCalUncalibRecHitWorkerWeights.cc.

109  {
110  result.push_back(uncalibMaker_hfnose_.makeRecHit(*itdg));
111  return true;
112 }

References mps_fire::result, and uncalibMaker_hfnose_.

◆ set()

void HGCalUncalibRecHitWorkerWeights::set ( const edm::EventSetup es)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 71 of file HGCalUncalibRecHitWorkerWeights.cc.

71  {
72  if (uncalibMaker_ee_.isSiFESim()) {
73  edm::ESHandle<HGCalGeometry> hgceeGeoHandle;
74  es.get<IdealGeometryRecord>().get("HGCalEESensitive", hgceeGeoHandle);
75  uncalibMaker_ee_.setGeometry(hgceeGeoHandle.product());
76  }
77  if (uncalibMaker_hef_.isSiFESim()) {
78  edm::ESHandle<HGCalGeometry> hgchefGeoHandle;
79  es.get<IdealGeometryRecord>().get("HGCalHESiliconSensitive", hgchefGeoHandle);
80  uncalibMaker_hef_.setGeometry(hgchefGeoHandle.product());
81  }
82  uncalibMaker_heb_.setGeometry(nullptr);
83  if (uncalibMaker_hfnose_.isSiFESim()) {
84  edm::ESHandle<HGCalGeometry> hgchfnoseGeoHandle;
85  es.get<IdealGeometryRecord>().get("HGCalHFNoseSensitive", hgchfnoseGeoHandle);
86  uncalibMaker_hfnose_.setGeometry(hgchfnoseGeoHandle.product());
87  }
88 }

References edm::EventSetup::get(), get, edm::ESHandle< T >::product(), uncalibMaker_ee_, uncalibMaker_heb_, uncalibMaker_hef_, and uncalibMaker_hfnose_.

Member Data Documentation

◆ uncalibMaker_ee_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
protected

◆ uncalibMaker_heb_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
protected

◆ uncalibMaker_hef_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
protected

◆ uncalibMaker_hfnose_

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hfnose_
protected
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
Definition: HGCalUncalibRecHitWorkerWeights.h:39
HGCalUncalibRecHitWorkerWeights::uncalibMaker_hfnose_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_
Definition: HGCalUncalibRecHitWorkerWeights.h:42
HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
Definition: HGCalUncalibRecHitWorkerWeights.h:40
configureIt
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
Definition: HGCalUncalibRecHitWorkerWeights.cc:9
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
HGCalUncalibRecHitWorkerBaseClass::HGCalUncalibRecHitWorkerBaseClass
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &)
Definition: HGCalUncalibRecHitWorkerBaseClass.h:17
edm::ESHandle
Definition: DTSurvey.h:22
edm::ParameterSet
Definition: ParameterSet.h:47
get
#define get
mps_fire.result
result
Definition: mps_fire.py:311
HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
Definition: HGCalUncalibRecHitWorkerWeights.h:41
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128