CMS 3D CMS Logo

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

Public Member Functions

 FWPhase2TrackerCluster1DDetProxyBuilder ()
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
 ~FWPhase2TrackerCluster1DDetProxyBuilder () 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 bool willHandleInteraction () 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
 
 FWPhase2TrackerCluster1DDetProxyBuilder (const FWPhase2TrackerCluster1DDetProxyBuilder &)=delete
 
const FWPhase2TrackerCluster1DDetProxyBuilderoperator= (const FWPhase2TrackerCluster1DDetProxyBuilder &)=delete
 

Additional Inherited Members

- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >::iterator Product_it
 
- 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)
 
virtual void modelChanges (const FWModelIds &, Product *)
 
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 17 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

Constructor & Destructor Documentation

FWPhase2TrackerCluster1DDetProxyBuilder::FWPhase2TrackerCluster1DDetProxyBuilder ( )
inline

Definition at line 20 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

20 {}
FWPhase2TrackerCluster1DDetProxyBuilder::~FWPhase2TrackerCluster1DDetProxyBuilder ( )
inlineoverride

Definition at line 21 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

21 {}
FWPhase2TrackerCluster1DDetProxyBuilder::FWPhase2TrackerCluster1DDetProxyBuilder ( const FWPhase2TrackerCluster1DDetProxyBuilder )
privatedelete

Member Function Documentation

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

Reimplemented from FWProxyBuilderBase.

Definition at line 32 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

References edmNew::DetSet< T >::begin(), edmNew::DetSetVector< T >::begin(), fastPrimaryVertexProducer_cfi::clusters, FWGeometry::contains(), edmNew::DetSet< T >::end(), edmNew::DetSetVector< T >::end(), relativeConstraints::geom, FWEventItem::get(), FWGeometry::getEveShape(), FWEventItem::getGeom(), and FWProxyBuilderBase::setupAddElement().

33 {
34  const Phase2TrackerCluster1DCollectionNew* pixels = nullptr;
35 
36  iItem->get(pixels);
37 
38  if( ! pixels )
39  return;
40 
41  const FWGeometry* geom = iItem->getGeom();
42 
43  for( Phase2TrackerCluster1DCollectionNew::const_iterator set = pixels->begin(), setEnd = pixels->end();
44  set != setEnd; ++set) {
45  unsigned int id = set->detId();
46  DetId detid(id);
47 
48  if( geom->contains( detid )) {
50 
51  for( edmNew::DetSet<Phase2TrackerCluster1D>::const_iterator itc = clusters.begin(), edc = clusters.end();
52  itc != edc; ++itc ) {
53  TEveGeoShape* shape = geom->getEveShape(detid);
54 
55  if ( shape ) {
56  shape->SetMainTransparency(50);
57  setupAddElement(shape, product);
58  }
59  }
60  }
61  }
62 }
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
Definition: FWEventItem.h:85
data_type const * const_iterator
Definition: DetSetNew.h:30
TEveGeoShape * getEveShape(unsigned int id) const
Definition: FWGeometry.cc:298
bool contains(unsigned int id) const
Definition: FWGeometry.h:117
Definition: DetId.h:18
iterator end()
Definition: DetSetNew.h:70
const FWGeometry * getGeom() const
Definition: FWEventItem.cc:686
const_iterator begin(bool update=false) const
iterator begin()
Definition: DetSetNew.h:67
const std::string & FWPhase2TrackerCluster1DDetProxyBuilder::classPurpose ( )
static

Definition at line 64 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

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

Definition at line 64 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

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

Definition at line 64 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

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

Definition at line 64 of file FWPhase2TrackerCluster1DDetProxyBuilder.cc.

const FWPhase2TrackerCluster1DDetProxyBuilder& FWPhase2TrackerCluster1DDetProxyBuilder::operator= ( const FWPhase2TrackerCluster1DDetProxyBuilder )
privatedelete
const std::string& FWPhase2TrackerCluster1DDetProxyBuilder::purpose ( ) const
inline
const std::string& FWPhase2TrackerCluster1DDetProxyBuilder::typeName ( ) const
inline
const std::string& FWPhase2TrackerCluster1DDetProxyBuilder::view ( ) const
inline