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
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:572
virtual double phi() const =0
momentum azimuthal angle