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.

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

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 }
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
HGCalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &ps, edm::ConsumesCollector iC)
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > ee_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hef_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hfnose_geometry_token_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > 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.

References mps_fire::result, and uncalibMaker_ee_.

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

◆ runHGCHEscint()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 100 of file HGCalUncalibRecHitWorkerWeights.cc.

References mps_fire::result, and uncalibMaker_heb_.

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

◆ runHGCHEsil()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 94 of file HGCalUncalibRecHitWorkerWeights.cc.

References mps_fire::result, and uncalibMaker_hef_.

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

◆ runHGCHFNose()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 106 of file HGCalUncalibRecHitWorkerWeights.cc.

References mps_fire::result, and uncalibMaker_hfnose_.

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

◆ set()

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

Implements HGCalUncalibRecHitWorkerBaseClass.

Definition at line 75 of file HGCalUncalibRecHitWorkerWeights.cc.

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

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 }
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > ee_geometry_token_
bool getData(T &iHolder) const
Definition: EventSetup.h:122
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hef_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hfnose_geometry_token_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > 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