8 #include "TEvePointSet.h"
9 #include "TEveStraightLineSet.h"
51 << layerId << std::endl;
55 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
58 TEvePointSet* pointSet =
new TEvePointSet;
63 float lLocalPos[3] = { leftRecHit->
localPosition().
x(), 0.0, 0.0 };
64 float rLocalPos[3] = { rightRecHit->
localPosition().
x(), 0.0, 0.0 };
71 float leftGlobalPoint[3];
72 float rightGlobalPoint[3];
74 geom->
localToGlobal( layerId, lLocalPos, leftGlobalPoint, rLocalPos, rightGlobalPoint );
76 pointSet->SetNextPoint( leftGlobalPoint[0], leftGlobalPoint[1], leftGlobalPoint[2] );
77 pointSet->SetNextPoint( rightGlobalPoint[0], rightGlobalPoint[1], rightGlobalPoint[2] );
79 recHitSet->AddLine( leftGlobalPoint[0], leftGlobalPoint[1], leftGlobalPoint[2],
80 rightGlobalPoint[0], rightGlobalPoint[1], rightGlobalPoint[2] );
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
virtual void buildViewType(const DTRecHit1DPair &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
const DTRecHit1D * componentRecHit(DTEnums::DTCellSide lrSide) const
Return the left/right DTRecHit1D.
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
static const int kAll3DBits
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
int superLayer() const
Return the superlayer number.
bool contains(unsigned int id) const
FWDTRecHitProxyBuilder(void)
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
DTLayerId layerId() const
Return the corresponding LayerId.
virtual ~FWDTRecHitProxyBuilder(void)
virtual bool haveSingleProduct() const override
void setupAddElement(TEveElement *el, TEveElement *parent, const FWEventItem *item, bool master, bool color)