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 &, edm::ConsumesCollector iC)
 
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 &ps, edm::ConsumesCollector iC)
 
virtual ~HGCalUncalibRecHitWorkerBaseClass ()
 

Protected Attributes

edm::ESGetToken< HGCalGeometry, IdealGeometryRecordee_geometry_token_
 
edm::ESGetToken< HGCalGeometry, IdealGeometryRecordhef_geometry_token_
 
edm::ESGetToken< HGCalGeometry, IdealGeometryRecordhfnose_geometry_token_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_ee_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_heb_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_hef_
 
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrameuncalibMaker_hfnose_
 

Detailed Description

Definition at line 25 of file HGCalUncalibRecHitWorkerWeights.h.

Constructor & Destructor Documentation

◆ HGCalUncalibRecHitWorkerWeights()

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

Definition at line 60 of file HGCalUncalibRecHitWorkerWeights.cc.

62  ee_geometry_token_(iC.esConsumes(edm::ESInputTag("", "HGCalEESensitive"))),
63  hef_geometry_token_(iC.esConsumes(edm::ESInputTag("", "HGCalHESiliconSensitive"))),
64  hfnose_geometry_token_(iC.esConsumes(edm::ESInputTag("", "HGCalHFNoseSensitive"))) {
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");
68  const edm::ParameterSet& hfnose_cfg = ps.getParameterSet("HGCHFNoseConfig");
72  configureIt(hfnose_cfg, uncalibMaker_hfnose_);
73 }

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

◆ ~HGCalUncalibRecHitWorkerWeights()

HGCalUncalibRecHitWorkerWeights::~HGCalUncalibRecHitWorkerWeights ( )
inlineoverride

Definition at line 28 of file HGCalUncalibRecHitWorkerWeights.h.

28 {};

Member Function Documentation

◆ runHGCEE()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 88 of file HGCalUncalibRecHitWorkerWeights.cc.

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

References mps_fire::result, and uncalibMaker_ee_.

◆ runHGCHEscint()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 100 of file HGCalUncalibRecHitWorkerWeights.cc.

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

References mps_fire::result, and uncalibMaker_heb_.

◆ runHGCHEsil()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 94 of file HGCalUncalibRecHitWorkerWeights.cc.

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

References mps_fire::result, and uncalibMaker_hef_.

◆ runHGCHFNose()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 106 of file HGCalUncalibRecHitWorkerWeights.cc.

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

References mps_fire::result, and uncalibMaker_hfnose_.

◆ set()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 75 of file HGCalUncalibRecHitWorkerWeights.cc.

75  {
76  if (uncalibMaker_ee_.isSiFESim()) {
78  }
79  if (uncalibMaker_hef_.isSiFESim()) {
81  }
82  uncalibMaker_heb_.setGeometry(nullptr);
83  if (uncalibMaker_hfnose_.isSiFESim()) {
85  }
86 }

References ee_geometry_token_, edm::EventSetup::getData(), hef_geometry_token_, hfnose_geometry_token_, uncalibMaker_ee_, uncalibMaker_heb_, uncalibMaker_hef_, and uncalibMaker_hfnose_.

Member Data Documentation

◆ ee_geometry_token_

edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> HGCalUncalibRecHitWorkerWeights::ee_geometry_token_
protected

Definition at line 40 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by set().

◆ hef_geometry_token_

edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> HGCalUncalibRecHitWorkerWeights::hef_geometry_token_
protected

Definition at line 41 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by set().

◆ hfnose_geometry_token_

edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> HGCalUncalibRecHitWorkerWeights::hfnose_geometry_token_
protected

Definition at line 42 of file HGCalUncalibRecHitWorkerWeights.h.

Referenced by set().

◆ 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
HGCalUncalibRecHitWorkerWeights::hfnose_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hfnose_geometry_token_
Definition: HGCalUncalibRecHitWorkerWeights.h:42
edm::ESInputTag
Definition: ESInputTag.h:87
HGCalUncalibRecHitWorkerWeights::uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
Definition: HGCalUncalibRecHitWorkerWeights.h:43
HGCalUncalibRecHitWorkerWeights::uncalibMaker_hfnose_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_
Definition: HGCalUncalibRecHitWorkerWeights.h:46
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
HGCalUncalibRecHitWorkerWeights::uncalibMaker_hef_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
Definition: HGCalUncalibRecHitWorkerWeights.h:44
configureIt
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
Definition: HGCalUncalibRecHitWorkerWeights.cc:10
HGCalUncalibRecHitWorkerWeights::hef_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hef_geometry_token_
Definition: HGCalUncalibRecHitWorkerWeights.h:41
edm::ParameterSet
Definition: ParameterSet.h:47
HGCalUncalibRecHitWorkerWeights::ee_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > ee_geometry_token_
Definition: HGCalUncalibRecHitWorkerWeights.h:40
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
mps_fire.result
result
Definition: mps_fire.py:311
HGCalUncalibRecHitWorkerWeights::uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
Definition: HGCalUncalibRecHitWorkerWeights.h:45
HGCalUncalibRecHitWorkerBaseClass::HGCalUncalibRecHitWorkerBaseClass
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &ps, edm::ConsumesCollector iC)
Definition: HGCalUncalibRecHitWorkerBaseClass.h:18
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128