13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
15 #include "TEveGeoNode.h"
52 unsigned int rawid = (*dri).first.rawId();
56 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of RPC roll with detid: " << rawid << std::endl;
66 float halfStripLength = parameters[1] * 0.5;
67 float pitch = parameters[2];
68 float offset = -0.5 * nStrips * pitch;
71 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
72 stripDigiSet->SetLineWidth(3);
75 int strip = (*dit).strip();
76 float centreOfStrip = (strip - 0.5) * pitch +
offset;
78 float localPointTop[3] = {centreOfStrip, halfStripLength, 0.0};
80 float localPointBottom[3] = {centreOfStrip, -halfStripLength, 0.0};
82 float globalPointTop[3];
83 float globalPointBottom[3];
85 geom->
localToGlobal(rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom);
87 stripDigiSet->AddLine(globalPointTop[0],
92 globalPointBottom[2]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWRPCDigiProxyBuilder & operator=(const FWRPCDigiProxyBuilder &)=delete
static const int kAllRPZBits
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
~FWRPCDigiProxyBuilder() override
tuple nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
static const int kAll3DBits
const uint16_t range(const Frame &aFrame)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
std::pair< const_iterator, const_iterator > Range
std::vector< RPCDigi >::const_iterator const_iterator
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
const FWGeometry * getGeom() const