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

Definition at line 15 of file FWHGCalMultiClusterSliceSelector.cc.

16 {
17 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
FWHGCalMultiClusterSliceSelector::~FWHGCalMultiClusterSliceSelector ( )
override

Definition at line 19 of file FWHGCalMultiClusterSliceSelector.cc.

20 {
21 }

Member Function Documentation

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

Implements FWHistSliceSelector.

Definition at line 23 of file FWHGCalMultiClusterSliceSelector.cc.

References FWEventItem::get(), and FWFromSliceSelector::m_item.

24 {
25  const std::vector<reco::HGCalMultiCluster>* towers=nullptr;
26  m_item->get(towers);
27  assert(nullptr!=towers);
28 
29  std::vector<reco::HGCalMultiCluster>::const_iterator tower = towers->begin();
30  std::advance(tower, itemIdx);
31 
32  eta = tower->eta();
33  phi = tower->phi();
34 }
void get(const T *&oData) const
Definition: FWEventItem.h:85
const FWEventItem * m_item