CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
FWTracksterProxyBuilder Class Reference
Inheritance diagram for FWTracksterProxyBuilder:
FWSimpleProxyBuilderTemplate< ticl::Trackster > FWSimpleProxyBuilder FWProxyBuilderBase

Public Member Functions

 FWTracksterProxyBuilder (void)
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
 ~FWTracksterProxyBuilder (void) override
 
- Public Member Functions inherited from FWSimpleProxyBuilderTemplate< ticl::Trackster >
 FWSimpleProxyBuilderTemplate ()
 
- Public Member Functions inherited from FWSimpleProxyBuilder
 FWSimpleProxyBuilder (const std::type_info &iType)
 
 ~FWSimpleProxyBuilder () 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 FWSimpleProxyBuilder
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 
- 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 ticl::Trackster &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *) override
 
 FWTracksterProxyBuilder (const FWTracksterProxyBuilder &)=delete
 
const FWTracksterProxyBuilderoperator= (const FWTracksterProxyBuilder &)=delete
 

Additional Inherited Members

- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >::iterator Product_it
 
- Protected Member Functions inherited from FWSimpleProxyBuilderTemplate< ticl::Trackster >
void build ()
 
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
virtual void build (const void *, unsigned int iIndex, TEveElement &iItemHolder, const FWViewContext *)=0
 
void build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override
 
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
 
void buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override
 
virtual void buildViewType (const ticl::Trackster &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *)
 
virtual void buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0
 
void buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override
 
const ticl::TrackstermodelData (int index)
 
- Protected Member Functions inherited from FWSimpleProxyBuilder
void build ()
 
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
 
void buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override
 
void clean () override
 
- Protected Member Functions inherited from FWProxyBuilderBase
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)
 
- Protected Attributes inherited from FWSimpleProxyBuilder
FWSimpleProxyHelper m_helper
 
- Protected Attributes inherited from FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

Definition at line 8 of file FWTracksterProxyBuilder.cc.

Constructor & Destructor Documentation

◆ FWTracksterProxyBuilder() [1/2]

FWTracksterProxyBuilder::FWTracksterProxyBuilder ( void  )
inline

Definition at line 10 of file FWTracksterProxyBuilder.cc.

10 {}

◆ ~FWTracksterProxyBuilder()

FWTracksterProxyBuilder::~FWTracksterProxyBuilder ( void  )
inlineoverride

Definition at line 11 of file FWTracksterProxyBuilder.cc.

11 {}

◆ FWTracksterProxyBuilder() [2/2]

FWTracksterProxyBuilder::FWTracksterProxyBuilder ( const FWTracksterProxyBuilder )
privatedelete

Member Function Documentation

◆ build()

void FWTracksterProxyBuilder::build ( const ticl::Trackster iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext  
)
overrideprivatevirtual

iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement

Reimplemented from FWSimpleProxyBuilderTemplate< ticl::Trackster >.

Definition at line 25 of file FWTracksterProxyBuilder.cc.

28  {
29  const ticl::Trackster &trackster = iData;
30  const ticl::Trackster::Vector &barycenter = trackster.barycenter();
31  const std::array<float, 3> &eigenvalues = trackster.eigenvalues();
32  const double theta = barycenter.Theta();
33  const double phi = barycenter.Phi();
34 
35  auto eveEllipsoid = new TEveGeoShape("Ellipsoid");
36  auto sphere = new TGeoSphere(0., 1.);
37  eveEllipsoid->SetShape(sphere);
38  eveEllipsoid->InitMainTrans();
39  eveEllipsoid->RefMainTrans().Move3PF(barycenter.x(), barycenter.y(), barycenter.z());
40  eveEllipsoid->RefMainTrans().SetRotByAnyAngles(theta, phi, 0., "xzy");
41  eveEllipsoid->RefMainTrans().SetScale(sqrt(eigenvalues[2]), sqrt(eigenvalues[1]), sqrt(eigenvalues[0]));
42  setupAddElement(eveEllipsoid, &oItemHolder);
43 }

References ticl::Trackster::barycenter(), ticl::Trackster::eigenvalues(), phi, FWProxyBuilderBase::setupAddElement(), mathSSE::sqrt(), and theta().

◆ classPurpose()

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

Definition at line 48 of file FWTracksterProxyBuilder.cc.

◆ classRegisterTypeName()

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

Definition at line 48 of file FWTracksterProxyBuilder.cc.

◆ classTypeName()

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

Definition at line 48 of file FWTracksterProxyBuilder.cc.

◆ classView()

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

Definition at line 48 of file FWTracksterProxyBuilder.cc.

◆ operator=()

const FWTracksterProxyBuilder& FWTracksterProxyBuilder::operator= ( const FWTracksterProxyBuilder )
privatedelete

◆ purpose()

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

Definition at line 13 of file FWTracksterProxyBuilder.cc.

15 :
16  FWTracksterProxyBuilder(const FWTracksterProxyBuilder &) = delete; // stop default

◆ typeName()

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

Definition at line 13 of file FWTracksterProxyBuilder.cc.

15 :
16  FWTracksterProxyBuilder(const FWTracksterProxyBuilder &) = delete; // stop default

◆ view()

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

Definition at line 13 of file FWTracksterProxyBuilder.cc.

15 :
16  FWTracksterProxyBuilder(const FWTracksterProxyBuilder &) = delete; // stop default
ticl::Trackster::Vector
math::XYZVector Vector
Definition: Trackster.h:21
ticl::Trackster::barycenter
const Vector & barycenter() const
Definition: Trackster.h:134
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
FWTracksterProxyBuilder
Definition: FWTracksterProxyBuilder.cc:8
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition: FWProxyBuilderBase.cc:350
DDAxes::phi
ticl::Trackster::eigenvalues
const std::array< float, 3 > & eigenvalues() const
Definition: Trackster.h:135
ticl::Trackster
Definition: Trackster.h:19
FWTracksterProxyBuilder::FWTracksterProxyBuilder
FWTracksterProxyBuilder(void)
Definition: FWTracksterProxyBuilder.cc:10