CMS 3D CMS Logo

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

#include <Fireworks/Calo/interface/FWCaloTowerSliceSelector.h>

Inheritance diagram for FWCaloTowerSliceSelector:
FWHistSliceSelector FWFromSliceSelector

Public Member Functions

 FWCaloTowerSliceSelector (TH2F *h, const FWEventItem *i)
 
 ~FWCaloTowerSliceSelector () override
 
- Public Member Functions inherited from FWHistSliceSelector
virtual bool aggregatePhiCells () const
 
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

Description: [one line class summary]

Usage: <usage>

Definition at line 27 of file FWCaloTowerSliceSelector.h.

Constructor & Destructor Documentation

◆ FWCaloTowerSliceSelector()

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

Definition at line 24 of file FWCaloTowerSliceSelector.cc.

24 : FWHistSliceSelector(h, i) {}

◆ ~FWCaloTowerSliceSelector()

FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector ( )
override

Definition at line 26 of file FWCaloTowerSliceSelector.cc.

26 {}

Member Function Documentation

◆ getItemEntryEtaPhi()

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

Implements FWHistSliceSelector.

Definition at line 28 of file FWCaloTowerSliceSelector.cc.

28  {
29  const CaloTowerCollection* towers = nullptr;
30  m_item->get(towers);
31  assert(nullptr != towers);
33  std::advance(tower, itemIdx);
34 
35  eta = tower->eta();
36  phi = tower->phi();
37 }

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
edm::SortedCollection< CaloTower >::const_iterator
std::vector< CaloTower >::const_iterator const_iterator
Definition: SortedCollection.h:80
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)
edm::SortedCollection< CaloTower >
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