11 #include "TEveGeoNode.h" 12 #include "TEveGeoShape.h" 13 #include "TEveStraightLineSet.h" 38 TEveElement& oItemHolder,
45 TEveElement& oItemHolder,
49 unsigned int rawid = rpcId.
rawId();
53 if (!
geom->contains(rawid)) {
54 fwLog(
fwlog::kError) <<
"failed to get geometry of RPC roll with detid: " << rawid << std::endl;
58 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
59 recHitSet->SetLineWidth(3);
62 TEveGeoShape* shape =
geom->getEveShape(rawid);
63 shape->SetMainTransparency(75);
64 shape->SetMainColor(
item()->defaultDisplayProperties().color());
65 recHitSet->AddElement(shape);
90 geom->localToGlobal(*det, localU1, globalU1);
91 geom->localToGlobal(*det, localU2, globalU2);
92 geom->localToGlobal(*det, localV1, globalV1);
93 geom->localToGlobal(*det, localV2, globalV2);
95 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
97 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);
bool haveSingleProduct() const override
#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
LocalPoint localPosition() const override
Return the 3-dimensional local position.
static const int kAll3DBits
~FWRPCRecHitProxyBuilder() override
RPCDetId rpcId() const
Return the rpcId.
void buildViewType(const RPCRecHit &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
const FWRPCRecHitProxyBuilder & operator=(const FWRPCRecHitProxyBuilder &)=delete
const FWGeometry * getGeom() const
constexpr uint16_t localX(uint16_t px)
constexpr uint32_t rawId() const
get the raw id
constexpr uint16_t localY(uint16_t py, uint16_t n)
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
FWRPCRecHitProxyBuilder()
const FWEventItem * item() const
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr