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
 
virtual ~FWCaloTowerProxyBuilderBase ()
 
- Public Member Functions inherited from FWCaloDataHistProxyBuilder
 FWCaloDataHistProxyBuilder ()
 
virtual ~FWCaloDataHistProxyBuilder ()
 
- Public Member Functions inherited from FWCaloDataProxyBuilderBase
 FWCaloDataProxyBuilderBase ()
 
virtual bool willHandleInteraction () const
 
virtual ~FWCaloDataProxyBuilderBase ()
 
- 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

virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
virtual void fillCaloData ()
 
virtual FWHistSliceSelectorinstantiateSliceSelector ()
 
- Protected Member Functions inherited from FWCaloDataHistProxyBuilder
void addEntryToTEveCaloData (float eta, float phi, float Et, bool isSelected)
 
virtual bool assertCaloDataSlice ()
 
virtual void itemBeingDestroyed (const FWEventItem *)
 
virtual void setCaloData (const fireworks::Context &)
 
- 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 &)
 
const FWCaloTowerProxyBuilderBaseoperator= (const FWCaloTowerProxyBuilderBase &)
 

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 35 of file FWCaloTowerProxyBuilder.h.

Constructor & Destructor Documentation

FWCaloTowerProxyBuilderBase::FWCaloTowerProxyBuilderBase ( )

Definition at line 36 of file FWCaloTowerProxyBuilder.cc.

36  :
38  m_towers(0)
39 {
40 }
const CaloTowerCollection * m_towers
FWCaloTowerProxyBuilderBase::~FWCaloTowerProxyBuilderBase ( )
virtual

Definition at line 42 of file FWCaloTowerProxyBuilder.cc.

43 {
44 }
FWCaloTowerProxyBuilderBase::FWCaloTowerProxyBuilderBase ( const FWCaloTowerProxyBuilderBase )
private

Member Function Documentation

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

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 48 of file FWCaloTowerProxyBuilder.cc.

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

50 {
51  m_towers=0;
52  if (iItem)
53  {
54  iItem->get(m_towers);
55  FWCaloDataProxyBuilderBase::build(iItem, el, ctx);
56  }
57 }
void get(const T *&oData) const
Definition: FWEventItem.h:85
const CaloTowerCollection * m_towers
void FWCaloTowerProxyBuilderBase::fillCaloData ( )
protectedvirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 68 of file FWCaloTowerProxyBuilder.cc.

References FWCaloDataHistProxyBuilder::addEntryToTEveCaloData(), edm::SortedCollection< T, SORT >::begin(), FWEventItem::ModelInfo::displayProperties(), edm::SortedCollection< T, SORT >::end(), getEt(), diffTreeTool::index, info(), FWEventItem::ModelInfo::isSelected(), FWDisplayProperties::isVisible(), FWProxyBuilderBase::item(), FWCaloDataHistProxyBuilder::m_hist, m_towers, and FWEventItem::modelInfo().

69 {
70  m_hist->Reset();
71 
72  if (m_towers)
73  {
74  if(item()->defaultDisplayProperties().isVisible()) {
75  unsigned int index=0;
76  for(CaloTowerCollection::const_iterator tower = m_towers->begin(); tower != m_towers->end(); ++tower,++index) {
77  const FWEventItem::ModelInfo& info = item()->modelInfo(index);
78  if(info.displayProperties().isVisible()) {
79  addEntryToTEveCaloData(tower->eta(), tower->phi(), getEt(*tower), info.isSelected());
80  }
81  }
82  }
83  }
84 }
static const TGPicture * info(bool iBackgroundIsBlack)
const FWDisplayProperties & displayProperties() const
Definition: FWEventItem.h:68
bool isSelected() const
Definition: FWEventItem.h:71
std::vector< CaloTower >::const_iterator const_iterator
const FWEventItem * item() const
const CaloTowerCollection * m_towers
void addEntryToTEveCaloData(float eta, float phi, float Et, bool isSelected)
const_iterator end() const
virtual double getEt(const CaloTower &) const =0
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:537
const_iterator begin() const
virtual double FWCaloTowerProxyBuilderBase::getEt ( const CaloTower ) const
pure virtual
FWHistSliceSelector * FWCaloTowerProxyBuilderBase::instantiateSliceSelector ( )
protectedvirtual
const FWCaloTowerProxyBuilderBase& FWCaloTowerProxyBuilderBase::operator= ( const FWCaloTowerProxyBuilderBase )
private

Member Data Documentation

const CaloTowerCollection* FWCaloTowerProxyBuilderBase::m_towers
private

Definition at line 52 of file FWCaloTowerProxyBuilder.h.

Referenced by build(), and fillCaloData().