CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions
FWPFCandidateTowerSliceSelector Class Reference

#include <FWPFCandidateTowerSliceSelector.h>

Inheritance diagram for FWPFCandidateTowerSliceSelector:
FWHistSliceSelector FWFromSliceSelector

Public Member Functions

bool aggregatePhiCells () const override
 
 FWPFCandidateTowerSliceSelector (TH2F *h, const FWEventItem *i)
 
 ~FWPFCandidateTowerSliceSelector () 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
 

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file FWPFCandidateTowerSliceSelector.h.

Constructor & Destructor Documentation

◆ FWPFCandidateTowerSliceSelector()

FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector ( TH2F *  h,
const FWEventItem i 
)

Definition at line 8 of file FWPFCandidateTowerSliceSelector.cc.

9  : FWHistSliceSelector(h, i) {}

◆ ~FWPFCandidateTowerSliceSelector()

FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector ( )
override

Definition at line 11 of file FWPFCandidateTowerSliceSelector.cc.

11 {}

Member Function Documentation

◆ aggregatePhiCells()

bool FWPFCandidateTowerSliceSelector::aggregatePhiCells ( ) const
inlineoverridevirtual

Reimplemented from FWHistSliceSelector.

Definition at line 10 of file FWPFCandidateTowerSliceSelector.h.

10 { return false; }

◆ getItemEntryEtaPhi()

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

Implements FWHistSliceSelector.

Definition at line 12 of file FWPFCandidateTowerSliceSelector.cc.

12  {
13  const reco::PFCandidateCollection* towers = nullptr;
14  m_item->get(towers);
15  assert(nullptr != towers);
16  reco::PFCandidateCollection::const_iterator tower = towers->begin();
17  std::advance(tower, itemIdx);
18 
19  eta = tower->eta();
20  phi = tower->phi();
21 }

References cms::cuda::assert(), PVValHelper::eta, FWEventItem::get(), FWFromSliceSelector::m_item, phi, hgcalTowerProducer_cfi::tower, and HLT_FULL_cff::towers.

HLT_FULL_cff.towers
towers
Definition: HLT_FULL_cff.py:36379
mps_fire.i
i
Definition: mps_fire.py:428
FWEventItem::get
void get(const T *&oData) const
Definition: FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
cms::cuda::assert
assert(be >=bs)
PVValHelper::eta
Definition: PVValidationHelpers.h:70
h
FWHistSliceSelector::FWHistSliceSelector
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
Definition: FWHistSliceSelector.cc:10
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition: FWFromSliceSelector.h:49
DDAxes::phi
reco::PFCandidateCollection
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Definition: PFCandidateFwd.h:12