1 #include "TEveGeoNode.h" 2 #include "TEveGeoShape.h" 3 #include "TEveStraightLineSet.h" 27 TEveElement& oItemHolder,
34 TEveElement& oItemHolder,
38 unsigned int rawid = me0Id.
rawId();
42 if (!
geom->contains(rawid)) {
43 fwLog(
fwlog::kError) <<
"failed to get geometry of ME0 roll with detid: " << rawid << std::endl;
47 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
48 recHitSet->SetLineWidth(3);
51 TEveGeoShape* shape =
geom->getEveShape(rawid);
52 shape->SetMainTransparency(75);
53 shape->SetMainColor(
item()->defaultDisplayProperties().color());
54 recHitSet->AddElement(shape);
79 geom->localToGlobal(*det, localU1, globalU1);
80 geom->localToGlobal(*det, localU2, globalU2);
81 geom->localToGlobal(*det, localV1, globalV1);
82 geom->localToGlobal(*det, localV2, globalV2);
84 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
86 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);
const FWME0RecHitProxyBuilder & operator=(const FWME0RecHitProxyBuilder &)=delete
#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
ME0DetId me0Id() const
Return the gemId.
~FWME0RecHitProxyBuilder() override
bool haveSingleProduct() const override
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)
FWME0RecHitProxyBuilder()
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
const FWEventItem * item() const
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
void buildViewType(const ME0RecHit &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override