|
|
Go to the documentation of this file.
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);
void buildViewType(const FWEventItem *iItem, TEveElementList *product, FWViewType::EType, const FWViewContext *) override
static const int kAllRPZBits
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void get(const T *&oData) const
#define REGISTER_PROXYBUILDER_METHODS()
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
int superLayer() const
Return the superlayer number.
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::vector< DigiType >::const_iterator const_iterator
static const int kAll3DBits
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
FWDTDigiProxyBuilder(void)
~FWDTDigiProxyBuilder(void) override
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWGeometry * getGeom() const
constexpr uint32_t rawId() const
get the raw id
bool haveSingleProduct(void) const override
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
std::pair< const_iterator, const_iterator > Range
const FWDTDigiProxyBuilder & operator=(const FWDTDigiProxyBuilder &)=delete