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_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hebNav_, HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_, particleFlowRecHitHGC_cfi::hgcee, particleFlowRecHitHGC_cfi::hgcheb, and particleFlowRecHitHGC_cfi::hgchef.

45  {
46  if (iConfig.exists("hgcee")) {
47  eeNav_ = new hgcee(iConfig.getParameter<edm::ParameterSet>("hgcee"), cc);
48  } else {
49  eeNav_ = nullptr;
50  }
51  if (iConfig.exists("hgchef")) {
52  hefNav_ = new hgchef(iConfig.getParameter<edm::ParameterSet>("hgchef"), cc);
53  } else {
54  hefNav_ = nullptr;
55  }
56  if (iConfig.exists("hgcheb")) {
57  hebNav_ = new hgcheb(iConfig.getParameter<edm::ParameterSet>("hgcheb"), cc);
58  } else {
59  hebNav_ = nullptr;
60  }
61  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
bool exists(std::string const &parameterName) const
checks if a parameter exists

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

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

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

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