9 #include "TEvePointSet.h"
10 #include "TEveStraightLineSet.h"
36 unsigned int iIndex, TEveElement& oItemHolder,
50 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
53 TEvePointSet* pointSet =
new TEvePointSet;
62 float localU1Point[3] =
64 localPositionX - localPositionXX, localPositionY, 0.0
67 float localU2Point[3] =
69 localPositionX + localPositionXX, localPositionY, 0.0
72 float localV1Point[3] =
74 localPositionX, localPositionY - localPositionYY, 0.0
77 float localV2Point[3] =
79 localPositionX, localPositionY + localPositionYY, 0.0
82 float globalU1Point[3];
83 float globalU2Point[3];
84 float globalV1Point[3];
85 float globalV2Point[3];
92 pointSet->SetNextPoint( globalU1Point[0], globalU1Point[1], globalU1Point[2] );
93 pointSet->SetNextPoint( globalU2Point[0], globalU2Point[1], globalU2Point[2] );
94 pointSet->SetNextPoint( globalV1Point[0], globalV1Point[1], globalV1Point[2] );
95 pointSet->SetNextPoint( globalV2Point[0], globalV2Point[1], globalV2Point[2] );
97 recHitSet->AddLine( globalU1Point[0], globalU1Point[1], globalU1Point[2],
98 globalU2Point[0], globalU2Point[1], globalU2Point[2] );
100 recHitSet->AddLine( globalV1Point[0], globalV1Point[1], globalV1Point[2],
101 globalV2Point[0], globalV2Point[1], globalV2Point[2] );
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
CSCDetId cscDetId() const
static const int kAllRPZBits
virtual ~FWCSCRecHitProxyBuilder(void)
IdToInfoItr find(unsigned int) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void localToGlobal(unsigned int id, const float *local, float *global) const
const FWEventItem * item() const
static const int kAll3DBits
const FWCSCRecHitProxyBuilder & operator=(const FWCSCRecHitProxyBuilder &)
uint32_t rawId() const
get the raw id
LocalError localPositionError() const
bool contains(unsigned int id) const
REGISTER_PROXYBUILDER_METHODS()
LocalPoint localPosition() const
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const
FWCSCRecHitProxyBuilder(void)