CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
FWPRCaloTowerProxyBuilder Class Reference
Inheritance diagram for FWPRCaloTowerProxyBuilder:
FWDigitSetProxyBuilder FWProxyBuilderBase

Public Member Functions

 FWPRCaloTowerProxyBuilder (void)
 
 FWPRCaloTowerProxyBuilder (const FWPRCaloTowerProxyBuilder &)=delete
 
const FWPRCaloTowerProxyBuilderoperator= (const FWPRCaloTowerProxyBuilder &)=delete
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
 ~FWPRCaloTowerProxyBuilder (void) override
 
- Public Member Functions inherited from FWDigitSetProxyBuilder
 FWDigitSetProxyBuilder ()
 
 FWDigitSetProxyBuilder (const FWDigitSetProxyBuilder &)=delete
 
const FWDigitSetProxyBuilderoperator= (const FWDigitSetProxyBuilder &)=delete
 
bool willHandleInteraction () const override
 
 ~FWDigitSetProxyBuilder () 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
 
virtual void itemBeingDestroyed (const FWEventItem *)
 
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
 

Additional Inherited Members

- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >::iterator Product_it
 
- Protected Member Functions inherited from FWDigitSetProxyBuilder
void addBox (TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
 
TEveBoxSet * addBoxSetToProduct (TEveElementList *product)
 
TEveBoxSet * getBoxSet () const
 
- 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 FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

Definition at line 7 of file FWPRCaloTowerProxyBuilder.cc.

Constructor & Destructor Documentation

◆ FWPRCaloTowerProxyBuilder() [1/2]

FWPRCaloTowerProxyBuilder::FWPRCaloTowerProxyBuilder ( void  )
inline

Definition at line 9 of file FWPRCaloTowerProxyBuilder.cc.

9 {}

◆ ~FWPRCaloTowerProxyBuilder()

FWPRCaloTowerProxyBuilder::~FWPRCaloTowerProxyBuilder ( void  )
inlineoverride

Definition at line 10 of file FWPRCaloTowerProxyBuilder.cc.

10 {}

◆ FWPRCaloTowerProxyBuilder() [2/2]

FWPRCaloTowerProxyBuilder::FWPRCaloTowerProxyBuilder ( const FWPRCaloTowerProxyBuilder )
delete

Member Function Documentation

◆ build()

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

Reimplemented from FWProxyBuilderBase.

Definition at line 22 of file FWPRCaloTowerProxyBuilder.cc.

References FWDigitSetProxyBuilder::addBox(), FWDigitSetProxyBuilder::addBoxSetToProduct(), universalConfigTemplate::collection, FWEventItem::ModelInfo::displayProperties(), fireworks::energyTower3DCorners(), FWEventItem::get(), FWGeometry::getCorners(), FWEventItem::getGeom(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, FWProxyBuilderBase::item(), and FWEventItem::modelInfo().

22  {
23  const CaloTowerCollection* collection = nullptr;
24  iItem->get(collection);
25  if (!collection)
26  return;
27 
28  TEveBoxSet* boxSet = addBoxSetToProduct(product);
29  int index = 0;
30  for (std::vector<CaloTower>::const_iterator it = collection->begin(); it != collection->end(); ++it) {
31  const float* corners = item()->getGeom()->getCorners((*it).id().rawId());
32  if (corners == nullptr)
33  continue;
34 
35  std::vector<float> scaledCorners(24);
36  fireworks::energyTower3DCorners(corners, (*it).et(), scaledCorners);
37 
38  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
39  }
40 }
void get(const T *&oData) const
Definition: FWEventItem.h:78
const FWDisplayProperties & displayProperties() const
Definition: FWEventItem.h:64
const float * getCorners(unsigned int id) const
Definition: FWGeometry.cc:439
void energyTower3DCorners(const float *corners, float scale, std::vector< float > &, bool reflect=false)
const FWGeometry * getGeom() const
Definition: FWEventItem.cc:548
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
const FWEventItem * item() const

◆ classPurpose()

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

Definition at line 42 of file FWPRCaloTowerProxyBuilder.cc.

◆ classRegisterTypeName()

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

Definition at line 42 of file FWPRCaloTowerProxyBuilder.cc.

◆ classTypeName()

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

Definition at line 42 of file FWPRCaloTowerProxyBuilder.cc.

◆ classView()

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

Definition at line 42 of file FWPRCaloTowerProxyBuilder.cc.

◆ operator=()

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

◆ purpose()

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

Definition at line 12 of file FWPRCaloTowerProxyBuilder.cc.

◆ typeName()

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

Definition at line 12 of file FWPRCaloTowerProxyBuilder.cc.

◆ view()

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

Definition at line 12 of file FWPRCaloTowerProxyBuilder.cc.