9 #include "TEvePointSet.h"
10 #include "TEveStraightLineSet.h"
52 << layerId << std::endl;
56 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
59 TEvePointSet* pointSet =
new TEvePointSet;
64 float lLocalPos[3] = { leftRecHit->
localPosition().
x(), 0.0, 0.0 };
65 float rLocalPos[3] = { rightRecHit->
localPosition().
x(), 0.0, 0.0 };
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], leftGlobalPoint[1], leftGlobalPoint[2],
81 rightGlobalPoint[0], rightGlobalPoint[1], rightGlobalPoint[2] );
nocap nocap const skelname & operator=(const skelname &)
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
virtual bool haveSingleProduct() const
static const int kAllRPZBits
const DTRecHit1D * componentRecHit(DTEnums::DTCellSide lrSide) const
Return the left/right DTRecHit1D.
void localToGlobal(unsigned int id, const float *local, float *global) const
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
static const int kAll3DBits
virtual void buildViewType(const DTRecHit1DPair &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *)
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)
void setupAddElement(TEveElement *el, TEveElement *parent, const FWEventItem *item, bool master, bool color)