CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd) override
 
void beginEvent (const edm::EventSetup &iSetup) override
 
 HGCRecHitNavigator ()
 
 HGCRecHitNavigator (const edm::ParameterSet &iConfig)
 
- Public Member Functions inherited from PFRecHitNavigatorBase
 PFRecHitNavigatorBase ()
 
 PFRecHitNavigatorBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitNavigatorBase ()
 

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::auto_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 ( )
inline

Definition at line 17 of file HGCRecHitNavigator.h.

17  {
18  }
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_, and HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::hefNav_.

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::auto_ptr< reco::PFRecHitCollection > &  hits,
edm::RefProd< reco::PFRecHitCollection > &  refProd 
)
inlineoverridevirtual

Implements PFRecHitNavigatorBase.

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

68  {
69  switch( DetId(hit.detId()).subdetId() ) {
70  case D1:
71  if( nullptr != eeNav_ ) eeNav_->associateNeighbours(hit,hits,refProd);
72  break;
73  case D2:
74  if( nullptr != hefNav_ ) hefNav_->associateNeighbours(hit,hits,refProd);
75  break;
76  case D3:
77  if( nullptr != hebNav_ ) hebNav_->associateNeighbours(hit,hits,refProd);
78  break;
79  default:
80  break;
81  }
82  }
Divides< B, C > D2
Definition: Factorize.h:145
unsigned detId() const
rechit detId
Definition: PFRecHit.h:108
Divides< A, C > D1
Definition: Factorize.h:144
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 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_ ) eeNav_->beginEvent(iSetup);
64  if( nullptr != hefNav_ ) hefNav_->beginEvent(iSetup);
65  if( nullptr != hebNav_ ) hebNav_->beginEvent(iSetup);
66  }
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 20 of file HGCRecHitNavigator.h.

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

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