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 }
FWModelChangeManager.h
mps_fire.i
i
Definition: mps_fire.py:428
FWCandidateTowerSliceSelector::~FWCandidateTowerSliceSelector
~FWCandidateTowerSliceSelector() override
Definition: FWCandidateTowerSliceSelector.cc:12
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
FWEventItem::modelData
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:466
FWCandidateTowerSliceSelector::m_helper
FWSimpleProxyHelper * m_helper
Definition: FWCandidateTowerSliceSelector.h:16
FWHistSliceSelector
Definition: FWHistSliceSelector.h:7
PVValHelper::eta
Definition: PVValidationHelpers.h:70
h
FWSimpleProxyHelper::offsetObject
const void * offsetObject(const void *iObj) const
Definition: FWSimpleProxyHelper.h:36
PVValHelper::phi
Definition: PVValidationHelpers.h:69
PackedCandidate.h
helper
Definition: helper.py:1
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition: FWFromSliceSelector.h:49
FWCandidateTowerSliceSelector::FWCandidateTowerSliceSelector
FWCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
Definition: FWCandidateTowerSliceSelector.cc:9
FWEventItem.h
reco::Candidate
Definition: Candidate.h:27
DDAxes::phi
FWSimpleProxyHelper.h
FWEventItem
Definition: FWEventItem.h:56
FWCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition: FWCandidateTowerSliceSelector.cc:13
FWSimpleProxyHelper
Definition: FWSimpleProxyHelper.h:30
FWCandidateTowerSliceSelector.h