CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
FWHGCalMultiClusterLegoProxyBuilder Class Reference

#include <FWHGCalMultiClusterLegoProxyBuilder.h>

Inheritance diagram for FWHGCalMultiClusterLegoProxyBuilder:
FWCaloDataHistProxyBuilder FWCaloDataProxyBuilderBase FWProxyBuilderBase

Public Member Functions

 FWHGCalMultiClusterLegoProxyBuilder ()
 
 FWHGCalMultiClusterLegoProxyBuilder (const FWHGCalMultiClusterLegoProxyBuilder &)=delete
 
const FWHGCalMultiClusterLegoProxyBuilderoperator= (const FWHGCalMultiClusterLegoProxyBuilder &)=delete
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
 ~FWHGCalMultiClusterLegoProxyBuilder () 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 ()
 

Static Public Member Functions

static const std::string & classPurpose ()
 
static const std::string & classRegisterTypeName ()
 
static const std::string & classTypeName ()
 
static const std::string & classView ()
 
- 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...
 

Private Member Functions

void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
void fillCaloData () override
 
FWHistSliceSelectorinstantiateSliceSelector () override
 

Private Attributes

const std::vector< reco::HGCalMultiCluster > * m_towers
 

Additional Inherited Members

- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >::iterator Product_it
 
- 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 *)
 
- 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 15 of file FWHGCalMultiClusterLegoProxyBuilder.h.

Constructor & Destructor Documentation

◆ FWHGCalMultiClusterLegoProxyBuilder() [1/2]

FWHGCalMultiClusterLegoProxyBuilder::FWHGCalMultiClusterLegoProxyBuilder ( )

◆ ~FWHGCalMultiClusterLegoProxyBuilder()

FWHGCalMultiClusterLegoProxyBuilder::~FWHGCalMultiClusterLegoProxyBuilder ( )
override

Definition at line 27 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

27 {}

◆ FWHGCalMultiClusterLegoProxyBuilder() [2/2]

FWHGCalMultiClusterLegoProxyBuilder::FWHGCalMultiClusterLegoProxyBuilder ( const FWHGCalMultiClusterLegoProxyBuilder )
delete

Member Function Documentation

◆ build()

void FWHGCalMultiClusterLegoProxyBuilder::build ( const FWEventItem iItem,
TEveElementList *  product,
const FWViewContext vc 
)
overrideprivatevirtual

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 29 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

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

31  {
32  m_towers = nullptr;
33  if (iItem) {
34  iItem->get(m_towers);
35  FWCaloDataProxyBuilderBase::build(iItem, product, vc);
36  }
37 }
void get(const T *&oData) const
Definition: FWEventItem.h:78
const std::vector< reco::HGCalMultiCluster > * m_towers

◆ classPurpose()

const std::string & FWHGCalMultiClusterLegoProxyBuilder::classPurpose ( )
static

Definition at line 63 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

◆ classRegisterTypeName()

const std::string & FWHGCalMultiClusterLegoProxyBuilder::classRegisterTypeName ( )
static

Definition at line 63 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

◆ classTypeName()

const std::string & FWHGCalMultiClusterLegoProxyBuilder::classTypeName ( )
static

Definition at line 63 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

◆ classView()

const std::string & FWHGCalMultiClusterLegoProxyBuilder::classView ( )
static

Definition at line 63 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

◆ fillCaloData()

void FWHGCalMultiClusterLegoProxyBuilder::fillCaloData ( )
overrideprivatevirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 43 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

References FWCaloDataHistProxyBuilder::addEntryToTEveCaloData(), info(), FWProxyBuilderBase::item(), FWCaloDataHistProxyBuilder::m_hist, m_towers, FWEventItem::modelInfo(), and hgcalTowerProducer_cfi::tower.

43  {
44  m_hist->Reset();
45 
46  if (m_towers) {
47  if (item()->defaultDisplayProperties().isVisible()) {
48  unsigned int index = 0;
49  for (std::vector<reco::HGCalMultiCluster>::const_iterator tower = m_towers->begin(); tower != m_towers->end();
50  ++tower, ++index) {
52  if (info.displayProperties().isVisible()) {
53  addEntryToTEveCaloData(tower->eta(), tower->phi(), tower->pt(), info.isSelected());
54  }
55  }
56  }
57  }
58 }
static const TGPicture * info(bool iBackgroundIsBlack)
const std::vector< reco::HGCalMultiCluster > * m_towers
void addEntryToTEveCaloData(float eta, float phi, float Et, bool isSelected)
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
const FWEventItem * item() const

◆ instantiateSliceSelector()

FWHistSliceSelector * FWHGCalMultiClusterLegoProxyBuilder::instantiateSliceSelector ( )
overrideprivatevirtual

◆ operator=()

const FWHGCalMultiClusterLegoProxyBuilder& FWHGCalMultiClusterLegoProxyBuilder::operator= ( const FWHGCalMultiClusterLegoProxyBuilder )
delete

◆ purpose()

const std::string& FWHGCalMultiClusterLegoProxyBuilder::purpose ( ) const
inline

Definition at line 20 of file FWHGCalMultiClusterLegoProxyBuilder.h.

26 :
27  void fillCaloData() override;

◆ typeName()

const std::string& FWHGCalMultiClusterLegoProxyBuilder::typeName ( ) const
inline

Definition at line 20 of file FWHGCalMultiClusterLegoProxyBuilder.h.

26 :
27  void fillCaloData() override;

◆ view()

const std::string& FWHGCalMultiClusterLegoProxyBuilder::view ( ) const
inline

Definition at line 20 of file FWHGCalMultiClusterLegoProxyBuilder.h.

26 :
27  void fillCaloData() override;

Member Data Documentation

◆ m_towers

const std::vector<reco::HGCalMultiCluster>* FWHGCalMultiClusterLegoProxyBuilder::m_towers
private

Definition at line 31 of file FWHGCalMultiClusterLegoProxyBuilder.h.

Referenced by build(), and fillCaloData().