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.;
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);
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_)
int superLayer() const
Return the superlayer number.
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
static const int kAll3DBits
static constexpr int nChannels
~FWDTDigiProxyBuilder(void) override
const FWDTDigiProxyBuilder & operator=(const FWDTDigiProxyBuilder &)=delete
const FWGeometry * getGeom() const
constexpr uint32_t rawId() const
get the raw id
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::pair< const_iterator, const_iterator > Range
std::vector< DigiType >::const_iterator const_iterator
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
FWDTDigiProxyBuilder(void)
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr