13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
15 #include "TEveGeoNode.h"
53 dri != driEnd; ++dri )
55 unsigned int rawid = (*dri).first.rawId();
61 << rawid << std::endl;
70 float nStrips = parameters[0];
71 float halfStripLength = parameters[1]*0.5;
72 float pitch = parameters[2];
73 float offset = -0.5*nStrips*pitch;
76 dit != range.second; ++dit )
78 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
79 stripDigiSet->SetLineWidth(3);
82 int strip = (*dit).strip();
83 float centreOfStrip = (strip-0.5)*pitch +
offset;
85 float localPointTop[3] =
87 centreOfStrip, halfStripLength, 0.0
90 float localPointBottom[3] =
92 centreOfStrip, -halfStripLength, 0.0
95 float globalPointTop[3];
96 float globalPointBottom[3];
98 geom->
localToGlobal( rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom );
100 stripDigiSet->AddLine(globalPointTop[0], globalPointTop[1], globalPointTop[2],
101 globalPointBottom[0], globalPointBottom[1], globalPointBottom[2]);
virtual ~FWRPCDigiProxyBuilder()
#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
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
unsigned int offset(bool)
const FWRPCDigiProxyBuilder & operator=(const FWRPCDigiProxyBuilder &)
std::vector< RPCDigi >::const_iterator const_iterator
REGISTER_PROXYBUILDER_METHODS()
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