CMS 3D CMS Logo

FWCandidateTowerSliceSelector.cc
Go to the documentation of this file.
2 
4 
8 
10  : FWHistSliceSelector(h, i), m_helper(helper) {}
11 
13 void FWCandidateTowerSliceSelector::getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const {
14  const void* modelData = m_item->modelData(itemIdx);
15  if (modelData) {
16  const reco::Candidate* tower = reinterpret_cast<const reco::Candidate*>(m_helper->offsetObject(modelData));
17  eta = tower->eta();
18  phi = tower->phi();
19  }
20 }
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:466
Definition: helper.py:1
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
const FWEventItem * m_item
FWCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
const void * offsetObject(const void *iObj) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4