|
typedef std::vector< Product * >::iterator | Product_it |
|
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 CSCSegment &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *) |
|
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 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 CSCSegment & | 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 | localModelChanges (const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) |
|
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 24 of file FWCSCSegmentProxyBuilder.cc.
void FWCSCSegmentProxyBuilder::build |
( |
const CSCSegment & |
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< CSCSegment >.
Definition at line 39 of file FWCSCSegmentProxyBuilder.cc.
46 if (!
geom->contains(rawid)) {
47 fwLog(
fwlog::kError) <<
"failed to get geometry of CSC chamber with rawid: " << rawid << std::endl;
51 TEveStraightLineSet* segmentSet =
new TEveStraightLineSet();
53 segmentSet->SetLineWidth(3);
57 if (TGeoTrap* trap = dynamic_cast<TGeoTrap*>(shape->GetShape()))
63 Double_t localPosition[3] = {
pos.x(),
pos.y(),
pos.z()};
64 Double_t localDirectionIn[3] = {
dir.x(),
dir.y(),
dir.z()};
65 Double_t localDirectionOut[3] = {-
dir.x(), -
dir.y(), -
dir.z()};
67 float distIn = trap->DistFromInside(localPosition, localDirectionIn);
68 float distOut = trap->DistFromInside(localPosition, localDirectionOut);
71 float localSegmentInnerPoint[3] = {static_cast<float>(localPosition[0] + vIn.
x()),
72 static_cast<float>(localPosition[1] + vIn.
y()),
73 static_cast<float>(localPosition[2] + vIn.
z())};
75 float localSegmentOuterPoint[3] = {static_cast<float>(localPosition[0] + vOut.
x()),
76 static_cast<float>(localPosition[1] + vOut.
y()),
77 static_cast<float>(localPosition[2] + vOut.
z())};
79 float globalSegmentInnerPoint[3];
80 float globalSegmentOuterPoint[3];
83 rawid, localSegmentInnerPoint, globalSegmentInnerPoint, localSegmentOuterPoint, globalSegmentOuterPoint);
85 segmentSet->AddLine(globalSegmentInnerPoint[0],
86 globalSegmentInnerPoint[1],
87 globalSegmentInnerPoint[2],
88 globalSegmentOuterPoint[0],
89 globalSegmentOuterPoint[1],
90 globalSegmentOuterPoint[2]);
References CSCSegment::cscDetId(), DeadROC_duringRun::dir, fwLog, relativeConstraints::geom, FWGeometry::getEveShape(), FWEventItem::getGeom(), FWProxyBuilderBase::item(), fwlog::kError, CSCSegment::localDirection(), CSCSegment::localPosition(), DetId::rawId(), FWProxyBuilderBase::setupAddElement(), unit(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().