13 #include "TEveStraightLineSet.h" 14 #include "TEveCompound.h" 15 #include "TEveGeoNode.h" 52 unsigned int rawid = (*dri).first.rawId();
55 if (!
geom->contains(rawid)) {
56 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of RPC roll with detid: " << rawid << std::endl;
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
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
~FWRPCDigiProxyBuilder() override
static const int kAll3DBits
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
const FWGeometry * getGeom() const
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::pair< const_iterator, const_iterator > Range
std::vector< RPCDigi >::const_iterator const_iterator