CMS 3D CMS Logo

FWCandidateTowerSliceSelector.cc
Go to the documentation of this file.
2 
4 
8 
9 
11  FWHistSliceSelector(h, i),
12  m_helper(helper)
13 {
14 }
15 
16 
18 {
19 }
20 void
21 FWCandidateTowerSliceSelector::getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const
22 {
23  const void* modelData = m_item->modelData(itemIdx);
24  if (modelData) {
25  const reco::Candidate* tower = reinterpret_cast<const reco::Candidate*>(m_helper->offsetObject(modelData));
26  eta = tower->eta();
27  phi = tower->phi();
28  }
29 }
30 
31 
Definition: helper.py:1
const FWEventItem * m_item
const void * offsetObject(const void *iObj) const
FWCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
virtual double eta() const =0
momentum pseudorapidity
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:569
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const
virtual double phi() const =0
momentum azimuthal angle