CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
FWCandidateTowerSliceSelector Class Reference

#include <FWCandidateTowerSliceSelector.h>

Inheritance diagram for FWCandidateTowerSliceSelector:
FWHistSliceSelector FWFromSliceSelector

Public Member Functions

virtual bool aggregatePhiCells () const
 
 FWCandidateTowerSliceSelector (TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
 
virtual ~FWCandidateTowerSliceSelector ()
 
- Public Member Functions inherited from FWHistSliceSelector
virtual void doSelect (const TEveCaloData::CellId_t &)
 
virtual void doUnselect (const TEveCaloData::CellId_t &)
 
 FWHistSliceSelector (TH2F *h, const FWEventItem *item)
 
virtual ~FWHistSliceSelector ()
 
- Public Member Functions inherited from FWFromSliceSelector
FWModelChangeManagerchangeManager () const
 
void clear ()
 
 FWFromSliceSelector (const FWEventItem *)
 
void reset ()
 
virtual ~FWFromSliceSelector ()
 

Protected Member Functions

virtual void getItemEntryEtaPhi (int itemIdx, float &eta, float &phi) const
 
- Protected Member Functions inherited from FWHistSliceSelector
bool matchCell (const TEveCaloData::CellId_t &iCell, int idx) const
 

Protected Attributes

FWSimpleProxyHelperm_helper
 
- Protected Attributes inherited from FWHistSliceSelector
TH2F * m_hist
 
- Protected Attributes inherited from FWFromSliceSelector
const FWEventItemm_item
 

Detailed Description

Definition at line 7 of file FWCandidateTowerSliceSelector.h.

Constructor & Destructor Documentation

FWCandidateTowerSliceSelector::FWCandidateTowerSliceSelector ( TH2F *  h,
const FWEventItem i,
FWSimpleProxyHelper m_helper 
)

Definition at line 10 of file FWCandidateTowerSliceSelector.cc.

10  :
12  m_helper(helper)
13 {
14 }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
FWCandidateTowerSliceSelector::~FWCandidateTowerSliceSelector ( )
virtual

Definition at line 17 of file FWCandidateTowerSliceSelector.cc.

18 {
19 }

Member Function Documentation

virtual bool FWCandidateTowerSliceSelector::aggregatePhiCells ( ) const
inlinevirtual

Reimplemented from FWHistSliceSelector.

Definition at line 13 of file FWCandidateTowerSliceSelector.h.

13 { return false; }
void FWCandidateTowerSliceSelector::getItemEntryEtaPhi ( int  itemIdx,
float &  eta,
float &  phi 
) const
protectedvirtual

Implements FWHistSliceSelector.

Definition at line 21 of file FWCandidateTowerSliceSelector.cc.

References reco::Candidate::eta(), m_helper, FWFromSliceSelector::m_item, FWEventItem::modelData(), FWSimpleProxyHelper::offsetObject(), and reco::Candidate::phi().

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 }
T eta() const
const FWEventItem * m_item
const void * offsetObject(const void *iObj) const
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:567
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity
Definition: DDAxes.h:10

Member Data Documentation

FWSimpleProxyHelper* FWCandidateTowerSliceSelector::m_helper
protected

Definition at line 16 of file FWCandidateTowerSliceSelector.h.

Referenced by getItemEntryEtaPhi().