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
 
void beginEvent (const edm::EventSetup &iSetup) override
 
 HGCRecHitNavigator ()=default
 
 HGCRecHitNavigator (const edm::ParameterSet &iConfig)
 
- 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

template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::HGCRecHitNavigator ( )
default
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.

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_, particleFlowRecHitHGC_cfi::hgcee, particleFlowRecHitHGC_cfi::hgcheb, and particleFlowRecHitHGC_cfi::hgchef.

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  }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists

Member Function Documentation

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.

References reco::PFRecHit::detId(), 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_.

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  }
Divides< B, C > D2
Definition: Factorize.h:137
unsigned detId() const
rechit detId
Definition: PFRecHit.h:89
Divides< A, C > D1
Definition: Factorize.h:136
Definition: DetId.h:17
template<ForwardSubdetector D1, typename hgcee , ForwardSubdetector D2, typename hgchef , ForwardSubdetector D3, typename hgcheb >
void HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::beginEvent ( const edm::EventSetup iSetup)
inlineoverridevirtual

Implements PFRecHitNavigatorBase.

Definition at line 62 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_.

62  {
63  if (nullptr != eeNav_)
64  eeNav_->beginEvent(iSetup);
65  if (nullptr != hefNav_)
66  hefNav_->beginEvent(iSetup);
67  if (nullptr != hebNav_)
68  hebNav_->beginEvent(iSetup);
69  }
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.

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

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  }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

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