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 );
87 unsigned int rawid = layerId.
rawId();
93 << rawid << std::endl;
106 float localPos[3] = { 0.0, 0.0, 0.0 };
110 it != range.second; ++it )
113 float firstChannel = pars[3];
114 float nChannels = pars[5];
115 localPos[0] = ((*it).wire() - ( firstChannel - 1 ) - 0.5 ) * pars[0] - nChannels / 2.0 * pars[0];
119 TEveBox* box =
new TEveBox;
121 ::addTube( box, *det, localPos, pars );
126 TEvePointSet* pointSet =
new TEvePointSet;
127 pointSet->SetMarkerStyle( 24 );
132 pointSet->SetNextPoint( globalPos[0], globalPos[1], globalPos[2] );
134 TEveBox* box =
new TEveBox;
136 ::addTube( box, *det, localPos, pars );
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *product, FWViewType::EType, const FWViewContext *) override
#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
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
int superLayer() const
Return the superlayer number.
bool contains(unsigned int id) const
std::vector< DTDigi >::const_iterator const_iterator
const FWDTDigiProxyBuilder & operator=(const FWDTDigiProxyBuilder &)
REGISTER_PROXYBUILDER_METHODS()
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::pair< const_iterator, const_iterator > Range
FWDTDigiProxyBuilder(void)
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const
virtual bool haveSingleProduct(void) const override
virtual ~FWDTDigiProxyBuilder(void)