13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
15 #include "TEveGeoNode.h"
54 dri != driEnd; ++dri )
56 unsigned int rawid = (*dri).first.rawId();
62 << rawid << std::endl;
71 float nStrips = parameters[0];
72 float halfStripLength = parameters[1]*0.5;
73 float pitch = parameters[2];
74 float offset = -0.5*nStrips*pitch;
77 dit != range.second; ++dit )
79 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
80 stripDigiSet->SetLineWidth(3);
83 int strip = (*dit).strip();
84 float centreOfStrip = (strip-0.5)*pitch +
offset;
86 float localPointTop[3] =
88 centreOfStrip, halfStripLength, 0.0
91 float localPointBottom[3] =
93 centreOfStrip, -halfStripLength, 0.0
96 float globalPointTop[3];
97 float globalPointBottom[3];
99 geom->
localToGlobal( rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom );
101 stripDigiSet->AddLine(globalPointTop[0], globalPointTop[1], globalPointTop[2],
102 globalPointBottom[0], globalPointBottom[1], globalPointBottom[2]);
#define REGISTER_PROXYBUILDER_METHODS()
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
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