12 #include "TEvePointSet.h"
13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
56 set != setEnd; ++set )
58 unsigned int id = set->detId();
69 product->AddElement(itemHolder);
71 TEvePointSet* pointSet =
new TEvePointSet;
76 <<
"failed get geometry of SiPixelCluster with detid: "
91 pointSet->SetNextPoint( globalPoint[0], globalPoint[1], globalPoint[2] );
95 TEveStraightLineSet*
ls =
new TEveStraightLineSet();
96 for(
int j=0;
j< (*itc).size();
j++ )
101 float offsetx[4] = {-0.4,-0.4,+0.4,+0.4};
102 float offsety[4] = {-0.4,+0.4,+0.4,-0.4};
105 std::vector<TEveVector> boxCorners;
106 for(
int of=0;of<8;of++) {
109 (*itc).pixel(
j).x+offsetx[of%4],( int )pars[0]) ,
111 (*itc).pixel(
j).y+offsety[of%4], ( int )pars[1] ),
118 boxCorners.push_back(p);
123 ls->AddLine(boxCorners[0], boxCorners[1]);
124 ls->AddLine(boxCorners[1], boxCorners[2]);
125 ls->AddLine(boxCorners[2], boxCorners[3]);
126 ls->AddLine(boxCorners[3], boxCorners[0]);
128 ls->AddLine(boxCorners[4], boxCorners[5]);
129 ls->AddLine(boxCorners[5], boxCorners[6]);
130 ls->AddLine(boxCorners[6], boxCorners[7]);
131 ls->AddLine(boxCorners[7], boxCorners[4]);
133 ls->AddLine(boxCorners[0], boxCorners[4]);
134 ls->AddLine(boxCorners[1], boxCorners[5]);
135 ls->AddLine(boxCorners[2], boxCorners[6]);
136 ls->AddLine(boxCorners[3], boxCorners[7]);
int adc(sample_type sample)
get the ADC sample (12 bits)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
#define REGISTER_PROXYBUILDER_METHODS()
const_iterator end(bool update=false) const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
float pixelLocalY(const double mpy, const int m_ncols)
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
data_type const * const_iterator
static const int kAll3DBits
FWSiPixelClusterProxyBuilder(void)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
virtual ~FWSiPixelClusterProxyBuilder(void)
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
const FWSiPixelClusterProxyBuilder & operator=(const FWSiPixelClusterProxyBuilder &)
float pixelLocalX(const double mpx, const int m_nrows)
const FWGeometry * getGeom() const
const_iterator begin(bool update=false) const