CMS 3D CMS Logo

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

#include <FWHGCalMultiClusterSliceSelector.h>

Inheritance diagram for FWHGCalMultiClusterSliceSelector:
FWHistSliceSelector FWFromSliceSelector

Public Member Functions

 FWHGCalMultiClusterSliceSelector (TH2F *h, const FWEventItem *i)
 
 ~FWHGCalMultiClusterSliceSelector () 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

Definition at line 7 of file FWHGCalMultiClusterSliceSelector.h.

Constructor & Destructor Documentation

◆ FWHGCalMultiClusterSliceSelector()

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

Definition at line 15 of file FWHGCalMultiClusterSliceSelector.cc.

16  : FWHistSliceSelector(h, i) {}

◆ ~FWHGCalMultiClusterSliceSelector()

FWHGCalMultiClusterSliceSelector::~FWHGCalMultiClusterSliceSelector ( )
override

Definition at line 18 of file FWHGCalMultiClusterSliceSelector.cc.

18 {}

Member Function Documentation

◆ getItemEntryEtaPhi()

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

Implements FWHistSliceSelector.

Definition at line 20 of file FWHGCalMultiClusterSliceSelector.cc.

20  {
21  const std::vector<reco::HGCalMultiCluster> *towers = nullptr;
22  m_item->get(towers);
23  assert(nullptr != towers);
24 
25  std::vector<reco::HGCalMultiCluster>::const_iterator tower = towers->begin();
26  std::advance(tower, itemIdx);
27 
28  eta = tower->eta();
29  phi = tower->phi();
30 }

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

mps_fire.i
i
Definition: mps_fire.py:355
FWEventItem::get
void get(const T *&oData) const
Definition: FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
cms::cuda::assert
assert(be >=bs)
PVValHelper::eta
Definition: PVValidationHelpers.h:69
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
HLT_2018_cff.towers
towers
Definition: HLT_2018_cff.py:35030