CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
FWCaloTowerProxyBuilderBase Class Referenceabstract

#include <FWCaloTowerProxyBuilder.h>

Inheritance diagram for FWCaloTowerProxyBuilderBase:
FWCaloDataHistProxyBuilder FWCaloDataProxyBuilderBase FWProxyBuilderBase FWECalCaloTowerProxyBuilder FWHCalCaloTowerProxyBuilder FWHOCaloTowerProxyBuilder

Public Member Functions

 FWCaloTowerProxyBuilderBase ()
 
virtual double getEt (const CaloTower &) const =0
 
 ~FWCaloTowerProxyBuilderBase () override
 
- Public Member Functions inherited from FWCaloDataHistProxyBuilder
 FWCaloDataHistProxyBuilder ()
 
 ~FWCaloDataHistProxyBuilder () override
 
- Public Member Functions inherited from FWCaloDataProxyBuilderBase
 FWCaloDataProxyBuilderBase ()
 
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 Member Functions

 FWCaloTowerProxyBuilderBase (const FWCaloTowerProxyBuilderBase &)=delete
 
const FWCaloTowerProxyBuilderBaseoperator= (const FWCaloTowerProxyBuilderBase &)=delete
 

Private Attributes

const CaloTowerCollectionm_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

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 34 of file FWCaloTowerProxyBuilder.h.

Constructor & Destructor Documentation

◆ FWCaloTowerProxyBuilderBase() [1/2]

FWCaloTowerProxyBuilderBase::FWCaloTowerProxyBuilderBase ( )

Definition at line 34 of file FWCaloTowerProxyBuilder.cc.

34 : FWCaloDataHistProxyBuilder(), m_towers(nullptr) {}

◆ ~FWCaloTowerProxyBuilderBase()

FWCaloTowerProxyBuilderBase::~FWCaloTowerProxyBuilderBase ( )
override

Definition at line 36 of file FWCaloTowerProxyBuilder.cc.

36 {}

◆ FWCaloTowerProxyBuilderBase() [2/2]

FWCaloTowerProxyBuilderBase::FWCaloTowerProxyBuilderBase ( const FWCaloTowerProxyBuilderBase )
privatedelete

Member Function Documentation

◆ build()

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

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 38 of file FWCaloTowerProxyBuilder.cc.

38  {
39  m_towers = nullptr;
40  if (iItem) {
41  iItem->get(m_towers);
42  FWCaloDataProxyBuilderBase::build(iItem, el, ctx);
43  }
44 }

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

◆ fillCaloData()

void FWCaloTowerProxyBuilderBase::fillCaloData ( )
overrideprotectedvirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 50 of file FWCaloTowerProxyBuilder.cc.

50  {
51  m_hist->Reset();
52 
53  if (m_towers) {
54  if (item()->defaultDisplayProperties().isVisible()) {
55  unsigned int index = 0;
58  if (info.displayProperties().isVisible()) {
59  addEntryToTEveCaloData(tower->eta(), tower->phi(), getEt(*tower), info.isSelected());
60  }
61  }
62  }
63  }
64 }

References FWCaloDataHistProxyBuilder::addEntryToTEveCaloData(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), getEt(), info(), FWProxyBuilderBase::item(), FWCaloDataHistProxyBuilder::m_hist, m_towers, FWEventItem::modelInfo(), and hgcalTowerProducer_cfi::tower.

◆ getEt()

virtual double FWCaloTowerProxyBuilderBase::getEt ( const CaloTower ) const
pure virtual

◆ instantiateSliceSelector()

FWHistSliceSelector * FWCaloTowerProxyBuilderBase::instantiateSliceSelector ( )
overrideprotectedvirtual

Implements FWCaloDataHistProxyBuilder.

Definition at line 46 of file FWCaloTowerProxyBuilder.cc.

46  {
47  return new FWCaloTowerSliceSelector(m_hist, item());
48 }

References FWProxyBuilderBase::item(), and FWCaloDataHistProxyBuilder::m_hist.

◆ operator=()

const FWCaloTowerProxyBuilderBase& FWCaloTowerProxyBuilderBase::operator= ( const FWCaloTowerProxyBuilderBase )
privatedelete

Member Data Documentation

◆ m_towers

const CaloTowerCollection* FWCaloTowerProxyBuilderBase::m_towers
private

Definition at line 50 of file FWCaloTowerProxyBuilder.h.

Referenced by build(), and fillCaloData().

FWCaloDataHistProxyBuilder::FWCaloDataHistProxyBuilder
FWCaloDataHistProxyBuilder()
Definition: FWCaloDataHistProxyBuilder.cc:14
FWEventItem::modelInfo
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
edm::SortedCollection< CaloTower >::const_iterator
std::vector< CaloTower >::const_iterator const_iterator
Definition: SortedCollection.h:80
FWEventItem::get
void get(const T *&oData) const
Definition: FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
FWEventItem::ModelInfo
Definition: FWEventItem.h:58
FWCaloDataHistProxyBuilder::addEntryToTEveCaloData
void addEntryToTEveCaloData(float eta, float phi, float Et, bool isSelected)
Definition: FWCaloDataHistProxyBuilder.cc:76
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
FWCaloTowerProxyBuilderBase::m_towers
const CaloTowerCollection * m_towers
Definition: FWCaloTowerProxyBuilder.h:50
FWCaloDataHistProxyBuilder::m_hist
TH2F * m_hist
Definition: FWCaloDataHistProxyBuilder.h:22
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
FWCaloTowerSliceSelector
Definition: FWCaloTowerSliceSelector.h:27
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWProxyBuilderBase::item
const FWEventItem * item() const
Definition: FWProxyBuilderBase.h:64
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
FWCaloTowerProxyBuilderBase::getEt
virtual double getEt(const CaloTower &) const =0