CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
FWPFCandidateTowerProxyBuilder Class Referenceabstract

#include <FWPFCandidateTowerProxyBuilder.h>

Inheritance diagram for FWPFCandidateTowerProxyBuilder:
FWCaloDataHistProxyBuilder FWCaloDataProxyBuilderBase FWProxyBuilderBase FWECalPFCandidateProxyBuilder FWHCalPFCandidateProxyBuilder

Public Member Functions

 FWPFCandidateTowerProxyBuilder ()
 
 FWPFCandidateTowerProxyBuilder (const FWPFCandidateTowerProxyBuilder &)=delete
 
virtual double getEt (const reco::PFCandidate &) const =0
 
const
FWPFCandidateTowerProxyBuilder
operator= (const FWPFCandidateTowerProxyBuilder &)=delete
 
 ~FWPFCandidateTowerProxyBuilder () override
 
- Public Member Functions inherited from FWCaloDataHistProxyBuilder
 FWCaloDataHistProxyBuilder ()
 
 ~FWCaloDataHistProxyBuilder () override
 
- Public Member Functions inherited from FWCaloDataProxyBuilderBase
 FWCaloDataProxyBuilderBase ()
 
 FWCaloDataProxyBuilderBase (const FWCaloDataProxyBuilderBase &)=delete
 
const FWCaloDataProxyBuilderBaseoperator= (const FWCaloDataProxyBuilderBase &)=delete
 
bool willHandleInteraction () const override
 
 ~FWCaloDataProxyBuilderBase () override
 
- Public Member Functions inherited from FWProxyBuilderBase
void build ()
 
virtual bool canHandle (const FWEventItem &)
 
const fireworks::Contextcontext () const
 
TEveElementList * createProduct (FWViewType::EType, const FWViewContext *)
 
 FWProxyBuilderBase ()
 
bool getHaveWindow () const
 
virtual bool havePerViewProduct (FWViewType::EType) const
 
virtual bool haveSingleProduct () const
 
const FWEventItemitem () const
 
void itemChanged (const FWEventItem *)
 
int layer () const
 
void modelChanges (const FWModelIds &)
 
void removePerViewProduct (FWViewType::EType, const FWViewContext *vc)
 
void scaleChanged (const FWViewContext *)
 
void setHaveWindow (bool iFlag)
 
virtual void setInteractionList (FWInteractionList *, const std::string &)
 
virtual void setItem (const FWEventItem *iItem)
 
void setupAddElement (TEveElement *el, TEveElement *parent, bool set_color=true) const
 
void setupElement (TEveElement *el, bool color=true) const
 
virtual ~FWProxyBuilderBase ()
 

Protected Member Functions

void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
void fillCaloData () override
 
FWHistSliceSelectorinstantiateSliceSelector () override
 
- Protected Member Functions inherited from FWCaloDataHistProxyBuilder
void addEntryToTEveCaloData (float eta, float phi, float Et, bool isSelected)
 
bool assertCaloDataSlice () override
 
void itemBeingDestroyed (const FWEventItem *) override
 
void setCaloData (const fireworks::Context &) override
 
- Protected Member Functions inherited from FWCaloDataProxyBuilderBase
void itemBeingDestroyed (const FWEventItem *) override
 
- Protected Member Functions inherited from FWProxyBuilderBase
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
 
virtual void clean ()
 
virtual void cleanLocal ()
 
TEveCompound * createCompound (bool set_color=true, bool propagate_color_to_all_children=false) const
 
 FWProxyBuilderBase (const FWProxyBuilderBase &)
 
