11 #include "TEveGeoNode.h" 12 #include "TEveStraightLineSet.h" 37 TEveElement& oItemHolder,
44 TEveElement& oItemHolder,
48 unsigned int rawid = rpcId.
rawId();
53 fwLog(
fwlog::kError) <<
"failed to get geometry of RPC roll with detid: " << rawid << std::endl;
57 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
58 recHitSet->SetLineWidth(3);
62 shape->SetMainTransparency(75);
63 shape->SetMainColor(
item()->defaultDisplayProperties().color());
64 recHitSet->AddElement(shape);
74 float localU1[3] = {localX - localXerr,
localY, localZ};
76 float localU2[3] = {localX + localXerr,
localY, localZ};
78 float localV1[3] = {
localX, localY - localYerr, localZ};
80 float localV2[3] = {
localX, localY + localYerr, localZ};
94 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
96 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);
static const int kAllRPZBits
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)
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
const FWEventItem * item() const
static const int kAll3DBits
LocalPoint localPosition() const override
Return the 3-dimensional local position.
~FWRPCRecHitProxyBuilder() override
RPCDetId rpcId() const
Return the rpcId.
TEveGeoShape * getEveShape(unsigned int id) const
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
void buildViewType(const RPCRecHit &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
bool contains(unsigned int id) const
const FWRPCRecHitProxyBuilder & operator=(const FWRPCRecHitProxyBuilder &)=delete
constexpr uint16_t localX(uint16_t px)
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
bool haveSingleProduct() const override
FWRPCRecHitProxyBuilder()
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const