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) {}
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

◆ ~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.

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

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 }
void get(const T *&oData) const
Definition: FWEventItem.h:78
assert(be >=bs)
const FWEventItem * m_item