CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb > Class Template Reference

#include <HGCRecHitNavigator.h>

Inheritance diagram for HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >:
PFRecHitNavigatorBase

Public Member Functions

void associateNeighbours (reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd) override
 
 HGCRecHitNavigator ()=default
 
 HGCRecHitNavigator (const edm::ParameterSet &iConfig)
 
void init (const edm::EventSetup &iSetup) override
 
- Public Member Functions inherited from PFRecHitNavigatorBase
 PFRecHitNavigatorBase ()=default
 
 PFRecHitNavigatorBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitNavigatorBase ()=default
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Protected Attributes

hgcee * eeNav_
 
hgcheb * hebNav_
 
hgchef * hefNav_
 

Additional Inherited Members

- Public Types inherited from PFRecHitNavigatorBase
typedef std::unordered_map< unsigned, unsigned > DetIdToHitIdx
 
- Protected Member Functions inherited from PFRecHitNavigatorBase
void associateNeighbour (const DetId &id, reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd, short eta, short phi, short depth)
 

Detailed Description

template<ForwardSubdetector D1, typename hgcee, ForwardSubdetector D2, typename hgchef, ForwardSubdetector D3, typename hgcheb>
class HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >

Definition at line 17 of file HGCRecHitNavigator.h.

Constructor & Destructor Documentation

◆ HGCRecHitNavigator() [1/2]

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::HGCRecHitNavigator ( )
default

◆ HGCRecHitNavigator() [2/2]

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::HGCRecHitNavigator ( const edm::ParameterSet iConfig)
inline

Definition at line 44 of file HGCRecHitNavigator.h.

44  {
45  if (iConfig.exists("hgcee")) {
46  eeNav_ = new hgcee(iConfig.getParameter<edm::ParameterSet>("hgcee"));
47  } else {
48  eeNav_ = nullptr;
49  }
50  if (iConfig.exists("hgchef")) {
51  hefNav_ = new hgchef(iConfig.getParameter<edm::ParameterSet>("hgchef"));
52  } else {
53  hefNav_ = nullptr;
54  }
55  if (iConfig.exists("hgcheb")) {
56  hebNav_ = new hgcheb(iConfig.getParameter<edm::ParameterSet>("hgcheb"));
57  } else {
58  hebNav_ = nullptr;
59  }
60  }

References HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::eeNav_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hebNav_, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_, HLTEgPhaseIITestSequence_cff::hgcee, HLTEgPhaseIITestSequence_cff::hgcheb, and HLTEgPhaseIITestSequence_cff::hgchef.

Member Function Documentation

◆ associateNeighbours()

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
void HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::associateNeighbours ( reco::PFRecHit hit,
std::unique_ptr< reco::PFRecHitCollection > &  hits,
edm::RefProd< reco::PFRecHitCollection > &  refProd 
)
inlineoverridevirtual

Implements PFRecHitNavigatorBase.

Definition at line 71 of file HGCRecHitNavigator.h.

73  {
74  switch (DetId(hit.detId()).subdetId()) {
75  case D1:
76  if (nullptr != eeNav_)
77  eeNav_->associateNeighbours(hit, hits, refProd);
78  break;
79  case D2:
80  if (nullptr != hefNav_)
81  hefNav_->associateNeighbours(hit, hits, refProd);
82  break;
83  case D3:
84  if (nullptr != hebNav_)
85  hebNav_->associateNeighbours(hit, hits, refProd);
86  break;
87  default:
88  break;
89  }
90  }

References HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::eeNav_, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hebNav_, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_, and hfClusterShapes_cfi::hits.

◆ fillDescriptions()

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
static void HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 21 of file HGCRecHitNavigator.h.

21  {
23 
24  desc.add<std::string>("name", "PFRecHitHGCNavigator");
25 
27  descee.add<std::string>("name", "PFRecHitHGCEENavigator");
28  descee.add<std::string>("topologySource", "HGCalEESensitive");
29  desc.add<edm::ParameterSetDescription>("hgcee", descee);
30 
32  deschef.add<std::string>("name", "PFRecHitHGCHENavigator");
33  deschef.add<std::string>("topologySource", "HGCalHESiliconSensitive");
34  desc.add<edm::ParameterSetDescription>("hgchef", deschef);
35 
37  deschef.add<std::string>("name", "PFRecHitHGCHENavigator");
38  deschef.add<std::string>("topologySource", "HGCalHEScintillatorSensitive");
39  desc.add<edm::ParameterSetDescription>("hgcheb", descheb);
40 
41  descriptions.add("navigator", desc);
42  }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ init()

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
void HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::init ( const edm::EventSetup iSetup)
inlineoverridevirtual

Implements PFRecHitNavigatorBase.

Definition at line 62 of file HGCRecHitNavigator.h.

62  {
63  if (nullptr != eeNav_)
64  eeNav_->init(iSetup);
65  if (nullptr != hefNav_)
66  hefNav_->init(iSetup);
67  if (nullptr != hebNav_)
68  hebNav_->init(iSetup);
69  }

References HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::eeNav_, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hebNav_, and HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_.

Member Data Documentation

◆ eeNav_

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
hgcee* HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::eeNav_
protected

◆ hebNav_

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
hgcheb* HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hebNav_
protected

◆ hefNav_

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
hgchef* HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_
protected
funct::D1
Divides< A, C > D1
Definition: Factorize.h:136
HGCRecHitNavigator::hebNav_
hgcheb * hebNav_
Definition: HGCRecHitNavigator.h:95
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
funct::D2
Divides< B, C > D2
Definition: Factorize.h:137
HLTEgPhaseIITestSequence_cff.hgchef
hgchef
Definition: HLTEgPhaseIITestSequence_cff.py:1786
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
DetId
Definition: DetId.h:17
HGCRecHitNavigator::eeNav_
hgcee * eeNav_
Definition: HGCRecHitNavigator.h:93
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
edm::ParameterSet
Definition: ParameterSet.h:47
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
HLTEgPhaseIITestSequence_cff.hgcheb
hgcheb
Definition: HLTEgPhaseIITestSequence_cff.py:1782
HLTEgPhaseIITestSequence_cff.hgcee
hgcee
Definition: HLTEgPhaseIITestSequence_cff.py:1778
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
hit
Definition: SiStripHitEffFromCalibTree.cc:88
HGCRecHitNavigator::hefNav_
hgchef * hefNav_
Definition: HGCRecHitNavigator.h:94