test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
int i
Definition: DBlmapReader.cc:9
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)
Geom::Phi< T > phi() const
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:569
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity