CMS 3D CMS Logo

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

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

Protected Member Functions

void getItemEntryEtaPhi (int itemIdx, float &eta, float &phi) const override
 
- 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::FWCandidateTowerSliceSelector ( TH2F *  h,
const FWEventItem i,
FWSimpleProxyHelper m_helper 
)

Definition at line 9 of file FWCandidateTowerSliceSelector.cc.

◆ ~FWCandidateTowerSliceSelector()

FWCandidateTowerSliceSelector::~FWCandidateTowerSliceSelector ( )
override

Definition at line 12 of file FWCandidateTowerSliceSelector.cc.

12 {}

Member Function Documentation

◆ aggregatePhiCells()

bool FWCandidateTowerSliceSelector::aggregatePhiCells ( ) const
inlineoverridevirtual

Reimplemented from FWHistSliceSelector.

Definition at line 12 of file FWCandidateTowerSliceSelector.h.

12 { return false; }

◆ getItemEntryEtaPhi()

void FWCandidateTowerSliceSelector::getItemEntryEtaPhi ( int  itemIdx,
float &  eta,
float &  phi 
) const
overrideprotectedvirtual

Implements FWHistSliceSelector.

Definition at line 13 of file FWCandidateTowerSliceSelector.cc.

13  {
14  const void* modelData = m_item->modelData(itemIdx);
15  if (modelData) {
16  const reco::Candidate* tower = reinterpret_cast<const reco::Candidate*>(m_helper->offsetObject(modelData));
17  eta = tower->eta();
18  phi = tower->phi();
19  }
20 }

References PVValHelper::eta, m_helper, FWFromSliceSelector::m_item, FWEventItem::modelData(), FWSimpleProxyHelper::offsetObject(), phi, and hgcalTowerProducer_cfi::tower.

Member Data Documentation

◆ m_helper

FWSimpleProxyHelper* FWCandidateTowerSliceSelector::m_helper
protected

Definition at line 16 of file FWCandidateTowerSliceSelector.h.

Referenced by getItemEntryEtaPhi().

mps_fire.i
i
Definition: mps_fire.py:428
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
FWEventItem::modelData
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:466
FWCandidateTowerSliceSelector::m_helper
FWSimpleProxyHelper * m_helper
Definition: FWCandidateTowerSliceSelector.h:16
PVValHelper::eta
Definition: PVValidationHelpers.h:69
h
FWSimpleProxyHelper::offsetObject
const void * offsetObject(const void *iObj) const
Definition: FWSimpleProxyHelper.h:36
helper
Definition: helper.py:1
FWHistSliceSelector::FWHistSliceSelector
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
Definition: FWHistSliceSelector.cc:10
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition: FWFromSliceSelector.h:49
reco::Candidate
Definition: Candidate.h:27
DDAxes::phi