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 15 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 43 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.

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

67  {
68  switch( DetId(hit.detId()).subdetId() ) {
69  case D1:
70  if( nullptr != eeNav_ ) eeNav_->associateNeighbours(hit,hits,refProd);
71  break;
72  case D2:
73  if( nullptr != hefNav_ ) hefNav_->associateNeighbours(hit,hits,refProd);
74  break;
75  case D3:
76  if( nullptr != hebNav_ ) hebNav_->associateNeighbours(hit,hits,refProd);
77  break;
78  default:
79  break;
80  }
81  }
Divides< B, C > D2
Definition: Factorize.h:147
unsigned detId() const
rechit detId
Definition: PFRecHit.h:93
Divides< A, C > D1
Definition: Factorize.h:146
Definition: DetId.h:18
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 61 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_.

61  {
62  if( nullptr != eeNav_ ) eeNav_->beginEvent(iSetup);
63  if( nullptr != hefNav_ ) hefNav_->beginEvent(iSetup);
64  if( nullptr != hebNav_ ) hebNav_->beginEvent(iSetup);
65  }
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 19 of file HGCRecHitNavigator.h.

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

19  {
21 
22  desc.add<std::string>("name","PFRecHitHGCNavigator");
23 
25  descee.add<std::string>("name","PFRecHitHGCEENavigator");
26  descee.add<std::string>("topologySource","HGCalEESensitive");
27  desc.add<edm::ParameterSetDescription>("hgcee", descee);
28 
30  deschef.add<std::string>("name","PFRecHitHGCHENavigator");
31  deschef.add<std::string>("topologySource","HGCalHESiliconSensitive");
32  desc.add<edm::ParameterSetDescription>("hgchef", deschef);
33 
35  deschef.add<std::string>("name","PFRecHitHGCHENavigator");
36  deschef.add<std::string>("topologySource","HGCalHEScintillatorSensitive");
37  desc.add<edm::ParameterSetDescription>("hgcheb", descheb);
38 
39  descriptions.add("navigator", desc);
40  }
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