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 ()
 
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 ()
 
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
 
 FWHGCalMultiClusterLegoProxyBuilder (const FWHGCalMultiClusterLegoProxyBuilder &)=delete
 
FWHistSliceSelectorinstantiateSliceSelector () override
 
const FWHGCalMultiClusterLegoProxyBuilderoperator= (const FWHGCalMultiClusterLegoProxyBuilder &)=delete
 

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::FWHGCalMultiClusterLegoProxyBuilder ( )

Definition at line 24 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

25 {
26 }
const std::vector< reco::HGCalMultiCluster > * m_towers
FWHGCalMultiClusterLegoProxyBuilder::~FWHGCalMultiClusterLegoProxyBuilder ( )
override

Definition at line 28 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

29 {
30 }
FWHGCalMultiClusterLegoProxyBuilder::FWHGCalMultiClusterLegoProxyBuilder ( const FWHGCalMultiClusterLegoProxyBuilder )
privatedelete

Member Function Documentation

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

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 32 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

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

33 {
34  m_towers=nullptr;
35  if (iItem)
36  {
37  iItem->get(m_towers);
38  FWCaloDataProxyBuilderBase::build(iItem, product, vc);
39  }
40 }
void get(const T *&oData) const
Definition: FWEventItem.h:85
const std::vector< reco::HGCalMultiCluster > * m_towers
const std::string & FWHGCalMultiClusterLegoProxyBuilder::classPurpose ( )
static

Definition at line 67 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

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

Definition at line 67 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

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

Definition at line 67 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

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

Definition at line 67 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

void FWHGCalMultiClusterLegoProxyBuilder::fillCaloData ( )
overrideprivatevirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 49 of file FWHGCalMultiClusterLegoProxyBuilder.cc.

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

50 {
51  m_hist->Reset();
52 
53  if (m_towers)
54  {
55  if(item()->defaultDisplayProperties().isVisible()) {
56  unsigned int index=0;
57  for(std::vector<reco::HGCalMultiCluster>::const_iterator tower = m_towers->begin(); tower != m_towers->end(); ++tower,++index) {
58  const FWEventItem::ModelInfo& info = item()->modelInfo(index);
59  if(info.displayProperties().isVisible()) {
60  addEntryToTEveCaloData(tower->eta(), tower->phi(), tower->pt(), info.isSelected());
61  }
62  }
63  }
64  }
65 }
static const TGPicture * info(bool iBackgroundIsBlack)
const FWDisplayProperties & displayProperties() const
Definition: FWEventItem.h:68
bool isSelected() const
Definition: FWEventItem.h:71
const FWEventItem * item() const
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:537
FWHistSliceSelector * FWHGCalMultiClusterLegoProxyBuilder::instantiateSliceSelector ( )
overrideprivatevirtual
const FWHGCalMultiClusterLegoProxyBuilder& FWHGCalMultiClusterLegoProxyBuilder::operator= ( const FWHGCalMultiClusterLegoProxyBuilder )
privatedelete
const std::string& FWHGCalMultiClusterLegoProxyBuilder::purpose ( ) const
inline

Definition at line 21 of file FWHGCalMultiClusterLegoProxyBuilder.h.

23 :
24  void fillCaloData() override;
const std::string& FWHGCalMultiClusterLegoProxyBuilder::typeName ( ) const
inline

Definition at line 21 of file FWHGCalMultiClusterLegoProxyBuilder.h.

23 :
24  void fillCaloData() override;
const std::string& FWHGCalMultiClusterLegoProxyBuilder::view ( ) const
inline

Definition at line 21 of file FWHGCalMultiClusterLegoProxyBuilder.h.

23 :
24  void fillCaloData() override;

Member Data Documentation

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

Definition at line 31 of file FWHGCalMultiClusterLegoProxyBuilder.h.

Referenced by build(), and fillCaloData().