CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecHitDualNavigator.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFClusterProducer_PFRecHitDualNavigator_h
2 #define RecoParticleFlow_PFClusterProducer_PFRecHitDualNavigator_h
3 
4 
7 
8 
9 
10 template <PFLayer::Layer D1, typename barrel,PFLayer::Layer D2, typename endcap>
12  public:
14  }
15 
16 
17 
19  barrelNav_ = new barrel(iConfig.getParameter<edm::ParameterSet>("barrel"));
20  endcapNav_ = new endcap(iConfig.getParameter<edm::ParameterSet>("endcap"));
21  }
22 
23  void beginEvent(const edm::EventSetup& iSetup) {
24  barrelNav_->beginEvent(iSetup);
25  endcapNav_->beginEvent(iSetup);
26 
27  }
28 
29  void associateNeighbours(reco::PFRecHit& hit,std::auto_ptr<reco::PFRecHitCollection>& hits,edm::RefProd<reco::PFRecHitCollection>& refProd) {
30  if (hit.layer() == D1)
31  barrelNav_->associateNeighbours(hit,hits,refProd);
32  else if (hit.layer() == D2)
33  endcapNav_->associateNeighbours(hit,hits,refProd);
34  }
35 
36  protected:
39 
40 
41 };
42 
43 #endif
44 
45 
T getParameter(std::string const &) const
Divides< B, C > D2
Definition: Factorize.h:145
PFLayer::Layer layer() const
rechit layer
Definition: PFRecHit.h:109
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
Definition: PFRecHit.h:35
Divides< A, C > D1
Definition: Factorize.h:144
void associateNeighbours(reco::PFRecHit &hit, std::auto_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd)
PFRecHitDualNavigator(const edm::ParameterSet &iConfig)
void beginEvent(const edm::EventSetup &iSetup)