13 #include "TEveGeoNode.h"
14 #include "TEveGeoShape.h"
15 #include "TEveStraightLineSet.h"
40 TEveElement& oItemHolder,
47 TEveElement& oItemHolder,
51 unsigned int rawid = gemId.
rawId();
56 fwLog(
fwlog::kError) <<
"failed to get geometry of GEM roll with detid: " << rawid << std::endl;
60 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
61 recHitSet->SetLineWidth(3);
65 shape->SetMainTransparency(75);
66 shape->SetMainColor(
item()->defaultDisplayProperties().color());
67 recHitSet->AddElement(shape);
77 float localU1[3] = {localX - localXerr,
localY, localZ};
79 float localU2[3] = {localX + localXerr,
localY, localZ};
81 float localV1[3] = {
localX, localY - localYerr, localZ};
83 float localV2[3] = {
localX, localY + localYerr, localZ};
97 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
99 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
bool haveSingleProduct() const override
static const int kAllRPZBits
LocalPoint localPosition() const override
Return the 3-dimensional local position.
IdToInfoItr find(unsigned int) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
constexpr uint32_t rawId() const
get the raw id
constexpr uint16_t localY(uint16_t py)
const FWEventItem * item() const
static const int kAll3DBits
FWGEMRecHitProxyBuilder()
const FWGEMRecHitProxyBuilder & operator=(const FWGEMRecHitProxyBuilder &)=delete
TEveGeoShape * getEveShape(unsigned int id) const
~FWGEMRecHitProxyBuilder() override
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
bool contains(unsigned int id) const
constexpr uint16_t localX(uint16_t px)
GEMDetId gemId() const
Return the gemId.
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const
void buildViewType(const GEMRecHit &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override