1 #include "TEveGeoNode.h"
2 #include "TEveGeoShape.h"
3 #include "TEveStraightLineSet.h"
27 TEveElement& oItemHolder,
34 TEveElement& oItemHolder,
38 unsigned int rawid = me0Id.
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);
52 shape->SetMainTransparency(75);
53 shape->SetMainColor(
item()->defaultDisplayProperties().color());
54 recHitSet->AddElement(shape);
64 float localU1[3] = {localX - localXerr,
localY, localZ};
66 float localU2[3] = {localX + localXerr,
localY, localZ};
68 float localV1[3] = {
localX, localY - localYerr, localZ};
70 float localV2[3] = {
localX, localY + localYerr, localZ};
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
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
TEveGeoShape * getEveShape(unsigned int id) const
~FWME0RecHitProxyBuilder() override
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
bool haveSingleProduct() const override
constexpr uint16_t localX(uint16_t px)
FWME0RecHitProxyBuilder()
ME0DetId me0Id() const
Return the gemId.
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const
void buildViewType(const ME0RecHit &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override