CMS 3D CMS Logo

FWPFCandidateTowerSliceSelector.cc
Go to the documentation of this file.
4 
7 
9  : FWHistSliceSelector(h, i) {}
10 
12 void FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const {
13  const reco::PFCandidateCollection* towers = nullptr;
14  m_item->get(towers);
15  assert(nullptr != towers);
16  reco::PFCandidateCollection::const_iterator tower = towers->begin();
17  std::advance(tower, itemIdx);
18 
19  eta = tower->eta();
20  phi = tower->phi();
21 }
FWModelChangeManager.h
mps_fire.i
i
Definition: mps_fire.py:355
FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector
FWPFCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition: FWPFCandidateTowerSliceSelector.cc:8
PFCandidate.h
FWEventItem::get
void get(const T *&oData) const
Definition: FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
cms::cuda::assert
assert(be >=bs)
FWHistSliceSelector
Definition: FWHistSliceSelector.h:7
PVValHelper::eta
Definition: PVValidationHelpers.h:69
h
PVValHelper::phi
Definition: PVValidationHelpers.h:68
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition: FWFromSliceSelector.h:49
FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition: FWPFCandidateTowerSliceSelector.cc:12
FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector
~FWPFCandidateTowerSliceSelector() override
Definition: FWPFCandidateTowerSliceSelector.cc:11
FWEventItem.h
DDAxes::phi
HLT_2018_cff.towers
towers
Definition: HLT_2018_cff.py:35030
FWEventItem
Definition: FWEventItem.h:56
reco::PFCandidateCollection
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Definition: PFCandidateFwd.h:12
FWPFCandidateTowerSliceSelector.h
PFCandidateFwd.h