test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

virtual bool aggregatePhiCells () const
 
 FWPFCandidateTowerSliceSelector (TH2F *h, const FWEventItem *i)
 
virtual ~FWPFCandidateTowerSliceSelector ()
 
- Public Member Functions inherited from FWHistSliceSelector
virtual void doSelect (const TEveCaloData::CellId_t &)
 
virtual void doUnselect (const TEveCaloData::CellId_t &)
 
 FWHistSliceSelector (TH2F *h, const FWEventItem *item)
 
virtual ~FWHistSliceSelector ()
 
- Public Member Functions inherited from FWFromSliceSelector
FWModelChangeManagerchangeManager () const
 
void clear ()
 
 FWFromSliceSelector (const FWEventItem *)
 
void reset ()
 
virtual ~FWFromSliceSelector ()
 

Protected Member Functions

virtual void getItemEntryEtaPhi (int itemIdx, float &eta, float &phi) const
 
- 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 ( TH2F *  h,
const FWEventItem i 
)

Definition at line 9 of file FWPFCandidateTowerSliceSelector.cc.

9  :
11 {
12 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector ( )
virtual

Definition at line 15 of file FWPFCandidateTowerSliceSelector.cc.

16 {
17 }

Member Function Documentation

virtual bool FWPFCandidateTowerSliceSelector::aggregatePhiCells ( ) const
inlinevirtual

Reimplemented from FWHistSliceSelector.

Definition at line 11 of file FWPFCandidateTowerSliceSelector.h.

11 { return false; }
void FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi ( int  itemIdx,
float &  eta,
float &  phi 
) const
protectedvirtual

Implements FWHistSliceSelector.

Definition at line 19 of file FWPFCandidateTowerSliceSelector.cc.

References assert(), FWEventItem::get(), FWFromSliceSelector::m_item, and HLT_25ns10e33_v2_cff::towers.

20 {
21 
23  m_item->get(towers);
24  assert(0!=towers);
25  reco::PFCandidateCollection::const_iterator tower = towers->begin();
26  std::advance(tower, itemIdx);
27 
28  eta = tower->eta();
29  phi = tower->phi();
30  }
assert(m_qm.get())
void get(const T *&oData) const
Definition: FWEventItem.h:85
const FWEventItem * m_item
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates