15 #include "TEveStraightLineSet.h"
16 #include "TEveCompound.h"
17 #include "TEveGeoNode.h"
56 dri != driEnd; ++dri )
58 unsigned int rawid = (*dri).first.rawId();
64 << rawid << std::endl;
73 float nStrips = parameters[0];
74 float halfStripLength = parameters[1]*0.5;
75 float pitch = parameters[2];
76 float offset = -0.5*nStrips*pitch;
79 dit != range.second; ++dit )
81 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
82 stripDigiSet->SetLineWidth(3);
85 int strip = (*dit).strip();
86 float centreOfStrip = (strip-0.5)*pitch +
offset;
88 float localPointTop[3] =
90 centreOfStrip, halfStripLength, 0.0
93 float localPointBottom[3] =
95 centreOfStrip, -halfStripLength, 0.0
98 float globalPointTop[3];
99 float globalPointBottom[3];
101 geom->
localToGlobal( rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom );
103 stripDigiSet->AddLine(globalPointTop[0], globalPointTop[1], globalPointTop[2],
104 globalPointBottom[0], globalPointBottom[1], globalPointBottom[2]);
#define 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