9 #include "TEveGeoNode.h"
10 #include "TEvePointSet.h"
11 #include "TEveCompound.h"
24 const Float_t
width = pars[0] / 2.;
26 const Float_t length = pars[2] / 2.;
50 shape->SetVertices(
vtx);
51 shape->SetTransMatrix(
array);
52 shape->SetDrawFrame(
false);
53 shape->SetMainTransparency(75);
74 TEveElementList* product,
80 TEveElementList* product,
93 unsigned int rawid = layerId.
rawId();
96 if (!
geom->contains(rawid)) {
105 const float* pars =
geom->getParameters(rawid);
110 float localPos[3] = {0.0, 0.0, 0.0};
115 float firstChannel = pars[3];
117 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);
125 TEvePointSet* pointSet =
new TEvePointSet;
126 pointSet->SetMarkerStyle(24);
130 geom->localToGlobal(*det, localPos, globalPos);
131 pointSet->SetNextPoint(globalPos[0], globalPos[1], globalPos[2]);
133 TEveBox* box =
new TEveBox;
135 ::addTube(box, *det, localPos, pars);