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 HGCEEDigiCollection::const_iterator &digi, HGCeeUncalibratedRecHitCollection &result) override
 
bool run2 (const edm::Event &evt, const HGCHEDigiCollection::const_iterator &digi, HGChefUncalibratedRecHitCollection &result) override
 
bool run3 (const edm::Event &evt, const HGCBHDigiCollection::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< HGCEEDataFrameuncalibMaker_ee_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCBHDataFrameuncalibMaker_heb_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCHEDataFrameuncalibMaker_hef_
 

Detailed Description

Definition at line 27 of file HGCalUncalibRecHitWorkerWeights.h.

Constructor & Destructor Documentation

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

Definition at line 62 of file HGCalUncalibRecHitWorkerWeights.cc.

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

62  :
64 {
65  const edm::ParameterSet& ee_cfg = ps.getParameterSet("HGCEEConfig");
66  const edm::ParameterSet& hef_cfg = ps.getParameterSet("HGCHEFConfig");
67  const edm::ParameterSet& heb_cfg = ps.getParameterSet("HGCHEBConfig");
71 }
HGCalUncalibRecHitRecWeightsAlgo< HGCEEDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCHEDataFrame > uncalibMaker_hef_
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame< DET, HGCSample >> &maker)
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCBHDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &)
HGCalUncalibRecHitWorkerWeights::~HGCalUncalibRecHitWorkerWeights ( )
inlineoverride

Definition at line 31 of file HGCalUncalibRecHitWorkerWeights.h.

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

31 {};

Member Function Documentation

bool HGCalUncalibRecHitWorkerWeights::run1 ( const edm::Event evt,
const HGCEEDigiCollection::const_iterator digi,
HGCeeUncalibratedRecHitCollection result 
)
overridevirtual

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 91 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 100 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 109 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 74 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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

Member Data Documentation

HGCalUncalibRecHitRecWeightsAlgo<HGCEEDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
protected

Definition at line 40 of file HGCalUncalibRecHitWorkerWeights.h.

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

HGCalUncalibRecHitRecWeightsAlgo<HGCBHDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
protected

Definition at line 42 of file HGCalUncalibRecHitWorkerWeights.h.

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

HGCalUncalibRecHitRecWeightsAlgo<HGCHEDataFrame> HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
protected

Definition at line 41 of file HGCalUncalibRecHitWorkerWeights.h.

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