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
virtual float eta() const =0
momentum pseudorapidity
virtual float phi() const =0
momentum azimuthal angle
T eta() const
const FWEventItem * m_item
const void * offsetObject(const void *iObj) const
FWCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:567
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const
Definition: DDAxes.h:10