|
typedef std::vector< Product * >::iterator | Product_it |
|
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 () |
|
virtual void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) |
|
void | build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override |
|
virtual void | buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0 |
|
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 | buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override |
|
virtual void | buildViewType (const reco::Vertex &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *) |
|
const reco::Vertex & | modelData (int index) |
|
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 |
|
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 | modelChanges (const FWModelIds &, Product *) |
|
const FWProxyBuilderBase & | operator= (const FWProxyBuilderBase &) |
|
virtual void | scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) |
|
FWSimpleProxyHelper | m_helper |
|
std::vector< Product * > | m_products |
|
Definition at line 41 of file FWVertexProxyBuilder.cc.
void FWVertexProxyBuilder::build |
( |
const reco::Vertex & |
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< reco::Vertex >.
Definition at line 74 of file FWVertexProxyBuilder.cc.
References fireworks::Context::commonPrefs(), FWProxyBuilderBase::context(), MillePedeFileConverter_cfg::e, fwLog, FWEventItem::getConfig(), fireworks::Context::getInstance(), mps_fire::i, FWProxyBuilderBase::item(), dqmiolumiharvest::j, fwlog::kInfo, visualization-live-secondInstance_cfg::m, METSkim_cff::Min, TEveEllipsoid::RefEMtx(), TEveEllipsoid::RefExtent3D(), TEveEllipsoid::RefPos(), CmsShowCommon::resetEventCenter(), CmsShowCommon::setEventCenter(), TEveEllipsoid::SetScale(), FWProxyBuilderBase::setupAddElement(), mathSSE::sqrt(), submitPVValidationJobs::t, HLT_2022v11_cff::track, findQualityFiles::v, FWProxyBuilderConfiguration::value(), and w().
81 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
82 TEvePointSet* pointSet =
new TEvePointSet();
83 pointSet->SetNextPoint(
v.x(),
v.y(),
v.z());
87 if (
item()->getConfig()->value<bool>(
"Draw Ellipse")) {
90 eveEllipsoid->
RefPos().Set(
v.x(),
v.y(),
v.z());
94 for (
int i = 0;
i < 3;
i++)
95 for (
int j = 0;
j < 3;
j++) {
101 double ellipseScale = 1.;
105 eveEllipsoid->
SetScale(ellipseScale);
108 TMatrixDEigen eig(
m);
109 TVectorD vv(eig.GetEigenValuesRe());
110 eveEllipsoid->
RefExtent3D().Set(
sqrt(vv(0)) * ellipseScale,
sqrt(vv(1)) * ellipseScale,
sqrt(vv(2)) * ellipseScale);
112 eveEllipsoid->SetLineWidth(2);
114 eveEllipsoid->SetMainTransparency(
TMath::Min(100, 80 +
item()->defaultDisplayProperties().transparency() / 5));
119 eveEllipsoid->SetMainColor(color +
context().colorManager()->offsetOfLimitedColors());
123 if (
item()->getConfig()->value<bool>(
"Draw Tracks")) {
125 float w =
v.trackWeight(*it);
135 TEveTrack* trk =
new TEveTrack(&
t,
context().getTrackPropagator());
136 trk->SetMainColor(
item()->defaultDisplayProperties().color());
141 if (
item()->getConfig()->value<bool>(
"Draw Pseudo Track")) {
144 t.fV = TEveVector(
v.x(),
v.y(),
v.z());
145 t.fP = TEveVector(-
v.p4().px(), -
v.p4().py(), -
v.p4().pz());
147 TEveTrack* trk =
new TEveTrack(&
t,
context().getTrackPropagator());
148 trk->SetLineStyle(7);
158 if (cIdx >= 0 &&
int(iIndex) ==
int(cIdx)) {
160 << Form(
"idx [%d], (%f %f %f) \n", cIdx,
v.x(),
v.y(),
v.z());
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
CmsShowCommon * commonPrefs() const
FWProxyBuilderConfiguration * getConfig() const
math::Error< dimension >::type Error
covariance error matrix (3x3)
const fireworks::Context & context() const
static Context * getInstance()
void setEventCenter(float, float, float)
TEveVector & RefExtent3D()
T value(const std::string &name)
const FWEventItem * item() const
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>