8 #include "TEvePointSet.h" 9 #include "TEveStraightLineSet.h" 39 TEveElement& oItemHolder,
46 TEveElement& oItemHolder,
54 if (!
geom->contains(layerId)) {
55 fwLog(
fwlog::kError) <<
"failed get geometry of DT layer with detid: " << layerId << std::endl;
59 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
62 TEvePointSet* pointSet =
new TEvePointSet;
72 float leftGlobalPoint[3];
73 float rightGlobalPoint[3];
75 geom->localToGlobal(layerId, lLocalPos, leftGlobalPoint, rLocalPos, rightGlobalPoint);
77 pointSet->SetNextPoint(leftGlobalPoint[0], leftGlobalPoint[1], leftGlobalPoint[2]);
78 pointSet->SetNextPoint(rightGlobalPoint[0], rightGlobalPoint[1], rightGlobalPoint[2]);
80 recHitSet->AddLine(leftGlobalPoint[0],
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
int superLayer() const
Return the superlayer number.
static const int kAllRPZBits
bool haveSingleProduct() const override
void buildViewType(const DTRecHit1DPair &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
static const int kAll3DBits
FWDTRecHitProxyBuilder(void)
~FWDTRecHitProxyBuilder(void) override
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
DTLayerId layerId() const
Return the corresponding LayerId.
LocalPoint localPosition() const override
Return the 3-dimensional local position.
void setupAddElement(TEveElement *el, TEveElement *parent, const FWEventItem *item, bool master, bool color)
const DTRecHit1D * componentRecHit(DTEnums::DTCellSide lrSide) const
Return the left/right DTRecHit1D.