void increaseComponentTransparency (unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
 
virtual void localModelChanges (const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
 
const FWProxyBuilderBaseoperator= (const FWProxyBuilderBase &)
 
virtual void scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
 
virtual bool visibilityModelChanges (const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *)
 

Private Attributes

const reco::PFCandidateCollectionm_towers
 

Additional Inherited Members

- Static Public Member Functions inherited from FWProxyBuilderBase
static bool representsSubPart ()
 
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 
- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >
::iterator 
Product_it
 
- Protected Attributes inherited from FWCaloDataHistProxyBuilder
TH2F * m_hist
 
FWHistSliceSelectorm_sliceSelector
 
- Protected Attributes inherited from FWCaloDataProxyBuilderBase
TEveCaloData * m_caloData
 
Int_t m_sliceIndex
 
- Protected Attributes inherited from FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

Definition at line 30 of file FWPFCandidateTowerProxyBuilder.h.

Constructor & Destructor Documentation

FWPFCandidateTowerProxyBuilder::FWPFCandidateTowerProxyBuilder ( )

Definition at line 34 of file FWPFCandidateTowerProxyBuilder.cc.

34 : m_towers(nullptr) {}
const reco::PFCandidateCollection * m_towers
FWPFCandidateTowerProxyBuilder::~FWPFCandidateTowerProxyBuilder ( )
override

Definition at line 36 of file FWPFCandidateTowerProxyBuilder.cc.

36 {}
FWPFCandidateTowerProxyBuilder::FWPFCandidateTowerProxyBuilder ( const FWPFCandidateTowerProxyBuilder )
delete

Member Function Documentation

void FWPFCandidateTowerProxyBuilder::build ( const FWEventItem iItem,
TEveElementList *  product,
const FWViewContext ctx 
)
overrideprotectedvirtual

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 42 of file FWPFCandidateTowerProxyBuilder.cc.

References FWProxyBuilderBase::build(), FWEventItem::get(), and m_towers.

42  {
43  m_towers = nullptr;
44  if (iItem) {
45  iItem->get(m_towers);
46  FWCaloDataProxyBuilderBase::build(iItem, el, ctx);
47  }
48 }
void get(const T *&oData) const
Definition: FWEventItem.h:78
const reco::PFCandidateCollection * m_towers
void FWPFCandidateTowerProxyBuilder::fillCaloData ( )
overrideprotectedvirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 54 of file FWPFCandidateTowerProxyBuilder.cc.

References FWCaloDataHistProxyBuilder::addEntryToTEveCaloData(), FWEventItem::ModelInfo::displayProperties(), getEt(), info(), FWEventItem::ModelInfo::isSelected(), FWDisplayProperties::isVisible(), FWProxyBuilderBase::item(), FWCaloDataHistProxyBuilder::m_hist, m_towers, FWEventItem::modelInfo(), and hgcalTowerProducer_cfi::tower.

54  {
55  m_hist->Reset();
56 
57  if (m_towers) {
58  if (item()->defaultDisplayProperties().isVisible()) {
59  // assert(item()->size() >= m_towers->size());
60  unsigned int index = 0;
61  for (reco::PFCandidateConstIterator tower = m_towers->begin(); tower != m_towers->end(); ++tower, ++index) {
62  const FWEventItem::ModelInfo& info = item()->modelInfo(index);
63  if (info.displayProperties().isVisible()) {
64  addEntryToTEveCaloData(tower->eta(), tower->phi(), getEt(*tower), info.isSelected());
65  }
66  }
67  }
68  }
69 }
static const TGPicture * info(bool iBackgroundIsBlack)
const FWDisplayProperties & displayProperties() const
Definition: FWEventItem.h:64
bool isSelected() const
Definition: FWEventItem.h:65
const reco::PFCandidateCollection * m_towers
PFCandidateCollection::const_iterator PFCandidateConstIterator
iterator
const FWEventItem * item() const
void addEntryToTEveCaloData(float eta, float phi, float Et, bool isSelected)
virtual double getEt(const reco::PFCandidate &) const =0
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
virtual double FWPFCandidateTowerProxyBuilder::getEt ( const reco::PFCandidate ) const
pure virtual
FWHistSliceSelector * FWPFCandidateTowerProxyBuilder::instantiateSliceSelector ( )
overrideprotectedvirtual
const FWPFCandidateTowerProxyBuilder& FWPFCandidateTowerProxyBuilder::operator= ( const FWPFCandidateTowerProxyBuilder )
delete

Member Data Documentation

const reco::PFCandidateCollection* FWPFCandidateTowerProxyBuilder::m_towers
private

Definition at line 47 of file FWPFCandidateTowerProxyBuilder.h.

Referenced by build(), and fillCaloData().