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 ( const edm::ParameterSet ps)

Definition at line 59 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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 }
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &)
HGCalUncalibRecHitWorkerWeights::~HGCalUncalibRecHitWorkerWeights ( )
inlineoverride

Definition at line 27 of file HGCalUncalibRecHitWorkerWeights.h.

References mps_fire::result.

27 {};

Member Function Documentation

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 90 of file HGCalUncalibRecHitWorkerWeights.cc.

References edm::SortedCollection< T, SORT >::push_back(), and uncalibMaker_ee_.

91  {
92  result.push_back(uncalibMaker_ee_.makeRecHit(*itdg));
93  return true;
94 }
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
bool HGCalUncalibRecHitWorkerWeights::runHGCHEscint ( const HGCalDigiCollection::const_iterator digi,
HGChebUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 102 of file HGCalUncalibRecHitWorkerWeights.cc.

References edm::SortedCollection< T, SORT >::push_back(), and uncalibMaker_heb_.

103  {
104  result.push_back(uncalibMaker_heb_.makeRecHit(*itdg));
105  return true;
106 }
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
bool HGCalUncalibRecHitWorkerWeights::runHGCHEsil ( const HGCalDigiCollection::const_iterator digi,
HGChefUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 96 of file HGCalUncalibRecHitWorkerWeights.cc.

References edm::SortedCollection< T, SORT >::push_back(), and uncalibMaker_hef_.

97  {
98  result.push_back(uncalibMaker_hef_.makeRecHit(*itdg));
99  return true;
100 }
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
bool HGCalUncalibRecHitWorkerWeights::runHGCHFNose ( const HGCalDigiCollection::const_iterator digi,
HGChfnoseUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 108 of file HGCalUncalibRecHitWorkerWeights.cc.

References DEFINE_EDM_PLUGIN, edm::SortedCollection< T, SORT >::push_back(), and uncalibMaker_hfnose_.

109  {
110  result.push_back(uncalibMaker_hfnose_.makeRecHit(*itdg));
111  return true;
112 }
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_
void HGCalUncalibRecHitWorkerWeights::set ( const edm::EventSetup es)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 71 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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 }
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
T get() const
Definition: EventSetup.h:73
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
protected
HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
protected
HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
protected
HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hfnose_
protected