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 run1 (const edm::Event &evt, const HGCalDigiCollection::const_iterator &digi, HGCeeUncalibratedRecHitCollection &result) override
 
bool run2 (const edm::Event &evt, const HGCalDigiCollection::const_iterator &digi, HGChefUncalibratedRecHitCollection &result) override
 
bool run3 (const edm::Event &evt, const HGCalDigiCollection::const_iterator &digi, HGChebUncalibratedRecHitCollection &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_
 

Detailed Description

Definition at line 25 of file HGCalUncalibRecHitWorkerWeights.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file HGCalUncalibRecHitWorkerWeights.cc.

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

61  :
63 {
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");
70 }
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_
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &)
HGCalUncalibRecHitWorkerWeights::~HGCalUncalibRecHitWorkerWeights ( )
inlineoverride

Definition at line 29 of file HGCalUncalibRecHitWorkerWeights.h.

References mps_fire::result, ntuplemaker::run1, and compare_using_db::run2.

29 {};

Member Function Documentation

bool HGCalUncalibRecHitWorkerWeights::run1 ( const edm::Event evt,
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_.

93 {
94  result.push_back(uncalibMaker_ee_.makeRecHit(*itdg));
95  return true;
96 }
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
bool HGCalUncalibRecHitWorkerWeights::run2 ( const edm::Event evt,
const HGCalDigiCollection::const_iterator digi,
HGChefUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 99 of file HGCalUncalibRecHitWorkerWeights.cc.

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

102 {
103  result.push_back(uncalibMaker_hef_.makeRecHit(*itdg));
104  return true;
105 }
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
bool HGCalUncalibRecHitWorkerWeights::run3 ( const edm::Event evt,
const HGCalDigiCollection::const_iterator digi,
HGChebUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 108 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 73 of file HGCalUncalibRecHitWorkerWeights.cc.

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

74 {
75  if (uncalibMaker_ee_.isSiFESim()) {
76  edm::ESHandle<HGCalGeometry> hgceeGeoHandle;
77  es.get<IdealGeometryRecord>().get("HGCalEESensitive",hgceeGeoHandle) ;
78  uncalibMaker_ee_.setGeometry(hgceeGeoHandle.product());
79  }
80  if (uncalibMaker_hef_.isSiFESim()) {
81  edm::ESHandle<HGCalGeometry> hgchefGeoHandle;
82  es.get<IdealGeometryRecord>().get("HGCalHESiliconSensitive",hgchefGeoHandle) ;
83  uncalibMaker_hef_.setGeometry(hgchefGeoHandle.product());
84  }
85  uncalibMaker_heb_.setGeometry(nullptr);
86 }
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
T get() const
Definition: EventSetup.h:62
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
protected

Definition at line 38 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by HGCalUncalibRecHitWorkerWeights(), run1(), and set().

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
protected

Definition at line 40 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by HGCalUncalibRecHitWorkerWeights(), run3(), and set().

HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
protected

Definition at line 39 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by HGCalUncalibRecHitWorkerWeights(), run2(), and set().