15 #include "TEveStraightLineSet.h"
16 #include "TEveCompound.h"
17 #include "TEveGeoNode.h"
55 dri != driEnd; ++dri )
57 unsigned int rawid = (*dri).first.rawId();
63 << rawid << std::endl;
72 float nStrips = parameters[0];
73 float halfStripLength = parameters[1]*0.5;
74 float pitch = parameters[2];
75 float offset = -0.5*nStrips*pitch;
78 dit != range.second; ++dit )
80 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
81 stripDigiSet->SetLineWidth(3);
84 int strip = (*dit).strip();
85 float centreOfStrip = (strip-0.5)*pitch +
offset;
87 float localPointTop[3] =
89 centreOfStrip, halfStripLength, 0.0
92 float localPointBottom[3] =
94 centreOfStrip, -halfStripLength, 0.0
97 float globalPointTop[3];
98 float globalPointBottom[3];
100 geom->
localToGlobal( rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom );
102 stripDigiSet->AddLine(globalPointTop[0], globalPointTop[1], globalPointTop[2],
103 globalPointBottom[0], globalPointBottom[1], globalPointBottom[2]);
REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
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
static const int kAll3DBits
const FWGEMDigiProxyBuilder & operator=(const FWGEMDigiProxyBuilder &)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
unsigned int offset(bool)
virtual ~FWGEMDigiProxyBuilder()
std::vector< GEMDigi >::const_iterator const_iterator
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::pair< const_iterator, const_iterator > Range
const FWGeometry * getGeom() const