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.;
28 const Float_t vtx[24] = {localPos[0] - width, -length, -
thickness, localPos[0] - width, length, -
thickness,
31 localPos[0] + width, length,
thickness, localPos[0] + width, -length, thickness};
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();
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);
131 pointSet->SetNextPoint(globalPos[0], globalPos[1], globalPos[2]);
133 TEveBox* box =
new TEveBox;
135 ::addTube(box, *det, localPos, pars);
bool haveSingleProduct(void) const override
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
constexpr uint32_t rawId() const
get the raw id
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
static const int kAll3DBits
const uint16_t range(const Frame &aFrame)
~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::pair< const_iterator, const_iterator > Range
std::vector< DigiType >::const_iterator const_iterator
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
FWDTDigiProxyBuilder(void)
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const