8 #include "TEvePointSet.h"
9 #include "TEveStraightLineSet.h"
35 unsigned int iIndex, TEveElement& oItemHolder,
39 unsigned int rawid = iData.cscDetId().rawId();
49 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
52 TEvePointSet* pointSet =
new TEvePointSet;
55 float localPositionX = iData.localPosition().x();
56 float localPositionY = iData.localPosition().y();
58 float localPositionXX =
sqrt( iData.localPositionError().xx());
59 float localPositionYY =
sqrt( iData.localPositionError().yy());
61 float localU1Point[3] =
63 localPositionX - localPositionXX, localPositionY, 0.0
66 float localU2Point[3] =
68 localPositionX + localPositionXX, localPositionY, 0.0
71 float localV1Point[3] =
73 localPositionX, localPositionY - localPositionYY, 0.0
76 float localV2Point[3] =
78 localPositionX, localPositionY + localPositionYY, 0.0
81 float globalU1Point[3];
82 float globalU2Point[3];
83 float globalV1Point[3];
84 float globalV2Point[3];
91 pointSet->SetNextPoint( globalU1Point[0], globalU1Point[1], globalU1Point[2] );
92 pointSet->SetNextPoint( globalU2Point[0], globalU2Point[1], globalU2Point[2] );
93 pointSet->SetNextPoint( globalV1Point[0], globalV1Point[1], globalV1Point[2] );
94 pointSet->SetNextPoint( globalV2Point[0], globalV2Point[1], globalV2Point[2] );
96 recHitSet->AddLine( globalU1Point[0], globalU1Point[1], globalU1Point[2],
97 globalU2Point[0], globalU2Point[1], globalU2Point[2] );
99 recHitSet->AddLine( globalV1Point[0], globalV1Point[1], globalV1Point[2],
100 globalV2Point[0], globalV2Point[1], globalV2Point[2] );
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
virtual ~FWCSCRecHitProxyBuilder(void)
IdToInfoItr find(unsigned int) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWEventItem * item() const
static const int kAll3DBits
const FWCSCRecHitProxyBuilder & operator=(const FWCSCRecHitProxyBuilder &)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
REGISTER_PROXYBUILDER_METHODS()
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const
FWCSCRecHitProxyBuilder(void)