CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
void get(const T *&oData) const
Definition: FWEventItem.h:78
FWPFCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i)
assert(be >=bs)
const FWEventItem * m_item
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4