CMS 3D CMS Logo

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

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

virtual void itemChangedImp (const FWEventItem *)
 

Private Attributes

FWSimpleProxyHelper m_helper
 

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

Constructor & Destructor Documentation

◆ FWCandidateTowerProxyBuilder() [1/2]

FWCandidateTowerProxyBuilder::FWCandidateTowerProxyBuilder ( )

Definition at line 23 of file FWCandidateTowerProxyBuilder.cc.

◆ ~FWCandidateTowerProxyBuilder()

FWCandidateTowerProxyBuilder::~FWCandidateTowerProxyBuilder ( )
override

Definition at line 25 of file FWCandidateTowerProxyBuilder.cc.

25 {}

◆ FWCandidateTowerProxyBuilder() [2/2]

FWCandidateTowerProxyBuilder::FWCandidateTowerProxyBuilder ( const FWCandidateTowerProxyBuilder )
delete

Member Function Documentation

◆ build()

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

Reimplemented from FWCaloDataProxyBuilderBase.

Definition at line 37 of file FWCandidateTowerProxyBuilder.cc.

References FWProxyBuilderBase::build().

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

◆ classPurpose()

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

Definition at line 73 of file FWCandidateTowerProxyBuilder.cc.

◆ classRegisterTypeName()

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

Definition at line 73 of file FWCandidateTowerProxyBuilder.cc.

◆ classTypeName()

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

Definition at line 73 of file FWCandidateTowerProxyBuilder.cc.

◆ classView()

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

Definition at line 73 of file FWCandidateTowerProxyBuilder.cc.

◆ fillCaloData()

void FWCandidateTowerProxyBuilder::fillCaloData ( )
overrideprotectedvirtual

Implements FWCaloDataProxyBuilderBase.

Definition at line 50 of file FWCandidateTowerProxyBuilder.cc.

References FWCaloDataHistProxyBuilder::addEntryToTEveCaloData(), getEt(), info(), FWProxyBuilderBase::item(), m_helper, FWCaloDataHistProxyBuilder::m_hist, FWEventItem::modelData(), FWEventItem::modelInfo(), FWSimpleProxyHelper::offsetObject(), FWEventItem::size(), and l1tHGCalTowerProducer_cfi::tower.

50  {
51  m_hist->Reset();
52 
53  // if (m_towers)
54  {
55  if (item()->defaultDisplayProperties().isVisible()) {
56  // assert(item()->size() >= m_towers->size());
57  for (size_t index = 0; index < item()->size(); ++index) {
59  if (info.displayProperties().isVisible()) {
60  const void* modelData = item()->modelData((int)index);
61 
62  const reco::Candidate* tower = reinterpret_cast<const reco::Candidate*>(m_helper.offsetObject(modelData));
63  addEntryToTEveCaloData(tower->eta(), tower->phi(), getEt(*tower), info.isSelected());
64  }
65  }
66  }
67  }
68 }
size_t size() const
Definition: FWEventItem.cc:457
const void * modelData(int iIndex) const
Definition: FWEventItem.cc:466
static const TGPicture * info(bool iBackgroundIsBlack)
void addEntryToTEveCaloData(float eta, float phi, float Et, bool isSelected)
const void * offsetObject(const void *iObj) const
virtual double getEt(const reco::Candidate &cand) const
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
const FWEventItem * item() const

◆ getEt()

virtual double FWCandidateTowerProxyBuilder::getEt ( const reco::Candidate cand) const
inlinevirtual

Definition at line 23 of file FWCandidateTowerProxyBuilder.h.

Referenced by fillCaloData().

23 { return cand.pt(); }

◆ instantiateSliceSelector()

FWHistSliceSelector * FWCandidateTowerProxyBuilder::instantiateSliceSelector ( )
overrideprotectedvirtual

◆ itemChangedImp()

void FWCandidateTowerProxyBuilder::itemChangedImp ( const FWEventItem iItem)
privatevirtual

Definition at line 31 of file FWCandidateTowerProxyBuilder.cc.

References FWSimpleProxyHelper::itemChanged(), and m_helper.

31  {
32  if (iItem) {
33  m_helper.itemChanged(iItem);
34  }
35 }
void itemChanged(const FWEventItem *)

◆ operator=()

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

◆ purpose()

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

Definition at line 25 of file FWCandidateTowerProxyBuilder.h.

27 :
28  void fillCaloData() override;

◆ typeName()

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

Definition at line 25 of file FWCandidateTowerProxyBuilder.h.

27 :
28  void fillCaloData() override;

◆ typeOfBuilder()

static std::string FWCandidateTowerProxyBuilder::typeOfBuilder ( )
inlinestatic

◆ view()

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

Definition at line 25 of file FWCandidateTowerProxyBuilder.h.

27 :
28  void fillCaloData() override;

Member Data Documentation

◆ m_helper

FWSimpleProxyHelper FWCandidateTowerProxyBuilder::m_helper
private