CMS 3D CMS Logo

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

#include <FWCandidateTowerProxyBuilder.h>

Inheritance diagram for FWCandidateTowerProxyBuilder:
FWCaloDataHistProxyBuilder FWCaloDataProxyBuilderBase FWProxyBuilderBase

Public Member Functions

 FWCandidateTowerProxyBuilder ()
 
virtual double getEt (const reco::Candidate &cand) const
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
virtual ~FWCandidateTowerProxyBuilder ()
 
- 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 ()
 

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...
 

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

 FWCandidateTowerProxyBuilder (const FWCandidateTowerProxyBuilder &)
 
const
FWCandidateTowerProxyBuilder
operator= (const FWCandidateTowerProxyBuilder &)
 

Private Attributes

const
pat::PackedCandidateCollection
m_towers
 

Additional Inherited Members

- 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 17 of file FWCandidateTowerProxyBuilder.h.

Constructor & Destructor Documentation

FWCandidateTowerProxyBuilder::FWCandidateTowerProxyBuilder ( )

Definition at line 25 of file FWCandidateTowerProxyBuilder.cc.

25  :
26 m_towers(0)
27 {
28 }
const pat::PackedCandidateCollection * m_towers
FWCandidateTowerProxyBuilder::~FWCandidateTowerProxyBuilder ( )
virtual

Definition at line 30 of file FWCandidateTowerProxyBuilder.cc.

31 {
32 }
FWCandidateTowerProxyBuilder::FWCandidateTowerProxyBuilder ( const FWCandidateTowerProxyBuilder )
private

Member Function Documentation

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

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 41 of file FWCandidateTowerProxyBuilder.cc.

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

42 {
43  m_towers=0;
44  if (iItem)
45  {
46  iItem->get(m_towers);
47  FWCaloDataProxyBuilderBase::build(iItem, el, ctx);
48  }
49 }
const pat::PackedCandidateCollection * m_towers
void get(const T *&oData) const
Definition: FWEventItem.h:84
const std::string & FWCandidateTowerProxyBuilder::classPurpose ( )
static

Definition at line 79 of file FWCandidateTowerProxyBuilder.cc.

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

Definition at line 79 of file FWCandidateTowerProxyBuilder.cc.

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

Definition at line 79 of file FWCandidateTowerProxyBuilder.cc.

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

Definition at line 79 of file FWCandidateTowerProxyBuilder.cc.

void FWCandidateTowerProxyBuilder::fillCaloData ( )
protectedvirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 60 of file FWCandidateTowerProxyBuilder.cc.

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

61 {
62  m_hist->Reset();
63 
64  if (m_towers)
65  {
66  if(item()->defaultDisplayProperties().isVisible()) {
67  // assert(item()->size() >= m_towers->size());
68  unsigned int index=0;
69  for( pat::PackedCandidateCollection::const_iterator tower = m_towers->begin(); tower != m_towers->end(); ++tower,++index) {
70  const FWEventItem::ModelInfo& info = item()->modelInfo(index);
71  if(info.displayProperties().isVisible()) {
72  addEntryToTEveCaloData(tower->eta(), tower->phi(), getEt(*tower), info.isSelected());
73  }
74  }
75  }
76  }
77 }
static const TGPicture * info(bool iBackgroundIsBlack)
const FWDisplayProperties & displayProperties() const
Definition: FWEventItem.h:67
const pat::PackedCandidateCollection * m_towers
bool isSelected() const
Definition: FWEventItem.h:70
const FWEventItem * item() const
void addEntryToTEveCaloData(float eta, float phi, float Et, bool isSelected)
virtual double getEt(const reco::Candidate &cand) const
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:535
virtual double FWCandidateTowerProxyBuilder::getEt ( const reco::Candidate cand) const
inlinevirtual

Definition at line 23 of file FWCandidateTowerProxyBuilder.h.

References reco::Candidate::pt().

Referenced by fillCaloData().

23 { return cand.pt(); }
virtual float pt() const =0
transverse momentum
FWHistSliceSelector * FWCandidateTowerProxyBuilder::instantiateSliceSelector ( )
protectedvirtual
const FWCandidateTowerProxyBuilder& FWCandidateTowerProxyBuilder::operator= ( const FWCandidateTowerProxyBuilder )
private
const std::string& FWCandidateTowerProxyBuilder::purpose ( ) const
inline

Definition at line 25 of file FWCandidateTowerProxyBuilder.h.

26 :
27  virtual void fillCaloData();
const std::string& FWCandidateTowerProxyBuilder::typeName ( ) const
inline

Definition at line 25 of file FWCandidateTowerProxyBuilder.h.

26 :
27  virtual void fillCaloData();
const std::string& FWCandidateTowerProxyBuilder::view ( ) const
inline

Definition at line 25 of file FWCandidateTowerProxyBuilder.h.

26 :
27  virtual void fillCaloData();

Member Data Documentation

const pat::PackedCandidateCollection* FWCandidateTowerProxyBuilder::m_towers
private

Definition at line 36 of file FWCandidateTowerProxyBuilder.h.

Referenced by build(), and fillCaloData().