9 #include "TEveGeoNode.h" 10 #include "TEvePointSet.h" 11 #include "TEveCompound.h" 27 const Float_t
width = pars[0] / 2.;
28 const Float_t thickness = pars[1] / 2.;
29 const Float_t length = pars[2] / 2.;
31 const Float_t
vtx[24] = { localPos[0] -
width, -length, -thickness,
32 localPos[0] -
width, length, -thickness,
33 localPos[0] +
width, length, -thickness,
34 localPos[0] +
width, -length, -thickness,
35 localPos[0] -
width, -length, thickness,
36 localPos[0] -
width, length, thickness,
37 localPos[0] +
width, length, thickness,
38 localPos[0] +
width, -length, thickness };
46 shape->SetVertices( vtx );
47 shape->SetTransMatrix( array );
48 shape->SetDrawFrame(
false);
49 shape->SetMainTransparency( 75 );
88 unsigned int rawid = layerId.
rawId();
94 << rawid << std::endl;
107 float localPos[3] = { 0.0, 0.0, 0.0 };
111 it != range.second; ++it )
114 float firstChannel = pars[3];
116 localPos[0] = ((*it).wire() - ( firstChannel - 1 ) - 0.5 ) * pars[0] - nChannels / 2.0 * pars[0];
120 TEveBox* box =
new TEveBox;
122 ::addTube( box, *det, localPos, pars );
127 TEvePointSet* pointSet =
new TEvePointSet;
128 pointSet->SetMarkerStyle( 24 );
133 pointSet->SetNextPoint( globalPos[0], globalPos[1], globalPos[2] );
135 TEveBox* box =
new TEveBox;
137 ::addTube( box, *det, localPos, pars );
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
void buildViewType(const FWEventItem *iItem, TEveElementList *product, FWViewType::EType, const FWViewContext *) override
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
IdToInfoItr find(unsigned int) const
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
static const int kAll3DBits
uint32_t rawId() const
get the raw id
~FWDTDigiProxyBuilder(void) override
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
int superLayer() const
Return the superlayer number.
const FWDTDigiProxyBuilder & operator=(const FWDTDigiProxyBuilder &)=delete
bool contains(unsigned int id) const
std::vector< DTDigi >::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
FWDTDigiProxyBuilder(void)
bool haveSingleProduct(void) const override
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const