CMS 3D CMS Logo

FWPFCandidateTowerSliceSelector.cc
Go to the documentation of this file.
4 
7 
8 
11 {
12 }
13 
14 
16 {
17 }
18 void
20 {
21 
22  const reco::PFCandidateCollection* towers=0;
23  m_item->get(towers);
24  assert(0!=towers);
25  reco::PFCandidateCollection::const_iterator tower = towers->begin();
26  std::advance(tower, itemIdx);
27 
28  eta = tower->eta();
29  phi = tower->phi();
30  }
31 
32 
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const
void get(const T *&oData) const
Definition: FWEventItem.h:85
FWPFCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i)
const FWEventItem * m_item
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates