8 #include "TEvePointSet.h" 9 #include "TEveStraightLineSet.h" 35 TEveElement& oItemHolder,
40 if (!
geom->contains(rawid)) {
41 fwLog(
fwlog::kError) <<
"failed to get geometry of CSC layer with detid: " << rawid << std::endl;
46 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
49 TEvePointSet* pointSet =
new TEvePointSet;
58 float localU1Point[3] = {localPositionX - localPositionXX, localPositionY, 0.0};
60 float localU2Point[3] = {localPositionX + localPositionXX, localPositionY, 0.0};
62 float localV1Point[3] = {localPositionX, localPositionY - localPositionYY, 0.0};
64 float localV2Point[3] = {localPositionX, localPositionY + localPositionYY, 0.0};
66 float globalU1Point[3];
67 float globalU2Point[3];
68 float globalV1Point[3];
69 float globalV2Point[3];
71 geom->localToGlobal(*det, localU1Point, globalU1Point);
72 geom->localToGlobal(*det, localU2Point, globalU2Point);
73 geom->localToGlobal(*det, localV1Point, globalV1Point);
74 geom->localToGlobal(*det, localV2Point, globalV2Point);
76 pointSet->SetNextPoint(globalU1Point[0], globalU1Point[1], globalU1Point[2]);
77 pointSet->SetNextPoint(globalU2Point[0], globalU2Point[1], globalU2Point[2]);
78 pointSet->SetNextPoint(globalV1Point[0], globalV1Point[1], globalV1Point[2]);
79 pointSet->SetNextPoint(globalV2Point[0], globalV2Point[1], globalV2Point[2]);
82 globalU1Point[0], globalU1Point[1], globalU1Point[2], globalU2Point[0], globalU2Point[1], globalU2Point[2]);
85 globalV1Point[0], globalV1Point[1], globalV1Point[2], globalV2Point[0], globalV2Point[1], globalV2Point[2]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
CSCDetId cscDetId() const
static const int kAll3DBits
LocalError localPositionError() const override
LocalPoint localPosition() const override
const FWGeometry * getGeom() const
~FWCSCRecHitProxyBuilder(void) override
constexpr uint32_t rawId() const
get the raw id
const FWCSCRecHitProxyBuilder & operator=(const FWCSCRecHitProxyBuilder &)=delete
const FWEventItem * item() const
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
FWCSCRecHitProxyBuilder(void)