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, edm::ConsumesCollector &cc)
 
void init (const edm::EventSetup &iSetup) override
 
- Public Member Functions inherited from PFRecHitNavigatorBase
 PFRecHitNavigatorBase ()=default
 
 PFRecHitNavigatorBase (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
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 18 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,
edm::ConsumesCollector cc 
)
inline

Definition at line 45 of file HGCRecHitNavigator.h.

References gpuPixelDoublets::cc, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::eeNav_, relativeConstraints::empty, edm::ParameterSet::getParameter(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hebNav_, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_, hltParticleFlowRecHitHGC_cfi::hgcee, hltParticleFlowRecHitHGC_cfi::hgcheb, hltParticleFlowRecHitHGC_cfi::hgchef, and AlCaHLTBitMon_QueryRunRegistry::string.

45  {
46  const auto& pset_hgcee = iConfig.getParameter<edm::ParameterSet>("hgcee");
47  if (!pset_hgcee.empty() && !pset_hgcee.getParameter<std::string>("name").empty()) {
48  eeNav_ = new hgcee(pset_hgcee, cc);
49  } else {
50  eeNav_ = nullptr;
51  }
52  const auto& pset_hgchef = iConfig.getParameter<edm::ParameterSet>("hgchef");
53  if (!pset_hgchef.empty() && !pset_hgchef.getParameter<std::string>("name").empty()) {
54  hefNav_ = new hgchef(pset_hgchef, cc);
55  } else {
56  hefNav_ = nullptr;
57  }
58  const auto& pset_hgcheb = iConfig.getParameter<edm::ParameterSet>("hgcheb");
59  if (!pset_hgcheb.empty() && !pset_hgcheb.getParameter<std::string>("name").empty()) {
60  hebNav_ = new hgcheb(pset_hgcheb, cc);
61  } else {
62  hebNav_ = nullptr;
63  }
64  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49

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 75 of file HGCRecHitNavigator.h.

References trklet::D3, 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.

77  {
78  switch (DetId(hit.detId()).subdetId()) {
79  case D1:
80  if (nullptr != eeNav_)
81  eeNav_->associateNeighbours(hit, hits, refProd);
82  break;
83  case D2:
84  if (nullptr != hefNav_)
85  hefNav_->associateNeighbours(hit, hits, refProd);
86  break;
87  case D3:
88  if (nullptr != hebNav_)
89  hebNav_->associateNeighbours(hit, hits, refProd);
90  break;
91  default:
92  break;
93  }
94  }
Divides< B, C > D2
Definition: Factorize.h:137
Divides< A, C > D1
Definition: Factorize.h:136
Definition: DetId.h:17

◆ 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 22 of file HGCRecHitNavigator.h.

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

22  {
24 
25  desc.add<std::string>("name", "PFRecHitHGCNavigator");
26 
28  descee.add<std::string>("name", "PFRecHitHGCEENavigator");
29  descee.add<std::string>("topologySource", "HGCalEESensitive");
30  desc.add<edm::ParameterSetDescription>("hgcee", descee);
31 
33  deschef.add<std::string>("name", "PFRecHitHGCHENavigator");
34  deschef.add<std::string>("topologySource", "HGCalHESiliconSensitive");
35  desc.add<edm::ParameterSetDescription>("hgchef", deschef);
36 
38  descheb.add<std::string>("name", "PFRecHitHGCHENavigator");
39  descheb.add<std::string>("topologySource", "HGCalHEScintillatorSensitive");
40  desc.add<edm::ParameterSetDescription>("hgcheb", descheb);
41 
42  descriptions.add("navigator", desc);
43  }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ 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 66 of file HGCRecHitNavigator.h.

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_.

66  {
67  if (nullptr != eeNav_)
68  eeNav_->init(iSetup);
69  if (nullptr != hefNav_)
70  hefNav_->init(iSetup);
71  if (nullptr != hebNav_)
72  hebNav_->init(iSetup);
73  }

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