13 #include "TEveStraightLineSet.h" 14 #include "TEveCompound.h" 15 #include "TEveGeoNode.h" 50 unsigned int rawid = (*dri).first.rawId();
54 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of RPC roll with detid: " << rawid << std::endl;
64 float halfStripLength = parameters[1] * 0.5;
65 float pitch = parameters[2];
66 float offset = -0.5 * nStrips * pitch;
69 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
70 stripDigiSet->SetLineWidth(3);
73 int strip = (*dit).strip();
74 float centreOfStrip = (strip - 0.5) * pitch +
offset;
76 float localPointTop[3] = {centreOfStrip, halfStripLength, 0.0};
78 float localPointBottom[3] = {centreOfStrip, -halfStripLength, 0.0};
80 float globalPointTop[3];
81 float globalPointBottom[3];
83 geom->
localToGlobal(rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom);
85 stripDigiSet->AddLine(globalPointTop[0],
90 globalPointBottom[2]);
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
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...
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
#define REGISTER_PROXYBUILDER_METHODS()
std::vector< RPCDigi >::const_iterator const_iterator
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
const FWGeometry * getGeom() const